These are patches I have written to various pieces of software and operating systems. Some of them are hacks and are not correct, and should not be used in production. Many of these are old and no longer needed or are not useful against recent versions of the software.
OpenBSD: add 'machine vesa X' and 'machine cbmem' commands to amd64 bootloader
OpenBSD: use Comic Neue as the default wscons font and support anti-aliased fonts in rasops
OpenBSD: add semi-automated fan control to openbsd's acpithinkpad(4) based on maximum temperature readings from all of its sensors. When the temperature is within certain ranges, set the fan control down to level 1 or 2. If it gets too hot (or no temperature readings come back) fallback on the EC's auto mode which is what it is in by default (but is quite loud).
force biosboot to reset the video bios before displaying anything.
make ABQuery of lbdb also search the nickname/alias field of the address book to find matches
add an alert type to adium-1.4 that will only trigger when a message is received while the account it was received on is not available
make rsync respond to SIGINFO and print the name of the file currently being transferred. useful for investigating long-running jobs where -v or --progress hasn't been specified.
allow hung socket operations to be interrupted with control+c. useful for making mutt not wait forever after coming out of suspend.
a cheap hack to mutt to make it write its message cache files into a cur/ subdirectory as well as making sure a new/ subdirectory exists so mutt will recognize it as a maildir mailbox.
make pidgin log the away messages of contacts when they go away, in both the log files and the state notification plugin
the mouse wheel on my apple bluetooth mouse is also a button, so frequently when trying to push the button, the wheel moves and triggers a scrolling event at the same time or right before or after it. in firefox, clicking the wheel to try to open a link in a new tab results in the page scrolling a bit just before clicking and the link moves out from under the cursor. in xterms, trying to paste by clicking the wheel results in it pasting and then scrolling up a bit.
duplicate the functionality of the ratpoison rpws virtual workspace script inside of ratpoison to avoid the expensive shell callouts and environment variable pollution
add a -v verbose flag to rm
refuse ftpd connections from internet explorer users to prevent it from creating tons of duplicate connections/transfers.
make tcpdrop(8) able to parse output from netstat(1), which separates things by dots.
treat libssh-* clients as probes and drop them right away after connection to fend off annoying brute force scans
make the fujitouch driver work in current xorg since it no longer calls the coordinate translation routine automatically.
makes opers in hybrid 6.4 act like chanops by default
this is a set of ugly patches to the openbsd port of courier-imap-1.7.2 that modifies the authpwd module to use radius authentication for the password, and the normal authpwd routines for everything else (login, home directory, etc.)
retry usb port setup a few times before giving up to allow slowly attaching devices like my 3g ipod to attach correctly
make the radeon driver work on a new 15" apple powerbook
make xfce4-panel respond to SIGINFO when in auto-hide mode, making it pop out for two seconds and hide again, as if it was moused over; useful for binding a key in a window manager that executes 'pkill -INFO xfce4-panel' to show the panel without using the mouse
reserve 3 pixels at the bottom of the screen for an auto-hiding panel or task bar (like xfce4-panel), handle unmanaged windows as always-on-top, and always bring them to the top whenever they might get overlapped
color change deltas based on their size. idea ripped from openbsd's cvsweb (which was an implementation of aaron campbell's idea by bob beck. he told me so!)
implements radius authentication for mantis 0.18.3. enable by setting $g_login_method to RADIUS and configure radius server/secret settings
remove some chatty logging from popa3d and make authentication lines include the ip from where they came, suitable for reading by a pop-before-smtp daemon (such as http://jcs.org/code/popa3d-pbs.pl)
for some reason, the adb controller on my powerbook starts acknowledging events (mouse movements and keystrokes) too slowly and fills up its internal queue of 32 events. when this condition happens, adb_pass_up() just ignores new events while not clearing its queue, making the keyboard and mouse stop responding until a reboot.
stupid hack to ddb in openbsd to jump to the console on a panic, before printing any debugging info
make tkremind not popup the daily reminders if there are none
The following patches are obsolete for one reason or another. They may have been committed upstream or are no longer useful. They are here just for reference.
openbsd-est_speeds.diff (2008-12-16) (no longer needed due to acpi fix)
"If an EST frequency table isn't found, fake one up by interpolating values from the high/low voltages and frequencies. Replaces the old method of using the lower and upper frequencies only."
openbsd-em_match_thinkpad_x200.diff (2008-12-16) (committed)
hack to make the em(4) driver attach to the Intel ICH9 IGP M AMT on the lenovo thinkpad x200
openbsd-oqo_pckbc.diff (2007-02-05) (committed a better version that works on all keyboards)
hack for the pckb controller driver to support an apparently broken keyboard on the oqo model 01. the oqo's keyboard does not do xt scancode translation, but falsely reports that it does.
openbsd-airtools_current.diff (2006-03-25) (merged by someone else)
merge bsd airtools into openbsd-current as of 2002-04-02; breaks hostap
openbsd-atu_hidden_ap.diff (2005-10-07) (committed)
make atu(4) associate to access points with essid broadcasting disabled
xorg-oqo_siliconmotion.diff (2005-06-25) (committed to openbsd and xorg)
enable the odd 800x480 resolution used by the oqo model 01's lcd screen
openbsd-ieee80211_ipv6.diff (2004-10-08) (fixed by someone else)
quick hack to make ipv6 work on ipw(4) devices
openbsd-interface_descriptions.diff (2004-05-29) (committed)
support for interface descriptions under openbsd, manipulated through new ioctl calls
openbsd-iop_smartraid_2000s.diff (2004-01-10) (no longer needed?)
(proper) dpt 2005s support for openbsd
openbsd-wskbd_auto_attach.diff (2001-11-25) (committed)
patch to openbsd 2.9-stable to automatically attach usb keyboards to the default display without having to run 'wsconscfg -k'