Skip to content

Instantly share code, notes, and snippets.

Avatar

Paulo Köch pkoch

View GitHub Profile
@denyago
denyago / gist:1521093
Created Dec 26, 2011
Insatall ruby-debug19 on ruby 1.9.3-p0 and Rails 3.1
View gist:1521093

Patch for load speed: https://gist.github.com/1484985

cd /tmp
git clone git://gist.github.com/1484985.git
rvm install ruby-1.9.3-p0 --patch /tmp/1484985/cached_lp_sorted_lf.patch -n patched

Download fresh ruby-debug19

@ianmurrays
ianmurrays / deploy.rb
Created Jul 21, 2011
Runs test locally before deploying on capistrano.
View deploy.rb
set :test_log, "logs/capistrano.test.log"
namespace :deploy do
before 'deploy:update_code' do
puts "--> Running tests, please wait ..."
unless system "bundle exec rake > #{test_log} 2>&1" #' > /dev/null'
puts "--> Tests failed. Run `cat #{test_log}` to see what went wrong."
exit
else
puts "--> Tests passed"
@brienw
brienw / rake_autocomplete_for_bash.rb
Created Jun 14, 2011 — forked from petrblaho/rake_autocomplete_for_bash.rb
bash autocomplete for rake with cache
View rake_autocomplete_for_bash.rb
#!/usr/bin/env ruby
# Complete rake tasks script for bash
# Save it somewhere and then add
# complete -C path/to/script -o default rake
# to your ~/.bashrc
# Xavier Shay (http://rhnh.net), combining work from
# Francis Hwang ( http://fhwang.net/ ) - http://fhwang.net/rb/rake-complete.rb
# Nicholas Seckar <nseckar@gmail.com> - http://www.webtypes.com/2006/03/31/rake-completion-script-that-handles-namespaces
# Saimon Moore <saimon@webtypes.com>