This will guide you through setting up a replica set in a docker environment using.
- Docker Compose
- MongoDB Replica Sets
- Mongoose
- Mongoose Transactions
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
This will guide you through setting up a replica set in a docker environment using.
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
These instructions will take you through the step by step process of building and flashing a custom build of the Coreboot ROM to a Chromebook C201.
This guide expects you to have a Chromebook C201, and another ARM computer with Ubuntu installed. Specifically I used the Odroid XU2. You may be able to do this on an Intel platform, using a cross compiler. See the sidenotes section for more information.
Update your Ubuntu aptitude and install the dependancies we will need.
sudo apt update| # this example adds an option `.tomcatProxy` in namespace | |
| # services.nginx.virtualHosts.*.locations.* | |
| # that acts as alternative to specifying actual nginx config in .extraConfig | |
| # | |
| # execute with | |
| /* | |
| cat $(grep -o "/nix/store/[a-z0-9]*-nginx.conf" \ | |
| $(NIX_PATH=nixos-config=./example.nix:$NIX_PATH \ | |
| nix-build --no-out-link -E ' | |
| with import <nixpkgs/nixos> {}; |
| DROP TABLE IF EXISTS CTE_AllTables; | |
| -- CREATE TEMPORARY TABLE IF NOT EXISTS CTE_AllTables | |
| CREATE TEMPORARY TABLE CTE_AllTables AS | |
| SELECT | |
| ist.table_schema AS OnTableSchema | |
| ,ist.table_name AS OnTableName | |
| ,tForeignKeyInformation.FkNullable | |
| -- WARNING: TableSchema or Tablename can contain entry-separator (';' used) | |
| ,CAST(DENSE_RANK() OVER (ORDER BY ist.table_schema, ist.table_name) AS varchar(20)) AS OnTableId |
| #!/bin/bash -e | |
| echo ' | |
| PATH=$HOME/go/bin:$PATH | |
| export GOPATH=$HOME | |
| export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
| export EDITOR=vim | |
| ' >> ~/.profile | |
| sudo apt-get update |
| /* | |
| * Minimalistic implementation of the XModem/YModem protocol suite, including | |
| * a compact version of an CRC16 algorithm. The code is just enough to upload | |
| * an image to an MCU that bootstraps itself over an UART. | |
| * | |
| * Copyright (c) 2014 Daniel Mack <github@zonque.org> | |
| * | |
| * License: MIT | |
| */ |
| #!/bin/bash | |
| if [ "$1" == "" ]; then | |
| echo Usage: $0 pngfile | |
| exit 0; | |
| fi | |
| FILE=`basename $1 .png` | |
| if [ ! -e $FILE.png ]; then |