I quit smoking, I had to think about something else for a while so I wrote this to keep myself busy.
$ make cigStats
$ ./cigStats --setup
Setup an alias in your .bashrc that calls the program so that when you feel like going for a smoke, you can pop up a terminal, type something like "cig", and remind yourself of how far you've gone.