Skip to content

Instantly share code, notes, and snippets.

@dt
Created July 18, 2011 21:58
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dt/1090775 to your computer and use it in GitHub Desktop.
Save dt/1090775 to your computer and use it in GitHub Desktop.
In case you occasionally forget to flatMap that shit
brew install growlnotify
cat >> ~/.bashrc <<EOF
#flatMapThatShit reminder
if [ -f /tmp/flatMapThatShit ]; then
kill \`cat /tmp/flatMapThatShit\`
fi
while true; do if [[ \$RANDOM%12 -eq 0 ]]; then growlnotify -a TextEdit "Is that scala?" -m "flatMap that shit"; fi; sleep 300; done &
echo "\$!" > /tmp/flatMapThatShit
#/flatMapThatShit reminder
EOF
@tomasherman
Copy link

this is cute :D

@LIttleAncientForestKami

Just today this inspired me to play around with system notifications in GNU/Linux. 😀 Thanks to that, I both learned how they work and had fun. 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment