Snippets

Working with Gedcom

Perl http://www.pjcj.net/yapc/yapc-eu-2003-gedcom/paper.html http://search.cpan.org/dist/Gedcom/   PHP http://code.google.com/p/php-gedcom/  

Bash – Snip Leading Zeros

valueWithoutZeroes="$(echo $valueWithZeroes | sed 's/0*//')"

Linux – Partitions & Filesystems

Creating a new partition /sbin/fdisk /dev/hda In fdisk, to create a new partition, type n and follow the prompts, use the w command to write the changes to the partition table when complete. Restart the virtual machine & create a file system on the new partition: /sbin/mkfs -t ext3 /dev/hda3 mkdir [...]

JUnit – Running Standalone

nohup java -cp ./junit.jar:./mytest.jar org.junit.runner.JUnitCore testClassName 2>&1 >log.txt &
Go to Top