Skip to content

Instantly share code, notes, and snippets.

@bhouse
bhouse / hello_world.aurora
Created May 5, 2015 04:41
aurora workshop
pkg_path = '/vagrant/hello_world.py'
# we use a trick here to make the configuration change with
# the contents of the file, for simplicity. in a normal setting, packages would be
# versioned, and the version number would be changed in the configuration.
import hashlib
with open(pkg_path, 'rb') as f:
pkg_checksum = hashlib.md5(f.read()).hexdigest()
# copy hello_world.py into the local sandbox
@bhouse
bhouse / gist:4cda6d13bc46a9765291
Created December 3, 2014 18:03
ztrustee backup script changes
bhouse@admin1:~$ diff -u push-warm-spare{,.new}
--- push-warm-spare 2014-12-03 18:02:14.894289218 +0000
+++ push-warm-spare.new 2014-12-03 18:01:07.985219963 +0000
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh -exv
date
@@ -25,7 +25,7 @@
@bhouse
bhouse / cf_example.template
Created April 29, 2014 06:35
cloudformation template example
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "test template for zdops workshop",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
}