Skip to content

Instantly share code, notes, and snippets.

View oubiwann's full-sized avatar
💭
🌌

Duncan McGreggor oubiwann

💭
🌌
View GitHub Profile
@oubiwann
oubiwann / gist:3381472
Created August 17, 2012 18:44 — forked from lentil/gist:810399
Unit tests, PEP8, PyFlakes pre-commit hook in Python (with interactive support!)
#!/usr/bin/env python3
import os
import re
import shutil
import subprocess
import sys
import tempfile
def system(*args, **kwargs):
@oubiwann
oubiwann / devstack.rb
Created February 15, 2012 21:24 — forked from termie/devstack.rb
Vagrant script for devstack
Vagrant::Config.run do |config|
sshdir = "#{ENV['HOME']}/.ssh/"
checkout = (ENV['COOKBOOKS'] or "#{ENV['HOME']}/lab/OpenStack/openstack-cookbooks")
ip_prefix = (ENV['IP_PREFIX'] or "10.0.5.")
mac_prefix = (ENV['MAC_PREFIX'] or "080027027")
suffix = "100"
ip = "#{ip_prefix}#{suffix}"
config.vm.box = "oneiric"
config.vm.box_url = "http://images.ansolabs.com/vagrant/oneiric64.box"
config.vm.customize ['modifyvm', :id, '--memory', '350']