Image Manipulation

rename all images in the current folder based on creation date exiftool ‘-filename<CreateDate’ -d %y%m%d_%H%M%S%%-c.%%le -r -ext jpg . resize multiple jpg files emogrify -resize "50%" *.jpg

Updating openssl on RedHat 5.3

With the new heartbleed virus we need to update openssl.. and cleanup the un-needed 32bit [root@ora01 ~]# yum list installed|grep openssl This system is registered to Red Hat Subscription Management, …

Random Apache shtuff

[root@xxxxxxx ~]# service httpd restart Stopping httpd: [FAILED] Starting httpd: Syntax error on line 292 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory [FAILED] This is due to selinux being enforced. …

Perl commands

simple one liner password generator. thanks to http://sysadminsjourney.com perl -le ‘print map { (a..z,A..Z,0..9)[rand 62] } 0..pop’ 8

VI commands

search and replace a path with a variable we want to change the following text /usr/local/dsview/webapp/output/torpb01a to $dsview/torpb01a use.. :%s/\/usr\/local\/dsview\/webapp\/output\//$dsview\//

Linux commands

These are commands I find useful.. get a list of all installed updates rpm -qa –qf ‘%{INSTALLTIME} %-40{NAME} %{INSTALLTIME:date}\n’ | sort -n get all CVE’s from all packages for pkg …

Configure command for Moodle 2.0

./configure –with-apxs2=/usr/sbin/apxs –with-config-file-path=/etc/php –with-gd –with-zlib –enable-sockets –with-curl –with-xmlrpc –with-openssl –enable-mbstring