Skip to content

Instantly share code, notes, and snippets.

View thejonanshow's full-sized avatar

Jonan Scheffler thejonanshow

View GitHub Profile
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)
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-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%)
@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
##### 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.
bundler•ruby-1.9.3-p392@bundler•master»» rake spec:deps --trace
rake aborted!
cannot load such file -- rspec/core/rake_task
/Users/jonan/Dropbox/code/bundler/Rakefile:54:in `require'
/Users/jonan/Dropbox/code/bundler/Rakefile:54:in `<top (required)>'
/Users/jonan/.rvm/gems/ruby-1.9.3-p392@bundler/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/Users/jonan/.rvm/gems/ruby-1.9.3-p392@bundler/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/jonan/.rvm/gems/ruby-1.9.3-p392@bundler/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/Users/jonan/.rvm/gems/ruby-1.9.3-p392@bundler/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/Users/jonan/.rvm/gems/ruby-1.9.3-p392@bundler/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
#
# This file configures the New Relic Agent. New Relic monitors
# Ruby, Java, .NET, PHP, and Python applications with deep visibility and low overhead.
# For more information, visit www.newrelic.com.
#
# Generated June 03, 2013
#
# This configuration file is custom generated for Barsoom

Keybase proof

I hereby claim:

  • I am 1337807 on github.
  • I am jonan (https://keybase.io/jonan) on keybase.
  • I have a public key whose fingerprint is 16A9 8E59 705B EFF2 3A92 2779 1E10 A32A 2520 5CD8

To claim this, I am signing this object:

@thejonanshow
thejonanshow / find_from_gemfile.rb
Created April 14, 2014 23:41
Searches the source of every gem in a Gemfile for a particular search term (using 'ag', The Silver Searcher)
term = ARGV[0]
puts "Searching all gems in Gemfile for #{term}..."
gemfile = File.read('Gemfile')
gems = gemfile.split("\n").map do |line|
next unless line.match(/gem '/)
line.split('gem').last.split(',').first.gsub("'","").split.first.strip
end.compact
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" >
$(window).load(function() {
$("#navFill").height($("#contentWrapper").height()-558);
});
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
$(document).keydown(function(e) {
kkeys.push( e.keyCode );