Skip to content

Instantly share code, notes, and snippets.

View thejonanshow's full-sized avatar

Jonan Scheffler thejonanshow

View GitHub Profile
##### Basic Usage #####
# First things first: Remap the prefix key to reduce conflicts with Emacs!
unbind C-b
# By default, we'll use Control-backslash as the prefix key.
set -g prefix 'C-\' ; bind 'C-\' send-prefix
# However, some people complain about this, so we'll also add a few
# bindings that let you quickly select the binding you want.
@thejonanshow
thejonanshow / gist:5223075
Created March 22, 2013 17:17
Comment rescue LoadError and `rake spec:deps` now fails with `cannot load such file -- rspec/core/rake_task`
176 # rescue LoadError
177 # task :spec do
178 # abort "Run `rake spec:deps` to be able to run the specs"
179 # end
180 end
bundler•ruby-1.9.3-p392@bundler•master»» rake spec:deps
rake aborted!
cannot load such file -- rspec/core/rake_task
bundler•ruby-1.9.3-p392@bundler•master» rake spec:deps
/Users/jonan/.rvm/rubies/ruby-1.9.3-p392/bin/ruby -S gem list rdiscount -v '~> 1.6' | grep 'rdiscount' -q || /Users/jonan/.rvm/rubies/ruby-1.9.3-p392/bin/ruby -S gem install rdiscount -v '~> 1.6' --no-ri --no-rdoc
Fetching: rdiscount-1.6.8.gem (100%)
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
1 gem installed
/Users/jonan/.rvm/rubies/ruby-1.9.3-p392/bin/ruby -S gem list ronn -v '~> 0.7.3' | grep 'ronn' -q || /Users/jonan/.rvm/rubies/ruby-1.9.3-p392/bin/ruby -S gem install ronn -v '~> 0.7.3' --no-ri --no-rdoc
Fetching: hpricot-0.8.6.gem (100%)
Building native extensions. This could take a while...
Fetching: rdiscount-2.0.7.1.gem (100%)
bundler•ruby-1.9.3-p385@code•master» gem list
*** LOCAL GEMS ***
actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
bundler•ruby-1.9.3-p385@code•master» rake spec:deps
/Users/jonan/.rvm/rubies/ruby-1.9.3-p385/bin/ruby -S gem list rdiscount -v '~> 1.6' | grep 'rdiscount' -q || /Users/jonan/.rvm/rubies/ruby-1.9.3-p385/bin/ruby -S gem install rdiscount -v '~> 1.6' --no-ri --no-rdoc
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
1 gem installed
/Users/jonan/.rvm/rubies/ruby-1.9.3-p385/bin/ruby -S gem list ronn -v '~> 0.7.3' | grep 'ronn' -q || /Users/jonan/.rvm/rubies/ruby-1.9.3-p385/bin/ruby -S gem install ronn -v '~> 0.7.3' --no-ri --no-rdoc
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Error installing ronn:
ronn requires hpricot (>= 0.8.2)
@thejonanshow
thejonanshow / gist:5180381
Created March 17, 2013 06:27
Bundler `rake spec:deps` error
bundler•ruby-1.9.3-p385@code•master» rake spec:deps
/Users/jonan/.rvm/rubies/ruby-1.9.3-p385/bin/ruby -S gem list rdiscount -v '~> 1.6' | grep 'rdiscount' -q || /Users/jonan/.rvm/rubies/ruby-1.9.3-p385/bin/ruby -S gem install rdiscount -v '~> 1.6' --no-ri --no-rdoc
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.8
1 gem installed
/Users/jonan/.rvm/rubies/ruby-1.9.3-p385/bin/ruby -S gem list ronn -v '~> 0.7.3' | grep 'ronn' -q || /Users/jonan/.rvm/rubies/ruby-1.9.3-p385/bin/ruby -S gem install ronn -v '~> 0.7.3' --no-ri --no-rdoc
Fetching: hpricot-0.8.6.gem (100%)
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Error installing ronn:
granary•jruby-1.6.7@granary•master»» bundle
Fetching gem metadata from https://rubygems.org/........
Bundler could not find compatible versions for gem "thor":
In Gemfile:
jbundler (>= 0) java depends on
thor (= 0.14.6) java
jquery-rails (>= 0) java depends on
thor (0.15.4)
@thejonanshow
thejonanshow / chef_solo_bootstrap.sh
Created June 11, 2012 15:23 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194/
./configure --prefix=/usr/local
make
make install
@thejonanshow
thejonanshow / branch_murder
Created May 16, 2012 18:44 — forked from codezilla-xx/branch_murder
Delete all merged local git branches
git branch -d $( git branch --merged | grep -v '^\*' | grep -v 'master' )
This is a test of the gist api.