Skip to content

Instantly share code, notes, and snippets.

@joonas
joonas / 0-readme.md
Created October 25, 2012 04:27 — forked from sj26/0-readme.md
ruby-1.9.3-p194 cumulative performance patch.

Patched ruby 1.9.3-p194 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p194 with patches for boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.

Huge thanks to funny-falcon for the performance patches.

{
"run_list": [
"recipe[nginx::source]",
"recipe[rbenv::ruby_build]"
],
"rbenv": {"group_users": ["ec2-user"]}
}
@joonas
joonas / fileless_file.rb
Created July 7, 2012 01:40 — forked from mkrogh/fileless_file.rb
Carrierwave proccess zipfile contents
#A nice little carrierwave IO faker class
class FilelessFile < StringIO
attr_accessor :original_filename
end
@joonas
joonas / fakeout.rb
Created July 7, 2012 00:02 — forked from matthutchinson/fakeout.rb
fake.rake - a takeout approach and rake task that generates some random fake data for a rails app (using ffaker)
# place this in lib/fakeout.rb
require 'ffaker'
module Fakeout
class Builder
FAKEABLE = %w(User Product)
attr_accessor :report
@joonas
joonas / vagrant.org
Created December 21, 2011 23:52
CentOS Box for Vagrant
@joonas
joonas / gist:1176903
Created August 28, 2011 16:55
params
class postgres::params {
$service_name = $operatingsystem ? {
"Ubuntu" => $lsbdistrelease {
"10.04" => "postgresql-${version}",
"10.10", "11.04" => "postgresql",
},
default => "postgresql",
}
}