Skip to content

Instantly share code, notes, and snippets.

@KINGSABRI
Last active November 26, 2017 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KINGSABRI/a5a21b56bb97428c3270aa1a2f6c6222 to your computer and use it in GitHub Desktop.
Save KINGSABRI/a5a21b56bb97428c3270aa1a2f6c6222 to your computer and use it in GitHub Desktop.
twitter snaps
# Onliner Web Proxy Server in Ruby
ruby -r webrick/httpproxy -e 's = WEBrick::HTTPProxyServer.new(:Port => 8080, :RequestCallback => Proc.new {|req,res| puts req.request_line, req.raw_header}); trap("INT"){s.shutdown}; s.start'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment