find duplicates from the cli using checksum

linux: find . -type f -print0 | xargs -0 -n1 md5sum | sort -k 1,32 | uniq -w 32 -d –all-repeated=separate | sed -e ‘s/^[0-9a-f]*\ *//;’ mac osx: find . -type f -print0 | xargs -0 cksum | sort | awk ‘{if($1 == prevsum) {printf(“—-\n %s\n %s\n”, prev, $0);} prev=$0; prevsum=$1;}’

gentoo goodness

new kernel goodness : (0.37)-(~)-(villa-straylight)-(28 files, 480Kb)-> uname -a Linux villa-straylight 3.0.0-gentoo-poa #1 SMP PREEMPT Tue Jul 26 09:30:13 EDT 2011 x86_64 AMD Phenom(tm) II X6 1055T Processor AuthenticAMD GNU/Linux size comparisons from the last couple of kernels : -rw-r–r– 1 root root 3536336 Jun 21 14:40 vmlinuz-2.6.39-gentoo-cdfscode -rw-r–r– 1 root root 3633520 Jun 9 … Read More

script to free up cached memory

on some of the app boxes at work we have an issue with tomcat not free’ing up cached memory quickly after either a tomcat restart or tomcat stop so we did some google-ing to find a way to quickly free up cached memory. what this script does is sync writes the cache then echo 3 … Read More

xorg & evdev awesomeness

with zero configuration for my trackball and keyboard (covered in this post), here is the Xorg.0.log snippet : [ 7734.487] (II) config/udev: Adding input device Topre Corporation HHKB Professional (/dev/input/event3) [ 7734.487] (**) Topre Corporation HHKB Professional: Applying InputClass “evdev keyboard catchall” [ 7734.487] (II) Using input driver ‘evdev’ for ‘Topre Corporation HHKB Professional’ [ … Read More

bootchart update

so after some minor work to my system, i cant seem to break the 16 second barrier but i have bootchart showing that my startups are getting a lot slimmer and nicer: Click image to enlarge i streamlined the kernel even more so now its a thin 3.5mb: -rw-r–r– 1 root root 3.5M May 23 … Read More

new bootchart goodness

so my work machine died last week due to some faulty caps: click image to enlarge the machine was replaced with an amd phenom 2 (6 cores @ 2.8ghz): click image to enlarge so i wanted to make sure that my startups were fast. with some minor work on the the system and kernel i … Read More

ipod classic rockbox theme

so for my day to day usage i carry an ipod classic which has rockbox installed thanks to the work from the guys at freemyipod. I wanted a simple theme that just gave me the basic information that i wanted without graphics or anything else in a simple green terminal style. so i created this: … Read More

some rooted nook screenshots

so after waiting some time a new kernel has been made available by dalingren that fixes the omapfb.vram=0:8M and changes it over to omapfb.vram=0:3M as discussed here. this is the main screen: click to enlarge this is running SiMi Clock Widget, BattStatt Free, Simple Text Widget & VPNC Widget. here is my “About Tablet” screen: … Read More

some work netstat laziness

lets say that i run netstat -tanpu which gives an output of : netstat -tanpu (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp … Read More