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
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
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, …
[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. …
in /etc/default/grub add the following two lines GRUB_GFXMODE=1024×768 GRUB_GFXPAYLOAD_LINUX=1024×768 and then run update-grub
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
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\//
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 –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