Skip to content

Instantly share code, notes, and snippets.

@filiptepper
Created December 16, 2013 08:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filiptepper/7983785 to your computer and use it in GitHub Desktop.
Save filiptepper/7983785 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$actions = [
'Time to stand up.',
'Grab the ball.',
'Sit down.'
]
def take_action
current_action = $actions.shift
`terminal-notifier -message '#{current_action}' -title 'Get up, stand up!' -sound 'default'`
$actions << current_action
end
while true
take_action
sleep 60 * 20
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment