Skip to content

Instantly share code, notes, and snippets.

View ewollesen's full-sized avatar

Eric Wollesen ewollesen

  • Salt Lake City, UT
View GitHub Profile
@ttscoff
ttscoff / growlnotify.rb
Created August 1, 2012 11:18
Seamless drop-in to turn existing growlnotify calls into Mountain Lion Notifications
#!/usr/bin/env ruby
# encoding: utf-8
# == Synopsis
# Requires the terminal-notifier gem ([sudo] gem install terminal-notifier)
# growlnotify wrapper to turn Growl alerts into Mountain Lion notifications
# Uses growlnotify option syntax to keep your old scripts working with the new shiny.
#
# If you use Growl via growlnotify in your shell scripting, this script
# will replace Growl's alerts with Mountain Lion notifications.
@myronmarston
myronmarston / example.rb
Created February 27, 2011 04:17
Demonstration of a weird bug in Ruby 1.9.
module MyModule
def some_method; super; end
end
class MyBaseClass; end
class MySubClass < MyBaseClass;
include MyModule
end
@mcmire
mcmire / db_related_rails_tasks.md
Created January 19, 2011 22:28
Useful database-related tasks in Rails