Skip to content

Instantly share code, notes, and snippets.

gem install mysql -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
sudo port install memcached libmemcached
sudo env ARCHFLAGS="-arch i386" gem install memcached -- --with-rlibmemcached-include=/opt/local/include --with-rlibmemcached-lib=/opt/local/lib
find directory -iname *PATTERN* -exec ls {} \;
git push origin :branch_to_delete
grep /pattern/ file | wc -l
svn status --no-ignore | grep '^\?' | sed 's/^\? //'
svn status --no-ignore | grep '^\?' | sed 's/^\? //' | xargs rm -rf
mongrel_rails cluster::start -C config/mongrel_cluster.yml -v
default: -r features/support/env.rb -r features/support/plain.rb -r features/step_definitions features/plain
selenium: -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced
class String
def blank?
self.nil? || self == ''
end
end
plugin 'rspec', :git => 'git://github.com/dchelimsky/rspec.git'
plugin 'rspec-rails', :git => 'git://github.com/dchelimsky/rspec-rails.git'
plugin 'cucumber', :git => 'git://github.com/aslakhellesoy/cucumber.git'
plugin 'exception_notifier', :git => 'git://github.com/rails/exception_notification.git'
require 'rubygems'
require 'eventmachine'
require 'socket'
module RPCServer
include EM::P::ObjectProtocol
def post_init
@obj = Hash.new
end
def receive_object method