Skip to content

Instantly share code, notes, and snippets.

@soopercorp
Created September 26, 2012 23:33
Show Gist options
  • Save soopercorp/3791293 to your computer and use it in GitHub Desktop.
Save soopercorp/3791293 to your computer and use it in GitHub Desktop.
1 file server
{ echo -ne "HTTP/1.0 200 OK\r\n\r\n"; cat some.file; } | nc -l 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment