Skip to content

Instantly share code, notes, and snippets.

@jrgifford
Created August 2, 2011 17:46
Show Gist options
  • Save jrgifford/1120752 to your computer and use it in GitHub Desktop.
Save jrgifford/1120752 to your computer and use it in GitHub Desktop.
Mwahahaha. Why not?
tmp_dir = '/tmp'
if ENV['OS'] =~ /Windows_NT/
puts "This program is running under Windows NT/2000/XP!"
tmp_dir = ENV['TMP']
elsif ENV['PATH'] =~ /\/usr/
puts "This program has access to a UNIX-Style filesystem!"
else
puts "Gosh dangit, didn't the Governement tell you not to run strange programs on this X-43 Mark 2?!"
exit
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment