Skip to content

Instantly share code, notes, and snippets.

View ccollins's full-sized avatar

Chuck Collins ccollins

  • Duco
  • Nashville, TN
View GitHub Profile
### Keybase proof
I hereby claim:
* I am ccollins on github.
* I am ccollins (https://keybase.io/ccollins) on keybase.
* I have a public key ASDDud6APx58xKkTJlB-EQUYfOMHnw-j4yPasg5-s4SpwQo
To claim this, I am signing this object:
@ccollins
ccollins / 0-readme.md
Created March 7, 2012 14:22 — forked from burke/0-readme.md
ruby-1.9.3-p125 cumulative performance patch.

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.

@ccollins
ccollins / watchr.rb
Created December 11, 2010 18:44
watchr - cucumber, rspec
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')
@ccollins
ccollins / hack
Created August 7, 2010 17:49 — forked from ymendel/hack
#!/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
(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#)))