Skip to content

Instantly share code, notes, and snippets.

View ckrough's full-sized avatar
🏠
I'm totally smiling in this picture.

Chris Krough ckrough

🏠
I'm totally smiling in this picture.
View GitHub Profile
class RackspaceNodeDriver(OpenStack_1_1_NodeDriver):
name = 'Rackspace Cloud'
website = 'http://www.rackspace.com'
connectionCls = RackspaceConnection
type = Provider.RACKSPACE
api_name = None
def __init__(self, key, secret=None, secure=True, host=None, port=None,
region='dfw', **kwargs):
"""
@ckrough
ckrough / base.py
Created August 27, 2013 19:01
test
def __init__(self, id, name, size, driver, extra=None):
self.id = id
self.name = name
self.size = size
self.driver = driver
self.extra = extra
UuidMixin.__init__(self)
@ckrough
ckrough / setup-aws-env.sh
Last active December 18, 2015 13:59
Simple AWS Command Line tool environment setup script
# AWS environments root
AWS_ENV_ROOT="${HOME}/.aws"
# Make sure we got a valid environment variable
#
if [[ -z "${1}" ]] || [[ ! -d "${AWS_ENV_ROOT}/${1}/" ]]; then
echo "No environment name specified or the environment directory is missing."
echo
echo "Usage:"
echo "setup-aws-env.sh <environment>"
@ckrough
ckrough / gist:2991359
Created June 25, 2012 21:26
monitoring tools
Inputs/Generation
http://metrics.codahale.com/
http://bazaarvoice.github.com/snitch/
Collection