Skip to content

Instantly share code, notes, and snippets.

@missinglink
Created December 4, 2013 17:32
Show Gist options
  • Select an option

  • Save missinglink/7791928 to your computer and use it in GitHub Desktop.

Select an option

Save missinglink/7791928 to your computer and use it in GitHub Desktop.
One-line bash webserver
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html; } | nc -l 8080; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment