Skip to content

Instantly share code, notes, and snippets.

@bonkydog
Created December 2, 2009 23:50
Show Gist options
  • Save bonkydog/247744 to your computer and use it in GitHub Desktop.
Save bonkydog/247744 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "rubygems"
require "g"
# check "Listen for incoming notifications" in your Growl preference pane
begin
raise if ARGV.size != 1
fork do
Process.setpgrp
sleep(ARGV[0].to_f * 60)
g "Tea!"
end
rescue
puts "usage: tea minutes"
exit -1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment