Archive for the ‘Script language’ category

Query IP whois info in python

January 18th, 2010

This is a simple python script  based on some former rwhois code. It shows us an easy way on how to get detailed information about a specific IP address:

joseph@e54:~$ python ip-whois.py 94.75.214.11
====== whois.arin.net                        

OrgName:    RIPE Network Coordination Centre
OrgID:      RIPE
Address:    P.O. Box 10096 » Read more: Query IP whois info in python

Explained Awk1line and Sed1line

December 13th, 2009

If you have ever been interested in awk and sed Unix commands, then you probably know about the awk1line.txt and sed1line.txt files that are floating around the Internet. Each file contains around 80 idiomatic sed and awk one-liners for performing various text modification tasks. » Read more: Explained Awk1line and Sed1line

Convert audio file from WAV to MP3

November 19th, 2009

This an example on converting audio file from wav format to mp3 with the help of Sound eXchange( a.k.a SOX ), and Lame Aint an MP3 Encoder (a.k.a. Lame).

Before using this script, please make sure you have both sox and lame installed.
» Read more: Convert audio file from WAV to MP3

Deal with readonly variables in bash

May 26th, 2002

As we know there’s a kind of read-only variables in bash in common linux system, typically $BASH_COMPLETION and $BASH_COMPLETION_DIR are both readonly variables. This post will focus on the following two topics, how can we set readonly variables in Bash, and how can we unset them. » Read more: Deal with readonly variables in bash

Common ways to install CPAN module

January 20th, 2001

CPAN (Comprehensive Perl Archive Network) is a large repository of Perl modules, and it’s officially supported by Perl Community. Standard Perl already has many CPAN libraries installed from birth, but usually you have to install a few extra Perl modules, so that you can benefit from their new features, or fix some dependency issues » Read more: Common ways to install CPAN module