Skip to content

Instantly share code, notes, and snippets.

@Xuhao
Xuhao / 0-readme.md
Created February 16, 2012 03:32 — forked from burke/0-readme.md
ruby-1.9.3-p0 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.

@Xuhao
Xuhao / encoding
Created January 9, 2012 03:42
Add "# encoding: utf-8" for each files
# find app/controllers/ -name "*" -print | xargs -i sed -i '1i\# encoding: utf-8' {}
@Xuhao
Xuhao / gist:1177651
Created August 29, 2011 02:36 — forked from liwh/gist:701422
textmate快捷键
自动补全 : esc
查找项目文件:command+t
查找文件内符号:shift+command+t
跳到某行:command+l
选择:shift+方向键
向后缩进:option+tab
向前缩进:shift+option+tab
reformat 所选:option+command+[
大写所选:control+u
小写所选:control+shift+u
@Xuhao
Xuhao / install.sh
Created August 16, 2011 04:12
textmate bundle for RSpec
#!/bin/sh
cd ~/Library/Application\ Support/TextMate/Bundles/
git clone git://github.com/rspec/rspec-tmbundle.git RSpec.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'