Last active
August 29, 2015 14:02
-
-
Save rococodogs/0ab05af70ee0204f2bdc to your computer and use it in GitHub Desktop.
cheerful notifications to help un-bum me out
This file contains 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
require "terminal-notifier" | |
messages = [ | |
"Hang in there baby!", | |
"You know, you're a great person!", | |
"How's it going? Just wanted to see if everything was okay!", | |
"Just think about how great the sun is!", | |
"Maybe now's a good time to get up and walk around?", | |
"You look great today, did you know that?", | |
"I certainly appreciate what you do!" | |
] | |
TerminalNotifier.notify messages.fetch(rand(messages.size)), | |
{ :title => "A friendly kitten says", | |
# need an absolute path when this is called from a cron | |
:appIcon => "/Users/Adam/.notivational/kitten.jpg" | |
} |
This file contains 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
every 3.hours do | |
command "ruby /Users/Adam/.notivational/notivational.rb" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment