This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'ruby-growl' | |
g = Growl.new("localhost", "ruby-growl", ["ruby-growl Notification"], ["ruby-growl Notification"], nil) | |
g.notify("ruby-growl Notification", "It Came From Ruby-Growl", "Greetings!", 1, true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a slightly altered version of the script at | |
// http://userscripts.org/scripts/show/43545 | |
// I simply replaced | |
// 'w'.charCodeAt(0) | |
// with | |
// 23 | |
document.addEventListener('keypress', function(event){ | |
var target = event.target; | |
if (event.ctrlKey && event.charCode == 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Place this code in a file name | |
~/Library/KeyBindings/DefaultKeyBinding.dict | |
You make have to create the ~/Library/KeyBindings/ directory*/ | |
{ | |
"^w"="deleteWordBackward:"; | |
/* Here are some other examples, which I'm not currently using | |
For all you'd ever want to know about keybindings in OS X, check out | |
http://xahlee.org/emacs/osx_keybinding.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3) Error: | |
test_search_should_return_matching_ids(ZipCodeTest) [test/unit/zip_code_test.rb]: | |
stack level too deep:/home/devver_user/3/vendor/plugins/routing_tricks/lib/jamis_buck/routing/route.rb:10:in `recognition_conditions_without_host' | |
/home/devver_user/3/vendor/plugins/routing_tricks/lib/jamis_buck/routing/route.rb:10:in `recognition_conditions' | |
/home/devver_user/3/vendor/rails/actionpack/lib/action_controller/routing/route.rb:201:in `write_recognition!' | |
/home/devver_user/3/vendor/rails/actionpack/lib/action_controller/routing/route.rb:118:in `freeze' | |
/home/devver_user/3/vendor/rails/actionpack/lib/action_controller/routing/builder.rb:178:in `build' | |
/home/devver_user/3/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:308:in `add_route' | |
/home/devver_user/3/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:316:in `add_named_route' | |
/home/devver_user/3/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:57:in `method_missing' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
puts "looking for the gems to upgrade..." | |
gem_info = Struct.new(:name, :version) | |
to_reinstall = [] | |
Dir.glob('/opt/local/lib/ruby/gems/**/*.bundle').map do |path| | |
path =~ /.*1.8\/gems\/(.*)-(.*?)\/.*/ | |
name, version = $1, $2 | |
bundle_info = `file #{path}` | |
to_reinstall << gem_info.new(name, version) unless bundle_info =~ /bundle x86_64/ | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ `gem list -i wycats-bundler` = "false" ]; then | |
echo "Installing Bundler" | |
gem install wycats-bundler --no-ri --no-rdoc --source http://gems.github.com | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devver-tester@ip-10-251-110-182:~/bundler_project$ bin/rake | |
(in /home/devver-tester/bundler_project) | |
Loading init file from /home/devver-tester/bundler_project/config/init.rb | |
Loading /home/devver-tester/bundler_project/config/environments/development.rb | |
/usr/local/lib/site_ruby/1.8/rubygems.rb:827:in `report_activate_error': Could not find RubyGem json_pure (>= 0) (Gem::LoadError) | |
from /usr/local/lib/site_ruby/1.8/rubygems.rb:261:in `activate' | |
from /usr/local/lib/site_ruby/1.8/rubygems.rb:68:in `gem' | |
from /home/devver-tester/bundler_project/vendor/gems/gems/merb-core-1.0.11/lib/merb-core/bootloader.rb:419:in `enable_json_gem' | |
from /home/devver-tester/bundler_project/vendor/gems/gems/merb-core-1.0.11/lib/merb-core/bootloader.rb:392:in `run' | |
from /home/devver-tester/bundler_project/vendor/gems/gems/merb-core-1.0.11/lib/merb-core/bootloader.rb:99:in `run' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devver-tester@ip-10-251-110-182:~/bundler_project$ bin/rake --trace | |
(in /home/devver-tester/bundler_project) | |
Loading init file from /home/devver-tester/bundler_project/config/init.rb | |
rake aborted! | |
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- rspec | |
/home/devver-tester/bundler_project/vendor/gems/environment.rb:257:in `require_env' | |
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
/home/devver-tester/bundler_project/vendor/gems/environment.rb:239:in `gem' | |
/home/devver-tester/bundler_project/vendor/gems/environment.rb:239:in `each' | |
/home/devver-tester/bundler_project/vendor/gems/environment.rb:239:in `gem' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gem factorylabs-activewarehouse-etl-0.9.1.7 | |
rake (>= 0.7.1, runtime) | |
activesupport (>= 1.3.1, runtime) | |
activerecord (>= 1.14.4, runtime) | |
fastercsv (>= 1.2.0, runtime) | |
adapter_extensions (>= 0.1.0, runtime) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jsmestad@ip-10-250-203-240:~/2890079547$ gem list capistrano | |
*** LOCAL GEMS *** | |
capistrano (2.5.9) | |
capistrano-ext (1.2.1) | |
jsmestad@ip-10-250-203-240:~/2890079547$ ruby test/unit/provider_test.rb | |
Using AdapterExtensions | |
no such file to load -- capistrano-ext | |
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' |