02 Jun

This command fetches a web page, converts it to text and shows it.


lynx -dump http://www.example.com/

29 May

Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere. Just run “webshare” and the current directory and everything beneath it will be served from a new web server listening on port 8000. When your pal is finished, hit control-c.


python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"


For a slightly more advanced version of this server, see this article(Warning: German Article – but code is self explaining)

25 Apr

Use this code to force a download of any type of content with PHP