Django server on custom Port
Running Django server on a custom Port
python manage.py runserver 8001
Running Django server on a custom Port
python manage.py runserver 8001
The DNS servers are in the /etc/resolv.conf file – cat it to find what they are. You can edit to too – just edit the file…
cat /etc/resolv.conf
Copy a file to a remote system using FTP with the Curl command…
curl -T filename.txt -u username:password ftp://example.cot/filename.txt
Lookup hostname to resolve name to ip address and viceversa
nslookup www.example.com
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)
You can connect to a remote mysql server if you have the necessary permissions…
mysql -h mysql.remote.com -u user