Skip to content

Instantly share code, notes, and snippets.

Emanuele Vicentini baldowl

Block or report user

Report or block baldowl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
baldowl / god.rb
Created Jun 24, 2010 — forked from defunkt/god.rb
How to avoid untracked rake processes
View god.rb
rails_root = "/data/github/current"
20.times do |num| do |w|
w.dir = rails_root
w.env = {'RAILS_ENV' => 'production'} = "dj-#{num}" = 'dj'
w.interval = 30.seconds
baldowl / Additions to rb_main.rb
Created Jun 17, 2010
Using Bundler08 Instead Of Standaloneify
View Additions to rb_main.rb
require 'vendor/gems/environment'
baldowl / thin_recipe.rb
Created Jun 9, 2010
Keep-alive vs. Mongrel; saved by Thin
View thin_recipe.rb
set :thin_conf, "#{current_path}/config/thin_cluster.yml"
namespace :deploy do
%w(star stop restar).each do |action|
task action.to_sym, :roles => :app do
run "thin -c #{deploy_to}/current -C #{thin_conf} #{action}"
baldowl / .gitattributes
Created Apr 25, 2010
Setting up Git for Xcode
View .gitattributes
# Better to treat them as binary files.
*.pbxproj -crlf -diff -merge
*.pbxuser -crlf -diff -merge
*.xib -crlf -diff -merge
baldowl / app.rb
Created Apr 13, 2010
View app.rb
before do
cache_control :public, :max_age => 31557600
get '/' do
send_file(File.join(settings.public, 'index.html'), :disposition => nil)
get '/*' do
send_file(File.join(settings.public, params[:splat]), :disposition => nil)
You can’t perform that action at this time.