openpgp4fpr:fe3366210a6d0989c247fd6eb6a6fb8b9615aec8
This file contains 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 nodepool import tests | |
from nodepool import allocation | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("hpcloud", type=int, help="Capacity of hpcloud") | |
parser.add_argument("rackspace", type=int, help="Capacity of rackspace") | |
parser.add_argument("fedora", type=int, help="Fedora nodes to request") | |
parser.add_argument("ubuntu", type=int, help="Ubuntu nodes to request") |
This file contains 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
# | |
# save as fix-bt.py | |
# | |
# ran with | |
# | |
# find . \ | |
# -not \( -type d -name .?\* -prune \) \ | |
# -type f \ | |
# -not -name \*~ \ | |
# -not -name \*.md \ |
This file contains 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 | |
mkdir /tmp/diff | |
git show > /tmp/diff/out.diff | |
pushd /tmp/diff | |
splitdiff -a -d out.diff |
This file contains 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
list=foo,foobar,foobash,foomoo,bar | |
remove=foo,bar | |
expect="foobar,foobash,foomoo" | |
function bad_remove { | |
local the_list=$1 | |
local remove=$2 | |
for i in ${remove//,/ }; do | |
the_list=${the_list/$i","} |
This file contains 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/env python | |
import socket | |
import time | |
import subprocess | |
import re | |
while True: | |
# loop around resolving gethostbyname for ga |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am ianw on github. | |
* I am ianw (https://keybase.io/ianw) on keybase. | |
* I have a public key whose fingerprint is FE33 6621 0A6D 0989 C247 FD6E B6A6 FB8B 9615 AEC8 | |
To claim this, I am signing this object: |