Posts Tagged With: server

Django server on custom Port

Tagged with: , , , , ,

Running Django server on a custom Port

python runserver 8001
No Comments »

Find Current DNS Server

Tagged with: , , , , , , ,

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
No Comments »

FTP Using Curl

Tagged with: , , , , , ,

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

Original Article

No Comments »

nslookup Network Command

Tagged with: , , , , , , , ,

Lookup hostname to resolve name to ip address and viceversa

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)


Connecting to a Remote MySQL Host

Tagged with: , , , , ,

You can connect to a remote mysql server if you have the necessary permissions…

mysql -h -u user 
No Comments »