Skip to content

Instantly share code, notes, and snippets.

@stungeye
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save stungeye/894bc88c9f1bc904d03b to your computer and use it in GitHub Desktop.

Select an option

Save stungeye/894bc88c9f1bc904d03b to your computer and use it in GitHub Desktop.
Trap Ctrl-C and exit.
Signal.trap("INT") do
puts "L8r Sk8r!"
exit
end
loop do
puts "Forever is longer than you'd imagine."
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment