Skip to content

Instantly share code, notes, and snippets.

View willfish's full-sized avatar

William Fish willfish

  • Hue's Associates Ltd
  • London
View GitHub Profile
#!/bin/sh
hosts=""
ssh_options=""
tmux_name="cssh"
usage() {
echo "Usage: $0 [options] host [host ...]" >&2
echo "" >&2
echo "Spawns multiple synchronized SSH sessions inside a tmux session." >&2
if [ "$#" == "0" ]; then
echo "You need to supply at least one argument!"
exit 1
fi
DOMAINS=('.com' '.co.uk' '.net' '.info' '.mobi'
'.org' '.tel' '.biz' '.tv' '.cc' '.eu' '.ru'
'.in' '.it' '.sk' '.com.au' '.tech' '.io' '.systems' '.xxx')
ELEMENTS=${#DOMAINS[@]}
version: '2'
services:
postgres:
container_name: mydrive-dev-env-postgres
image: mdillon/postgis:9.4
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- 5432:5432
volumes:
#!/bin/bash
contains() {
[[ $1 =~ (^| )$2($| ) ]] && echo 'yes' || echo 'no'
}
# Takes a space separated list of directories that we're interested in seeing have changed
# Returns a space separated list of directories that have changed.
changed() {
local directories="$*"

Get developers up and running without needing to read setup documentation

Options for achieving this goal

  1. Review current project documentation and make sure as much of it is automatic?
  2. Run everything locally with docker (cassandra, postgres, mydriveapi, phone-platform, mydrive projects all run inside of docker)
  • Outside of current host - ssm and s3
  1. Run partially locally (candidate project - i.e. the one being developed - runs normally/outside of docker)