None of this is really necessary now that the Docker team is releasing official Mac OS X binary builds. Please see moby/moby#3337 for details.
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
python3 -c 'import sys, yaml, json; y=yaml.safe_load(sys.stdin.read()); print(json.dumps(y))' |
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
python3 -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))' |
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
from selenium import webdriver | |
from selenium.webdriver.support.ui import WebDriverWait | |
driver = webdriver.Chrome() | |
# Log in to OpDemand | |
driver.get('http://c2-local.opdemand.com:8000/login') | |
assert driver.title == u'OpDemand / Login' |
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
var url = require('url'), | |
http = require('http'), | |
nodeStatic = require('node-static'), | |
httpProxy = require('http-proxy'); | |
// create node-http-proxy instance | |
var proxy = new httpProxy.HttpProxy({ | |
target: { | |
host: 'localhost', |
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
""" | |
Show (indeterminate) progress by animating ASCII chars on stdout. | |
""" | |
from itertools import cycle | |
from sys import stdout | |
from threading import Event | |
from threading import Thread | |
from time import sleep |
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
#!/bin/bash -ex | |
CONTROLLER=deis.mydomain.com | |
rsync -Pav --exclude=docs/ --exclude=htmlcov/ --exclude=logs/ --exclude=venv/ --exclude=.git/ \ | |
--exclude='contrib/vagrant/nodes' --exclude='deis/local_settings*' --exclude='*.pyc'\ | |
$HOME/Projects/deis/* deis@$CONTROLLER:/opt/deis/controller | |
ssh deis@$CONTROLLER 'sudo restart deis-server ; sudo restart deis-worker' | |
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
#!/bin/bash | |
knife data bag delete -y deis-apps | |
knife data bag delete -y deis-formations | |
knife data bag delete -y deis-users | |
knife node bulk delete -y '.*' | |
#knife cookbook bulk delete -y '.*' | |
knife client bulk delete -y '^(?!.*?validator).*' |
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
#!/bin/sh | |
# Save this file as ".git/hooks/pre-commit" in your | |
# git repository and set it to executable. | |
# | |
# To use the "go vet" command: | |
# $ go get -v code.google.com/p/go.tools/cmd/vet | |
# To use the "golint" command: | |
# $ go get -v github.com/golang/lint/golint |
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
#!/bin/sh | |
PID=$(docker inspect --format="{{ .State.Pid }}" $1) | |
nsenter --pid --uts --mount --ipc --net --target $PID |
OlderNewer