Posts Tagged With: web

Django server on custom Port

Tagged with: , , , , ,

Running Django server on a custom Port

python runserver 8001
No Comments »

Get the Plain Text Version of a Web Page

Tagged with: , , , , , , , ,

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

lynx -dump
No Comments »

Share Current Folder over the Web

Tagged with: , , , , , , ,

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)


Force Download Dialog with PHP using octect-stream

Tagged with: , , , , , ,

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

header('Content-Disposition: attachment; filename=filename_' . date('Y-m-d') . '.sql');
print "Hello World";
No Comments »

Some good body fonts

Tagged with: , , , , , ,

font:10pt ‘Trebuchet MS’,Arial,sans-serif;
font:76%/140% Verdana,Geneva,Arial,Helvetica,sans-serif;
font:76%/1.5 “Lucida Grande”,Geneva,Verdana,Arial,Helvetica,sans-serif;
font:12px/1.5 “Lucida Grande”,”Lucida Sans Unicode”, sans-serif;

No Comments »