Skip to content

Instantly share code, notes, and snippets.

@ChaosSteffen
Created November 20, 2009 20:48
Show Gist options
  • Save ChaosSteffen/239769 to your computer and use it in GitHub Desktop.
Save ChaosSteffen/239769 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'twibot'
i = 0
`ps -A | grep apache`.each_line do |l|
unless l.include?('grep')
i += 1
end
end
if i == 0
post_tweet "@yourtwittername I'm dead!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment