Mac

Anything about Mac OS X, hardware, or software.
Aug 12 19:43

Redacting Accidental Passwords in Your .bash_history File

When I accidentally type a password in bash, I used to immediately exit so that the current commands in my "history" would get appended to the $HISTFILE. Then I'd vi (edit) that file (usually .bash_history) and remove the password. But this is pretty lame and I used to forget to do it sometimes.
Apr 06 17:23

Some Succumb to the Lumbar Bummer

I hurt my lower back last year. Thankfully it was a soft tissue thing and not permanent. I had to go to six weeks of physical therapy and while I was there the therapist told me, unsurprisingly, that sitting in front of a computer all day would mean my back problem would keep coming back.

But she had a great idea. She suggested that I write a program that makes me stand up from my chair every 20 minutes for 20 seconds. I've been doing it for about a year now and it has been a great thing for my lower back. I run a Mac (OS X 10.5, Leopard) at work, so here is how I did this.

Mar 08 23:27

Limericks I Wrote

Disclaimer: As anyone with a pulse knows, the dirtier limericks are always the funniest. So if you can’t handle X-rated content (or humor), what in the fuck are you doing on the goddamn fucking Internet, dumbshit?

 

It’s said that a handsome young sailor

Learns much from his very first jailer

For down in the brig