Skip to content

Instantly share code, notes, and snippets.

@syui
Created November 4, 2013 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syui/7305556 to your computer and use it in GitHub Desktop.
Save syui/7305556 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
# https://gist.github.com/hitode909/1239124
# require 'systemu'
last = nil
loop {
current = `pbpaste`
if last != current
puts current
last = current
system("growlnotify -a Twitter -m '#{current}'")
end
sleep 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment