Created
November 4, 2013 16:50
-
-
Save syui/7305556 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# 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