Last active
May 13, 2018 11:18
-
-
Save simeji/65b2891039c94e70b3138fb2ea078795 to your computer and use it in GitHub Desktop.
OneLiners
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash -c 'trap exit INT; while true; do ( echo "HTTP/1.0 200 Ok"; echo; echo "Hello World" ) | nc -l 8080; done' | |
# http://blog.livedoor.jp/sonots/archives/34703829.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( echo "HTTP/1.0 200 Ok"; echo; echo "Hello World" ) | nc -l 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment