Skip to content

Instantly share code, notes, and snippets.

View turtlebender's full-sized avatar

Tom Howe turtlebender

  • Dell | Software
  • Chicago, IL
View GitHub Profile
@turtlebender
turtlebender / node conf
Created September 4, 2012 13:54
strange data bag result
"gearbox": {
"data_bags": {
"pypi": [
"gearbox"
]
},
"apps": [
"pypi"
],
"artifact_bucket": "s3_ops"
@turtlebender
turtlebender / gist:3429094
Created August 22, 2012 20:33
Current Makefile
VIRTUALENV_URL=https://raw.github.com/pypa/virtualenv/master/virtualenv.py
PROJECT_NAME:=$(shell python setup.py --name)
VIRTUALENV_DIR=vendor/$(PROJECT_NAME)
DOWNLOAD_CACHE=vendor/cache
PIP_CMD=PIP_DOWNLOAD_CACHE=$(DOWNLOAD_CACHE) $(VIRTUALENV_DIR)/bin/pip
SRC_DIR=src
COVER_PACKAGE=ns
TEST_OUTPUT_DIR=test_results
TEST_DIR=tests
@turtlebender
turtlebender / output
Created August 22, 2012 13:54
gearbox makefile
VIRTUALENV_URL=https://raw.github.com/pypa/virtualenv/master/virtualenv.py
DOWNLOAD_CACHE=vendor/cache
SRC_DIR=src
COVER_PACKAGE=ns
TEST_OUTPUT_DIR=test_results
TEST_DIR=tests
PHONY: clean
clean_all:
@turtlebender
turtlebender / ubuntu12.04.erb
Created June 26, 2012 16:00
bootstrap file
bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
if [ ! -f /usr/bin/chef-client ]; then
aptitude update
aptitude install -y ruby ruby1.8-dev build-essential wget libruby1.8 rubygems
fi
gem update --no-rdoc --no-ri
gem install ohai --no-rdoc --no-ri --verbose
@turtlebender
turtlebender / default.rb
Created June 20, 2012 16:12
certificate deploy
# Cookbook Name:: certificates
# Recipe:: default
#
# Deploy one or more X.509 Certificates to a server.
#
# Copyright 2012, University of Chicago
#
# All rights reserved - Do Not Redistribute
#
package "openssl"
@turtlebender
turtlebender / gearbox.ini
Created May 29, 2012 16:40
uWSGI configs
[uwsgi]
socket=/tmp/gearbox.sock
master=true
chmod=666
processes=1
post-buffering=4096
rbrequire=rubygems
rbrequire=bundler/setup
rack=/gearbox/config.ru
ruby-gc-freq=10
@turtlebender
turtlebender / group description
Created May 15, 2012 14:48
group description example
{
"inactive_count": 0,
"invited_count": 2,
"invite": {
"url": "/groups/e34a302c-7f3b-11e1-aeb3-1231380dcd5a/members"
},
"name": "BIRN Community",
"parent": null,
"email_templates": {
"url": "/groups/e34a302c-7f3b-11e1-aeb3-1231380dcd5a/email_templates"
"""
This module will calculate a verion number based on the git status
of the current project.
It assumes that the branch names follow a convention where there is
a single integration branch, a single production branch and release
branches are prefixed with 'RELEASE'. In addition this relies on
tags marked SIGNOFF to calculate production versions. The specific
names for the integration and production branches can be specified as
"""
vagrant@precise:~/build/globusonline-graph$ /usr/bin/git --git-dir=/home/vagrant/build/globusonline-graph pull
fatal: Not a git repository: '/home/vagrant/build/globusonline-graph'
vagrant@precise:~/build/globusonline-graph$ /usr/bin/git pull
Already up-to-date.
vagrant@precise:~/build/globusonline-graph$
@turtlebender
turtlebender / gist:2423923
Created April 19, 2012 20:24
weird error
/tmp/tmp5zRHgT/app/nexus/venv/bin/pip install -i http://pypi.utils.globuscs.info/simple --no-deps -r requirements.txt
remote: Downloading/unpacking agamemnon from git+git://github.com/globusonline/agamemnon.git@ed842f1542dfdea476d8881516edfaf3ed61da7c (from -r requirements.txt (line 18))
remote: Cloning git://github.com/globusonline/agamemnon.git (to ed842f1542dfdea476d8881516edfaf3ed61da7c) to ./venv/build/agamemnon
remote: Command /usr/lib/git-core/git tag -l had error code 128 in /tmp/tmp5zRHgT/app/nexus/venv/build/agamemnon
remote: Complete output from command /usr/lib/git-core/git rev-parse "fatal: Not a git repository: '.'":
remote: fatal: Not a git repository: '.'