Skip to content

Instantly share code, notes, and snippets.

View fd's full-sized avatar
🏳️‍🌈
Unstoppable

Simon Menke fd

🏳️‍🌈
Unstoppable
View GitHub Profile
@fd
fd / arrrr.rb
Created May 8, 2009 08:37
Part 1 in our Arrrrcamp presentation
# sudo gem source -a http://gems.github.com
# sudo gem install thoughtbot-paperclip giraffesoft-resource_controller restfulx
def mate(path='')
run "mate #{path}"
end
def step(name='')
$step_count ||= 0
$step_count += 1
@fd
fd / gist:91735
Created April 8, 2009 11:48
Install Nokogiri on centos5
# It seems you need the latest version of rubygems
sudo gem update --system
# and some RPM's
sudo yum install libxml libxml-devel libxslt libxslt-devel
# now the gem should install ok
sudo gem install nokogiri
@fd
fd / step_1.bash
Created April 8, 2009 11:46
Update passenger+rails on centos5
sudo gem update rails
sudo gem update passenger
sudo passenger-install-apache2-module
@fd
fd / gist:89165
Created April 2, 2009 12:28
Switch between multiple rubies
function use_ruby_186 {
export MY_RUBY_HOME=/System/Library/Frameworks/Ruby.framework/Versions/Current/usr
export GEM_HOME=~/.gem/ruby/1.8
update_path
}
function use_ruby_187 {
export MY_RUBY_HOME=/opt/local
export GEM_HOME=~/.gem/ruby/1.8