Quickly Run An HTTP Server From Any Directory

Python makes it easy to run a simple http server from any directory on your system. From command line execute the following command from the directory you would like the server to run from: $ python -m SimpleHTTPServer 8080 A … Continued

Batch Rename files in 1 Shell Command

i=0; for x in *.jpg; do cp $x “image_$i.jpg”; i=$(($i+1)); done The above command will copy all jpeg files in a directory and give them a new name with an iterating numerical value. So if you had five images in … Continued

ISO 2 Character And 3 Character Country Codes

Here is an SQL file of the 2 Character and their corresponding 3 Character ISO Country Codes: ISO_CC.sql I’ve needed to use this several times, so I thought posting might help someone.