Skip to content

Instantly share code, notes, and snippets.

@xtoddx
xtoddx / gist:1072697
Created July 8, 2011 20:08
Tenant switch form enabling
diff --git a/django-openstack/django_openstack/auth/views.py b/django-openstack/django_openstack/auth/views.py
index 23e317f..51fec34 100644
--- a/django-openstack/django_openstack/auth/views.py
+++ b/django-openstack/django_openstack/auth/views.py
@@ -37,6 +37,36 @@ class Login(forms.SelfHandlingForm):
messages.error(request, 'Error authenticating: %s' % e.message)
+class LoginWithTenant(forms.SelfHandlingForm):
+ username = forms.CharField(max_length="20", label="User Name")
@xtoddx
xtoddx / cloudfoundry.sh
Created October 20, 2011 03:38 — forked from anotherjesse/openstack.sh
Run devstack on natty or oneiric
#!/bin/sh
cd /mnt
curl -k -O https://raw.github.com/anotherjesse/vcap/auto/setup/install
chmod +x install
./install
ln -s /usr/local/rvm/bin/ruby /usr/local/bin/
cd /cloudfoundry
bin/vcap start
@xtoddx
xtoddx / gist:1966889
Created March 3, 2012 16:28
Install muralapp
# brew install couchdb
# sudo easy_install pip
# pip install couchapp
# git clone https://github.com/codeforamerica/muralapp.git
# cd muralapp
# cp javascripts/settings.example.js javascripts/settings.js
# vi javascripts/settings.js
# cd couchapp
# couchapp push . http://localhost:5984/murals
# cd ..
@xtoddx
xtoddx / gist:1966943
Created March 3, 2012 16:49
Muralmapper TODO
Sign up for a twitter account
Sign up for a google maps api key
Change text and twitter address
Change maps api key
Change map center location
[done]
Clone into openlexington's github: http://github.com/openlexington/murlamapper.git
@xtoddx
xtoddx / gist:1967021
Created March 3, 2012 16:58
Install muralmapper
# brew install couchdb
# sudo easy_install pip
# sudo pip install couchapp
# brew install node
# curl http://npmjs.org/install.sh | sh
# git clone https://github.com/openlexington/muralmapper.git
# cd muralmapper
[TWITTER STUFF]
# cp node/config.example.js node/config.js
@xtoddx
xtoddx / localrc
Created April 25, 2012 21:54
localrc to run essex release of OpenStack with devstack
NOVNC_BRANCH=master
NOVACLIENT_BRANCH=master
KEYSTONECLIENT_BRANCH=master
QUANTUM_CLIENT_BRANCH=master
MELANGECLIENT_BRANCH=master
NOVA_BRANCH=stable/essex
SWIFT_BRANCH=stable/essex
GLANCE_BRANCH=stable/essex
KEYSTONE_BRANCH=stable/essex
@xtoddx
xtoddx / giving_tuesday.geojson
Last active December 30, 2015 01:19
Map points for FivePowered.org (#GivingTuesday in Lexington, KY).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xtoddx
xtoddx / gist:8982079
Created February 13, 2014 19:28
capistrano notes
Default deployment scenario:
https://github.com/capistrano/capistrano/blob/master/lib/capistrano/tasks/framework.rake#L59
(all of which start as empty tasks)
starting started
updating updated
publishing published
finishing finished
including capistrano/deploy adds a few more hooks
starting => check
@xtoddx
xtoddx / who-iam.rb
Created July 28, 2015 19:54
who-iam.rb
#!/usr/bin/env ruby
# Inspired by:
# http://blog.jverkamp.com/2015/07/22/finding-aws-iam-users-by-access-key/
require 'fog/aws'
Fog.credential = ARGV.shift.to_sym
search_id = ARGV.shift
@xtoddx
xtoddx / migrate-github-to-codecommit.md
Last active January 14, 2016 21:30
Notes on migrating repos from github

Notes on migrating repos from Github to AWS CodeCommit

Rationale

Github bills per repository. Moving unused repositories to an archival tier can reduce costs. You can still use Github for your daily flow, but not pay for untouched data.

Process