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 python | |
| # | |
| # baaed on Ruby S3 client implementation in RESTful Web Services of O'Reilly. | |
| # | |
| import base64 | |
| import hashlib | |
| import hmac | |
| import os | |
| import re |
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 python | |
| from __future__ import with_statement | |
| import contextlib | |
| import os | |
| import sys | |
| print "Filesystem\tMounted on\tUse%\tIUse%" | |
| with contextlib.closing(open('/etc/mtab')) as fp: | |
| for m in fp: |
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
| # Codenames for Debian suites according to their alias. Update these when | |
| # needed. | |
| UNSTABLE_CODENAME="sid" | |
| TESTING_CODENAME="wheezy" | |
| STABLE_CODENAME="squeeze" | |
| STABLE_BACKPORTS_SUITE="$STABLE_CODENAME-backports" | |
| OLDSTABLE_CODENAME="lenny" | |
| # List of Debian suites. | |
| DEBIAN_SUITES=($UNSTABLE_CODENAME $TESTING_CODENAME $STABLE_CODENAME $OLDSTABLE_CODENAME |
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 python | |
| import os | |
| import sys | |
| import time | |
| import tornado.ioloop | |
| class PeriodicServer(object): | |
| def __init__(self, request_callback, io_loop=None, period=1): | |
| self.request_callback = request_callback |
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 -e | |
| SBT_HOME="$HOME/usr/sbt" | |
| if test $# -gt 0 -a -f "$SBT_HOME/${1#@}/sbt-launch.jar"; then | |
| SBT_JAR="$SBT_HOME/${1#@}/sbt-launch.jar" | |
| shift | |
| fi | |
| if ! test -f "$SBT_JAR"; then |
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
| OPENSSL = openssl | |
| DAYS = -days 3652 | |
| CADAYS = -days 3652 | |
| REQ = $(OPENSSL) req | |
| CA = $(OPENSSL) ca | |
| VERIFY = $(OPENSSL) verify | |
| X509 = $(OPENSSL) x509 | |
| # must be absolute path | |
| CATOP = $(PWD)/ca |
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 python | |
| # | |
| # find snapshots which is not referenced from any AMIs | |
| # | |
| import boto.ec2 | |
| import boto.ec2.image | |
| import boto.exception | |
| import os | |
| import re |
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 python | |
| # | |
| # dump route53 zones | |
| # | |
| import boto.route53 | |
| import boto.exception | |
| import os | |
| import re | |
| import sys |
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 python | |
| import logging | |
| import optparse | |
| import os | |
| import re | |
| import sys | |
| import time | |
| import urllib | |
| import urllib2 |
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 python | |
| import boto.ec2 | |
| import boto.ec2.autoscale | |
| import boto.route53 | |
| import boto.s3.connection | |
| import boto.sqs | |
| import code | |
| import optparse | |
| import os |