Skip to content

Instantly share code, notes, and snippets.

@rococodogs
Last active August 29, 2015 14:02
Show Gist options
  • Save rococodogs/0ab05af70ee0204f2bdc to your computer and use it in GitHub Desktop.
Save rococodogs/0ab05af70ee0204f2bdc to your computer and use it in GitHub Desktop.
cheerful notifications to help un-bum me out
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"
}
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