= 2010-08-13 = * [http://www.cyberciti.biz/tips/read-unixlinux-system-ip-address-in-a-shell-script.html Read UNIX/Linux system IP address in a shell script] {{{ ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' }}} * [http://www.whatismyip.com/faq/linux-ip-commands.asp Linux IP Commands] {{{ $ tracepath www.whatismyip.com # Advanced DNS Test: $ dig www.whatismyip.com # Reverse Lookup: $ host 66.11.119.69 # Advanced Reverse Lookup: $ dig -x 66.11.119.69 }}} == Open Source : Python == * stdeb - compile Python Modules into debian packages - http://github.com/astraw/stdeb - [http://packages.debian.org/python-stdeb Debian python-stdeb] {{{ $ sudo apt-get install python-stdeb $ py2dsc [options] mypackage-0.1.tar.gz # uses pre-built Python source package $ cd deb_dist/mypackage-0.1.0/ $ dpkg-buildpackage -rfakeroot -uc -us $ cd .. $ sudo dpkg -i python-mypackage-*.deb }}}