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 / setup-statsd.sh
Created October 25, 2011 14:08 — forked from collegeman/setup-statsd.sh
Turn an Ubuntu 10.04 linode into a StatsD/Graphite server
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
# install the Node package manager for later use
@turtlebender
turtlebender / go_wordpress.sh
Created December 25, 2011 00:45
Install globusonline wordpress on os x
#!/bin/bash
echo "Check if RVM is installed"
which rvm > /dev/null 2>&1
if [ $? -eq 0 ]
then
echo "RVM is already installed, skipping"
else
echo "Installing RVM"
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
from __future__ import absolute_import
"""
This will configure and run the nosetests for graph against remove ec2 servers.
Running this makes a few assumptions.
1) You must have access to graph on github. This will checkout the repo to run the tests
2) You must have an account on EC2 and be able to create instances.
In order to configure, you need to create a file in your home called ~/.boto that looks like:
from __future__ import absolute_import
"""
This will configure and run the nosetests for graph against remove ec2 servers.
Running this makes a few assumptions.
1) You must have access to graph on github. This will checkout the repo to run the tests
2) You must have an account on EC2 and be able to create instances.
In order to configure, you need to create a file in your home called ~/.boto that looks like:
from __future__ import absolute_import
"""
This will configure and run the nosetests for graph against remove ec2 servers.
Running this makes a few assumptions.
1) You must have access to graph on github. This will checkout the repo to run the tests
2) You must have an account on EC2 and be able to create instances.
In order to configure, you need to create a file in your home called ~/.boto that looks like:
@turtlebender
turtlebender / gist:1626480
Created January 17, 2012 12:21
Current AMI
ami-ab39eec2
#!/bin/bash
export GLOBUS_LOCATION=/usr
export GLOBUS_FLAVOR=
cd ~/graph
if ! git rev-parse --git-dir > /dev/null; then
echo "This is not a git directory"
exit 1
fi
from __future__ import absolute_import
import os.path
from fabric.api import *
from fabric.contrib.project import rsync_project
env.hosts = ['wordpress1.globuscs.info','wordpress2.globuscs.info']
@parallel
from globusonline.graph import data_store
import globusonline.graph
from globusonline.graph.request import TestRequest
from globusonline.graph.users import resources as users
from globusonline.graph import groups
from ConfigParser import RawConfigParser
from sys import argv
# Setup:
config = RawConfigParser()
@turtlebender
turtlebender / vim.rb
Created February 2, 2012 15:16 — forked from brucespang/vim.rb
Vim formula for Homebrew
require 'formula'
class Vim < Formula
# Get stable versions from hg repo instead of downloading an increasing
# number of separate patches.
url 'https://vim.googlecode.com/hg/', :revision => '992b24149a9e'
version '7.3.333'
homepage 'http://www.vim.org/'
head 'https://vim.googlecode.com/hg/'