Chuck Collins ccollins

View 0-readme.md

Patched ruby 1.9.3-p0 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p0 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84).

Huge thanks to funny-falcon for the performance patches.

View watchr.rb
1 2 3 4 5 6 7 8 9
require 'growl'
require 'open3'
 
ENV["WATCHR"] = "1"
$spec_cmd = "env RSPEC_COLOR=true spec --drb --colour --format nested"
$cuke_cmd = "cucumber --color --drb --require features/step_definitions --require features/support"
$pass = File.join(File.expand_path(File.dirname(__FILE__)), '.watchr_images', 'pass.png')
$fail = File.join(File.expand_path(File.dirname(__FILE__)), '.watchr_images', 'fail.png')
$pending = File.join(File.expand_path(File.dirname(__FILE__)), '.watchr_images', 'pending.png')
View hack
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
BRANCHES=`git branch`
if [ $? != 0 ]; then
exit
fi
 
GIT_SVN=0
git branch -r | grep 'git-svn' > /dev/null
if [ $? = 0 ]; then
GIT_SVN=1
View gist:281129
1 2 3 4 5 6 7 8 9 10
(defmacro gen-controllers [resource views]
`(let [res-name# (name ~resource)
index# (str res-name# "-index")]
(list
(defn index# []
((~views :index) (mongo/fetch-all col)))
(defn c-show [id#]
((~views :show) (mongo/fetch-by-id col id#)))
Something went wrong with that request. Please try again.