Skip to content

Instantly share code, notes, and snippets.

@rubys
Created December 8, 2011 20:13
Show Gist options
  • Save rubys/1448360 to your computer and use it in GitHub Desktop.
Save rubys/1448360 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
$SAFE = 1
print "Content-type: text/plain\r\n\r\n"
Dir.chdir ENV['DOCUMENT_ROOT'] do
print ENV['DOCUMENT_ROOT']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment