Had a secure server room with a maglock with very few cardholders and forgot our cards a few times. We wired-up a CD-ROM drive to a server positioned so that it pressed the door unlock button on the wall when it was ejected, so someone could ssh in to the server and "eject /dev/sr0" to get in.