Skip to content

Instantly share code, notes, and snippets.

@adrianmoses
Created August 16, 2013 07:37
Show Gist options
  • Save adrianmoses/6248007 to your computer and use it in GitHub Desktop.
Save adrianmoses/6248007 to your computer and use it in GitHub Desktop.
#!/bin/sh
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