Skip to content

Instantly share code, notes, and snippets.

View bcardarella's full-sized avatar
Out sailing

Brian Cardarella bcardarella

Out sailing
View GitHub Profile
@bcardarella
bcardarella / .autotest
Created April 20, 2009 18:53 — forked from technicalpickles/.autotest
Evil Autotest has Temper Tantrums
# http://gist.github.com/10524
# Prevents autotest from running your entire test suite after fixing a failed test.
# Works with ZenTest 3.10.0
# Place this in your .autotest file:
require 'rubygems'
require 'active_support'
class Autotest
def run_with_not_rerunning_everything
hook :initialize
[*1..99].reverse.each do |i|
phrase = ["#{i} bottles of beer on the wall",
"#{i} bottles of beer",
"You take one down",
"You pass it around",
"#{i - 1} bottles of beer on the wall.."].join(".. ")
`say #{phrase}`
end
@bcardarella
bcardarella / build_ruby19.sh
Created February 18, 2009 20:15 — forked from postmodern/build_ruby19.sh
Ruby 1.8 and 1.9 side-by-side
#!/bin/sh
mkdir -p /usr/local/src && cd /usr/local/src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.bz2
tar -xjvf ruby-1.9.1-p0.tar.bz2
cd ruby-1.9.1-p0
./configure --prefix=/usr --program-suffix=19 --enable-shared
make && make install
@bcardarella
bcardarella / gist:64930
Created February 16, 2009 00:45 — forked from bryanl/gist:64867
ApplScript to setup Environment from bryanl
tell application "MacVim"
activate
set bounds of the first window to {0, 0, 950, 900}
end tell
tell application "Terminal"
activate
do script "cd ~/Development"
set bounds of the first window to {945, 0, 1440, 450}
@bcardarella
bcardarella / env.rb
Created January 26, 2009 00:06 — forked from jeffrafter/env.rb
Some good Cucumber Stories for Signup and Authentication
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
require 'shoulda'
require 'webrat'
require 'factory_girl'
require 'test/factories/clearance'
require 'clearance/../../shoulda_macros/clearance'
require 'cucumber/rails/world'
Cucumber::Rails.use_transactional_fixtures