This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Promise = require('bluebird'); | |
const fs = require('fs'); | |
const execa = require('execa'); | |
class BlueGreenDeployment { | |
constructor({appName, blueProxyPassPattern, greenProxyPassPattern, nginxConfigFile}) { | |
this.appName = appName; | |
this.blueProxyPassPattern = blueProxyPassPattern; | |
this.greenProxyPassPattern = greenProxyPassPattern; | |
this.nginxConfigFile = nginxConfigFile; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Documentation | |
# https://docs.gitlab.com/ce/api/projects.html#list-projects | |
if [[ `whoami` == "root" ]]; then | |
echo "DO NOT run this program as root! Quitting." | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mime { | |
.atom application/atom+xml | |
.json application/json | |
.map application/json | |
.topojson application/json | |
.jsonld application/ld+json | |
.rss application/rss+xml | |
.geojson application/vnd.geo+json | |
.rdf application/xml | |
.xml application/xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ab":{ | |
"name":"Abkhaz", | |
"nativeName":"аҧсуа" | |
}, | |
"aa":{ | |
"name":"Afar", | |
"nativeName":"Afaraf" | |
}, | |
"af":{ |