One-Line Countdown Timer

I don’t have any countdown timer app installed, but I have Ruby…

And it takes less than a minute to write a simple countdown timer app in the irb console.

fin = + 5 * 60; while < fin; puts fin —; sleep 1; end

You can even set it to play some annoying sound afterwards.

; system "play -n synth 0.1 square 1228"