Ruby 1.9.3-p0 requires a minor patch to make ruby-debug19 work. If you have
ruby-build
and rbenv
installed, these scripts will install ruby-1.9.3-p0.
curl https://raw.github.com/gist/1270704/install-ruby-1.9.3-p0.sh | sh
function __git_dirty { | |
git diff --quiet HEAD &>/dev/null | |
[ $? == 1 ] && echo "!" | |
} | |
function __git_branch { | |
__git_ps1 "(%s)" | |
} | |
function __my_rvm_ruby_version { |
Ctrl-L gives a hashrocket with spaces | |
Shift-Ctrl-[ alternate between {} and do/end blocks | |
Shit-Cmd-D open the require file in another window | |
Ctrl-shift-V validates syntax of ruby file | |
Ctrl-shift-E executes the line | |
Ctrl-shift-; alternate between string and symbol | |
Shift-Option-Cmd-Down show possible destinations | |
Ctrl-Shift-H create partial from selection | |
Ctrl-P gives params[:id] |
# Run me with: | |
# | |
# $ watchr specs.watchr | |
# -------------------------------------------------- | |
# Convenience Methods | |
# -------------------------------------------------- | |
def all_spec_files | |
Dir['spec/**/*_spec.rb'] | |
end |
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~/Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
bash -c ' | |
if [ ! -f /usr/local/bin/chef-client ]; then | |
apt-get update | |
apt-get -y upgrade | |
apt-get install -y build-essential wget zlib1g-dev libssl-dev libffi-dev | |
cd /usr/src | |
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.bz2 | |
tar xjf ruby-1.9.2-p180.tar.bz2 | |
cd ruby-1.9.2-p180 | |
./configure |
# For Rails 3.1 asset packaging / sprockets support | |
# 1. Create a /config/evergreen.rb file and put these contents in it | |
# 2. Adjust the paths below (the provided ones are generic) | |
require ::File.expand_path('../application', __FILE__) | |
module Evergreen | |
class << self | |
def application_with_additions(suite) | |
app = application_without_additions(suite) |
#!/bin/sh | |
set -e | |
# Example init script, this can be used with nginx, too, | |
# since nginx and unicorn accept the same signals | |
# Feel free to change any of the following variables for your app: | |
TIMEOUT=${TIMEOUT-60} | |
APP_ROOT=/path/to/your/app/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid | |
ENVIRONMENT=production |
[solarized-dark] | |
background = #002b36 | |
foreground = #839496 | |
majorLine = #fdf6e3 | |
minorLine = #eee8d5 | |
lineColors = #268bd2,#859900,#dc322f,#d33682,#db4b16,#b58900,#2aa198,#6c71c4 | |
fontName = Sans | |
fontSize = 10 | |
fontBold = False | |
fontItalic = False |
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.