Archive

Archive for the ‘Uncategorized’ Category

How to add picture watermark in batch

June 17th, 2010

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

source

pjdc Uncategorized

linux – find files inside zips

April 28th, 2010

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

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

pjdc Uncategorized

Eclipse tomcat work and deploy folder location

October 30th, 2009

workspace\.metadata\.plugins\org.eclipse.wst.server.core\

pjdc Uncategorized

Extend IBM Websphere Trial Period

October 13th, 2009

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 :)

pjdc Uncategorized

Untar a tar.gz file in php script

June 8th, 2009

how to untar a tar.gz file in php script

  1. <?php
  2.  
  3. system("tar -zxvf filename.tar.gz");
  4.  
  5. ?>

pjdc Uncategorized

Run scripts at startup

February 20th, 2009

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

pjdc Uncategorized

SeLinux does not Allow Dropbox to work

February 16th, 2009
SELinux is preventing dropboxd from loading
/home/chad/.dropbox-dist/libSDL-1.2.so.0 which requires text relocation.

Fix Command:

chcon -t textrel_shlib_t '/home/chad/.dropbox-dist/libSDL-1.2.so.0'

full fedora bug description here

pjdc Uncategorized

Scrum Cheat Sheet

February 16th, 2009

List of open ports on a linux machine

February 16th, 2009
netstat -an|grep LIST

pjdc Uncategorized

find files on linux / unix

February 16th, 2009

Calculate the index database of yur file sytem with:

updatedb

this may take some time for the first time. So just do the following command to search files. Supports wildcards:

locate filename

pjdc Uncategorized