How To … Rotating Header Image

SCJP resources

A collection of resources, information, examples, compilation of topics and some cheat sheets for preparation for java certification SCJP.

For example here is the link for the Java collection cheat sheet.

Extract pages from pdf file

The pdftk (PDF Toolkit) can be used for that:

pdftk A=input.pdf cat A106-111  output o.pdf

It’s possible also to split file, merge files, rotate pages and so on…

See more examples here.

How to add picture watermark in batch

mogrify -font /usr/share/fonts/truetype/msttcorefonts/Arial_Black.ttf pointsize 22 -verbose -draw “gravity south fill black text 0,33 ‘Focused On The Unfocused’ fill white text 1,32 ‘Focused On The Unfocused’ ” *.jpg


linux – find files inside zips

How to locate a file inside a zip file or inside a jar file:

find . -name “*jar” -exec unzip -l {} \; | grep persistence.xml

Eclipse tomcat work and deploy folder location


Extend IBM Websphere Trial Period

How to Extend IBM Websphere Trial Period. This is applicable at least form IBM Webshpere 6.1 and 7.

Simple delete the $WAS_HOME/properties/was.license file. When restarting the WAS server, the file will be recreated and the eval period restarts.

This avoids full reinstall of the product :)

Untar a tar.gz file in php script

how to untar a tar.gz file in php script


system("tar -zxvf filename.tar.gz");


Run scripts at startup

To run scripts or programs at startup on a linux/unix machine.

create a sh script in /etc/init.d
create a link on rc3.d or rc5.d pointing to the previous created script

SeLinux does not Allow Dropbox to work

SELinux is preventing dropboxd from loading
/home/chad/.dropbox-dist/ which requires text relocation.

Fix Command:

chcon -t textrel_shlib_t '/home/chad/.dropbox-dist/'

full fedora bug description here

Scrum Cheat Sheet