While playing with ulimit, launchd and friends I've recently shot myself into the foot. But since it's Unix I did this very efficiently. You might know this old quote from Terry Lambert:

It is not UNIX’s job to stop you from shooting your foot. If you so choose to do so, then it is UNIX’s job to deliver Mr. Bullet to Mr. Foot in the most efficient way it knows.