Skip to content

Instantly share code, notes, and snippets.

View kidbrax's full-sized avatar

Braxton Beyer kidbrax

View GitHub Profile
@bdwong
bdwong / configure.patch
Created April 6, 2011 19:14
Patch to SWIG 2.0.2 to make it build with rvm under Mac OS 10.6
--- configure 2011-02-20 12:24:48.000000000 -0800
+++ configure.mine 2011-03-29 15:46:00.000000000 -0700
@@ -8654,15 +8654,20 @@
RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG["archdir"] || $archdir') 2>/dev/null`
if test x"$RUBYDIR" != x""; then
- dirs="$RUBYDIR"
- RUBYINCLUDE=none
+ # dirs for rvm
+ dirs="`cd $MY_RUBY_HOME/include/*/*/ruby/..;pwd` `cd $MY_RUBY_HOME/include/*;pwd`"
+ RUBYINCLUDE=""
@rtekie
rtekie / cap_notify.rb
Created April 2, 2011 16:16
Capistrano deployment email notifier for Rails 3
=begin
Capistrano deployment email notifier for Rails 3
Do you need to send email notifications after application deployments?
Christopher Sexton developed a Simple Capistrano email notifier for rails. You can find details at http://www.codeography.com/2010/03/24/simple-capistrano-email-notifier-for-rails.html.
Here is Rails 3 port of the notifier.
The notifier sends an email after application deployment has been completed.
@markoa
markoa / capistrano-with-bundler-deploy.rb
Created March 15, 2011 11:18
The snippet for config/deploy.rb to use Bundler.
# use this in a after "deploy:update_code" block
namespace :bundler do
task :create_symlink, :roles => :app do
shared_dir = File.join(shared_path, 'bundle')
release_dir = File.join(current_release, '.bundle')
run("mkdir -p #{shared_dir} && ln -s #{shared_dir} #{release_dir}")
end
task :bundle_new_release, :roles => :app do