Web server in one line of bash
61–69 of 69 posts
On Debian 7.0 (Wheezy) argument "-l 8080" without "-p" causes netcat (v1.10-40) to listen on a random port.
I must run "nc -l -p 8080" to listen at 8080.
Re: Web server in one line of bash
#62Anyone got a one-line or so version with BASIC auth?
Re: Web server in one line of bash
#63That's not a one-line script. That's a multi-line script with the linebreaks removed.
It is 85 characters long. Strip some spaces from it, and it qualifies as a one-liner.
Re: Web server in one line of bash
#64I can recommend 'woof' [1] for simple ad-hoc sharing of files through HTTP. It has some extra features, like quickly sharing a directory as tar file.
Re: Web server in one line of bash
#65[deleted]
Re: Web server in one line of bash
#66Re: Web server in one line of bash
#67Re: Web server in one line of bash
#68Earlier quoted context omitted.
Or for https (e.g. when developing for Chrome's speech recognition API): twistd --nodaemon web --path=. -c snakeoil.crt -k snakeoil.key --https=8443 And to generate a 100-year localhost key/cert for use with this: openssl genrsa -passout pass:dummy -out snakeoil.secure.key 1024 openssl rsa -passin pass:dummy -in snakeoil.secure.key -out snakeoil.key openssl req -new -subj "/commonName=localhost" -key snakeoil.key -ou…
erm...chrome speech API?!? What exactly are you doing? and how can I do it too?
I'm doing: https://github.com/jawj/pigeonsim (now with speech recognition + geocoding, supporting a beam-me-up gesture).
Web speech API: http://updates.html5rocks.com/2013/01/Voice-Driven-Web-Apps-...