Category Archives: UNIX

Photo Gallery

Wanted to add an custom photo gallery for a long time. Today wrote an simple Lisp script to display the photos in the website. Used the tool ImageMagic to create the thumbnails. It was pretty fast and easy to do.
The command is “mogrify -path thumbnails -thumbnail 240×240 *”, where thumbnails is the folder to which you want the thumbnails to be created.

UNIX passwd

Time to time, I fail to login into the UNIX boxes and the id expires. Use the command “passwd -s <<login name>>” to get the date on which the password was changed, the minimum and maximum age of the password.  If you have root access then it’s altogether an different matter.