This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# perform any necessary updates | |
apt-get update | |
apt-get upgrade -y | |
# install git so we can download devstack & integration tests | |
apt-get install git -y | |
# download, configure, and run devstack | |
git clone https://github.com/cloudbuilders/devstack.git | |
cd devstack | |
echo KEYSTONE_REPO=git://github.com/openstack/keystone.git >> localrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install yubico | |
from yubico import yubico | |
# Yubico API credentials | |
YUBICO_CLIENT_ID = '6634' | |
YUBICO_SECRET_KEY = 'HdRb8AA24+Ud8VL2E+sEEZUiySg=' | |
# Initialize our Yubico API access | |
YUBICO = yubico.Yubico(YUBICO_CLIENT_ID, YUBICO_SECRET_KEY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[environment] | |
aki_location = include/sample_vm/natty-server-cloudimg-amd64-vmlinuz-virtual | |
#ari_location = include/sample_vm/natty-server-cloudimg-amd64-loader | |
ami_location = include/sample_vm/natty-server-cloudimg-amd64.img | |
[swift] | |
auth_host = 127.0.0.1 | |
auth_port = 443 | |
auth_prefix = /auth/ | |
auth_ssl = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set guifont=Menlo\ Bold:h16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Dict to XML serializer. | |
The identity API prefers attributes over elements, so we serialize that way | |
by convention, and TODO(dolph): configure exceptions. | |
""" | |
from lxml import etree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" set color theme | |
colorscheme ir_black | |
" change the leader to be a comma vs slash | |
let mapleader="," | |
" syntax highlighing | |
syntax on | |
" display line numbers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run and time the command, including arguments with spaces | |
time $* | |
# notify the user using libnotify | |
notify-send --icon=next "Execution Complete" "$*" & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add yourself as a sudo user | |
su | |
apt-get update | |
apt-get install -V -y sudo | |
# username ALL=(ALL:ALL) ALL | |
visudo | |
exit | |
sudo apt-get update | |
sudo apt-get install -V -y virtualbox-guest-x11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def encode(number): | |
"""Converts an integer to a base36 string.""" | |
alphabet = '0123456789abcdefghijklmnopqrstuvwxyz' | |
if isinstance(number, (float)) and int(number) == number: | |
number = int(number) | |
if not isinstance(number, (int, long)): | |
raise TypeError('number must be an integer') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/Environments/os/bin/activate | |
alias e=gvim | |
export GREP_OPTIONS='--color=auto' |
OlderNewer