Skip to content

Instantly share code, notes, and snippets.

@jaymcgavren
Created June 22, 2009 01:30
Show Gist options
  • Save jaymcgavren/133755 to your computer and use it in GitHub Desktop.
Save jaymcgavren/133755 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'utility'
file = File.open(File.join(ENV['HOME'], "events.txt"), "a")
t = Time.new
time = sprintf("%04d-%02d-%02d_%02d%02d%02d", t.year, t.month, t.day, t.hour, t.min, t.sec)
file.puts "#{time}\t#{ARGV.join(' ')}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment