Shawn Holwegner's Blog

lather. rinse. repeat.

The names have been changed in the below to protect them, even if it is hilareous.

Dear Peers/Colleagues, We will start to announce a new prefix: AS13197 192.168.0.0/16 Please update your filters. Thanks, Rudolph van Raindeer, Junior. System/Network Adminstrator and Senior Cabling consultant.

Or...

I’ve updated my gallery to the latest release. The doodle board has been restored.

The below PHP code is a rather nasty, but effective way to “ping” external syndication networks, such as weblogs.com, blo.gs, and the like.

The main advantage over this simple little subroutine is the lack of required overhead for constructing, and parsing XML within your system. Perhaps you j...

With Panther, Apple’s offered the mostly-hidden Image Events interface. This makes it trivial to regenerate icons for files from the command line!

sips —addIcon [filename.ext]

A rather rudimentary wat to regenerate all icons for your “Pictures” directory:

%cd ~/Pictures %find . -type f -exec...

The following was written by, and for, FreeBSD users who also happen to work with MacOS X. They’ll be quite familiar with the below to tune tcp space for speed and efficiency:

/usr/sbin/sysctl -w net.inet.tcp.sendspace=65536 > /dev/null /usr/sbin/sysctl -w net.inet.tcp.recvspace=65536 > /dev/null...

I’ve been using dbshim, a trivial little wrapper for MySQL and PostgreSQL I threw together in an evening for Rollator up to this point. Perhaps it’s time I investigate ADOdb for MSQL, Oracle, et al..

Update: My links from 2003 are long dead. Updated to a general PHP reference thanks to a kind...