Skip to content

Instantly share code, notes, and snippets.

View jcooklin's full-sized avatar

Joel Cooklin jcooklin

View GitHub Profile
@jcooklin
jcooklin / gist:9e88416fbd01858d6b80
Created June 21, 2014 00:33 — forked from netmarkjp/gist:6384187
rerun cloud-init
sudo rm -f /var/lib/cloud/sem/*{defaults,runcmd,userdata,user-scripts}* /var/lib/cloud/data/cache/obj.pkl
#!/bin/bash
set -ex
apt-get -yq update
apt-get -yq upgrade
cd /root
# Install DevStack
apt-get -yq install git
class Kombu(object):
def __init__(self):
self.params = {
'hostname': 'localhost',
'port': 5672,
'virtual_host': '/',

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
sudo ip addr flush dev br-ex
sudo sysctl -w net.ipv4.ip_forward=1
sudo ip addr add 172.24.4.225/28 dev br-ex
sudo ip link set br-ex up
sudo route add -net 10.0.0.0/24 gw 172.24.4.226
sudo service rabbitmq-server start
sudo service postgresql start
sudo service apache2 start
export SERVICE_TOKEN=password
export OS_TENANT_NAME=demo