Skip to content

Instantly share code, notes, and snippets.

jimmysoho

Block or report user

Report or block jimmysoho

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
@jimmysoho
jimmysoho / gist:870446
Created Mar 15, 2011
Testing Mail gem performance
View gist:870446
def address(display_name, email_address)
address = Mail::Address.new
address.display_name = display_name
address.address = email_address
address
end
begin
n = 1000
startTime = Time.now
View gist:534668
# Our own variable where we deploy this app to
deploy_to = "/srv/example.com"
current_path = "#{deploy_to}/current"
shared_path = "#{deploy_to}/shared"
shared_bundler_gems_path = "#{shared_path}/bundler_gems"
# See http://unicorn.bogomips.org/Sandbox.html
# Helps ensure the correct unicorn_rails is used when upgrading with USR2
Unicorn::HttpServer::START_CTX[0] = "#{shared_bundler_gems_path}/bin/unicorn_rails"
You can’t perform that action at this time.