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 python | |
""" | |
_gists_ | |
functions for getting gists | |
Requires a section in your gitconfig like: | |
[cirrus] |
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
# carburetor build from source | |
git clone [email protected]:cloudant/carburetor.git | |
cd carburetor/ | |
#### Check out a specific tag here if you dont want HEAD | |
virtualenv --distribute venv | |
. venv/bin/activate | |
pip install -r requirements.txt | |
# -OR- since Macs are being difficult with XCode lately... |
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
import unittest | |
import mock | |
from wilson.views.bluemix import BluemixSingleUser | |
class TestBluemixUser(unittest.TestCase): | |
def test_get_user(self): |
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
function parse_git_branch () | |
{ | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return; | |
BRANCH="("${ref#refs/heads/}")"; | |
echo "${BRANCH}" | |
} | |
export PS1="[\t \W] \$(parse_git_branch) " |
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 | |
# | |
# installer for cirrus | |
# Sets up working dir eg $HOME/.cirrus | |
# Clones latest stable tag of cirrus into it | |
# runs setup commands to build venv for cirrus | |
# installs git alias commands | |
# gets token for github access & updates .gitconfig |
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
# | |
# Added to .bash_profile on a mac, these utils will show the | |
# current repo in the terminal tab name and will include the current git | |
# branch name on the shell prompt. | |
# | |
function set_terminal_tabname { | |
# function that sets Terminal Tab name to $1 | |
printf "\e]1;$1\a" |
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
function carb_logs(){ | |
CLUSTER=$1 | |
knife ssh -x evansde77 role:load_balancer_${CLUSTER} "tail -f /opt/sapi/logs/carburetor_package.log" -a ip.public | |
} |
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
class MyTest(unittest.TestCase): | |
harness, setUp, tearDown = make_database_test_harness(**args) | |
def test_a_thing(self): | |
print self.harness | |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = '2' | |
Vagrant.require_version '>= 1.5.0' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration |
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
==> derp: Loading Berkshelf datafile... | |
==> derp: Sharing cookbooks with VM | |
==> derp: Updating Vagrant's Berkshelf... | |
==> derp: Resolving cookbook dependencies... | |
==> derp: Fetching 'derp' from source at . | |
==> derp: Fetching 'docker' from source at docker | |
==> derp: Using apt (2.9.2) | |
==> derp: Using build-essential (2.2.4) | |
==> derp: Using chef-sugar (3.3.0) | |
==> derp: Using compat_resource (12.5.26) |
OlderNewer