Skip to content

Instantly share code, notes, and snippets.

@pbyrne
pbyrne / setup.sh
Created October 6, 2011 20:50
Set Up Work Laptop
#!/bin/bash
echo "Updating Homebrew and bash completion"
brew update
echo "
# homebrew completion files for installed libraries
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
" >> ~/.bash_profile
@pbyrne
pbyrne / sss
Created July 18, 2011 22:09
Simple script to perform SCM (svn, hg, git) commands across your workspace
#!/usr/bin/env ruby
#
# Simple script to perform SCM (svn, hg, git) commands across your workspace
# Edit the SHARED_WORKSPACE environment variable if your code isn't checked out to ~/workspace
# Skip to the end for the actual execution ... to keep it all in one file, had to define the class first
# Get the latest version from https://gist.github.com/1090808
USAGE = <<-end_usage
SSS performs SCM commands on all projects in your workspace. Set the
SHARED_WORKSPACE environment variable if your workspace is not ~/workspace.