Skip to content

Instantly share code, notes, and snippets.

@ahgittin
Created August 6, 2014 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahgittin/50d116b69addabbf792f to your computer and use it in GitHub Desktop.
Save ahgittin/50d116b69addabbf792f to your computer and use it in GitHub Desktop.
cat > index.html << --EOF--
<html><body>
<h1>Hello World</h1>
<p>
This is a sample Brooklyn-deployed web server, built on netcat.
Of course you can use any script here, or pre-built blueprints for common webapp, nosql, message software,
services, clusters, or a pre-built imageId, or Chef -- up to you.
</p>
<p>
Management policies can then be mixed in.
</p>
</body></html>
--EOF--
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