Skip to content

Instantly share code, notes, and snippets.


Maurits van Mastrigt mauvm

View GitHub Profile
View Prepare Ubuntu Trusty
# Prerequisites
sudo apt-get update
sudo apt-get install -y wget git-core
# Docker
wget -qO- | sh
sudo usermod -aG docker $(whoami)
docker -v
# Docker Compose
mauvm /
Created Nov 12, 2015
Jasmine ES6 run script for use with Babel 6
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine


  "presets": ["es2015"]
mauvm / gist:5de07085f3b51e117378
Created Jul 26, 2015
An "envsubst" alternative for replacing env variables in NGinX site configurations (for using it with Docker)
View gist:5de07085f3b51e117378
# NOTE: Brackets are not supported and '$' in values will break the script.
mkdir /etc/nginx/sites-enabled 2> /dev/null
for file in /etc/nginx/sites-available/*.conf
TPL=$(cat $file)
for row in $(env)
View gist:de1f8e26d4c34dbe45aa
### Keybase proof
I hereby claim:
* I am mauvm on github.
* I am mauvm ( on keybase.
* I have a public key whose fingerprint is 7FAE 77BD E16B AE58 502A 6BDE 460F 8F6D 52C9 CED7
To claim this, I am signing this object: