URL handlers on OS X

Friday, 20. 04. 2012  –  Category: sw

Update 2012-04-25 Corrected the plist key to CFBundleIdentifier. I’ve often wondered about how to do this without monkeying in Objective C. It’s doable in (ugh) Applescript with some property list editing. Whimsical XKCD handler such that xkcd://627 behaves like http://xckd.com/627: on open location uri   set delimiter to AppleScript's text item delimiters   set AppleScript's text item […]

httperf on Linux

Monday, 16. 04. 2012  –  Category: stash, sw

“httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server performance.” Set open files to 65535 via ulimit -n Recompile httperf with /usr/include/bits/typesizes.h’s __FD_SETSIZE dialled up to 655351 Twiddle the TCP stack for faster socket recycling23 : echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle echo […]

Moving disks from Xen to KVM

Sunday, 8. 04. 2012  –  Category: stash

Overview Moving virtual machines from Xen to KVM The storage for both is under LVM Under Xen the storage for each VM isn’t partitioned as a disk, it’s just a filesystem. GRUB under KVM will need to see a boot sector and a partition table. Under Xen the storage for each VM doesn’t contain a […]