For the things in life which make me glad I'm not dead yet.
Snippets
Bash – Snip Leading Zeros
Sep 15th
valueWithoutZeroes=”$(echo $valueWithZeroes | sed ‘s/0*//’)” More ...
Linux – Partitions & Filesystems
Sep 13th
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 /mnt/data mount /dev/hda3 /mnt/data Edit: /etc/fstab: /dev/hda3 /mnt/data… More ...
JUnit – Running Standalone
Oct 15th
nohup java -cp ./junit.jar:./mytest.jar org.junit.runner.JUnitCore testClassName 2>&1 >log.txt & More ...