NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| html | |
| head | |
| title= title("My site") | 
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| if [ -f "${rvm_path}/scripts/rvm" ]; then | |
| source "${rvm_path}/scripts/rvm" | |
| if [ -f ".rvmrc" ]; then | |
| source ".rvmrc" | |
| elif [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then | |
| rvm use `cat .ruby-version`@`cat .ruby-gemset` | |
| elif [ -f ".ruby-version" ]; then | |
| rvm use `cat .ruby-version` | 
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.
| #!/bin/sh | |
| # Auto-applies changes from the index to a previous commit | |
| # eg | |
| # git add foo | |
| # git autofix HEAD~3 | |
| #!/bin/sh | |
| target="$(git rev-parse $1)" | 
| --- a/load.c 2010-10-23 05:36:38.000000000 -0400 | |
| +++ b/patchload.c 2011-06-05 08:58:00.000000000 -0400 | |
| @@ -40,14 +40,6 @@ | |
| VALUE ary; | |
| long i; | |
| - for (i = 0; i < RARRAY_LEN(load_path); ++i) { | |
| - VALUE str = rb_check_string_type(RARRAY_PTR(load_path)[i]); | |
| - if (NIL_P(str) || !rb_is_absolute_path(RSTRING_PTR(str))) | |
| - goto relative_path_found; | 
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'json' | |
| # Clone a github repo, add all forks as remotes: | |
| # $ git clone https://github.com/rails/rails.git | |
| # $ cd rails | |
| # $ git add-github-forks | 
| " Conque | |
| " http://www.vim.org/scripts/script.php?script_id=2771 | |
| " ~/.vim/after/ftplugin/conque_term.vim | |
| augroup MyConqueTerm | |
| autocmd! | |
| " start Insert mode on BufEnter | |
| autocmd BufEnter * | |
| \ if &l:filetype ==# 'conque_term' | |