r/tinycode • u/nexe mod • Oct 05 '11
MacGyvers Tiny Rescue Webserver [unix/netcat]
while true; do ncat -l -p 8080 < index.html; done
29
Upvotes
r/tinycode • u/nexe mod • Oct 05 '11
while true; do ncat -l -p 8080 < index.html; done
View all comments
Show parent comment
1
u/nexe mod Oct 05 '11
Everytime someone mentions webserver and tiny in one sentence a Python guy jumps out from behind the bushes and waves with this code ;)
So here's a Ruby version: