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- https://get.docker.com/ | sh
sudo usermod -aG docker $(whoami)
docker -v
# Docker Compose
@mauvm
mauvm / Jasmine-and-Babel6.md
Created Nov 12, 2015
Jasmine ES6 run script for use with Babel 6
View Jasmine-and-Babel6.md
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine

.babelrc:

{
  "presets": ["es2015"]
@mauvm
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
#!/bin/bash
# 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
do
TPL=$(cat $file)
for row in $(env)
do
View gist:de1f8e26d4c34dbe45aa
### Keybase proof
I hereby claim:
* I am mauvm on github.
* I am mauvm (https://keybase.io/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:
You can’t perform that action at this time.