Skip to content

Instantly share code, notes, and snippets.

# The latest version of this script is now available at
# https://github.com/jasoncodes/dotfiles/blob/master/aliases/rbenv.sh
VERSION=1.9.3-p194
sudo brew update
sudo brew install libyaml openssl rbenv ruby-build rbenv-vars readline ctags
if [ -n "${ZSH_VERSION:-}" ]; then
echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc
else
echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.bash_profile
@bkayser
bkayser / account.rb
Created May 10, 2012 00:05
Example of monitoring a ruby background job with New Relic
class Account
include NewRelic::Agent::MethodTracer
def check_usage
end
def send_invoice
end
add_method_tracer :check_usage
@bkayser
bkayser / .git-completion.sh
Created September 13, 2011 17:48 — forked from foliosus/.git-completion.sh
Git completion script
#!bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#