Month: October 2008

Batch Resize Image

Resize all JPG Files to 800×600 convert -sample 800×600 *.jpg output_file_name

All RPM Packages

Show all rpm packages installed on the system rpm -qa

Import RPM Key

Import public-key digital signature rpm –import /media/cdrom/RPM-GPG-KEY

Optimized Grep Searching

Grep that searches recursively, ignores binary files, and doesn’t look inside Subversion hidden folders. grep -Ir –exclude=”*\.svn*” “pattern” *

Linux Command to Generate a Password

Linux command to create a random password head -n1 /dev/urandom|md5sum -b|head -c 5

Random Password in PHP

A simple way to create a random password in PHP $password = substr(md5(time()), 0, rand(4,8));

RPM Installation without Dependencies

Install a rpm package ignoring dependencies requests rpm -ivh –nodeeps package.rpm

Convent Video to 3gp(mobile) format

This command uses ffmpeg to convert a regular video into 3gp format thats used in mobile phones ffmpeg -i input_video.mp4…

whois – Find Who Owns A Domain

Find out the ownership details of a domain using this simple command… whois openjs.com

Identify Channel SCSI

Scan bus to identify the drives cdrecord –scanbus