Wednesday, August 27, 2008

Command Line: Encrypted DMG's

I came accross this post on macosxhints.com which made me wonder how to create encrypted DMGs from the command line. Turns out it's a no-brainer.


hdiutil create -fs HFS+ -encryption -stdinpass \
-srcfolder SomeFolder -volname VolumeName Encrypted.dmg


The -stdinpass option prompts you for a password for the DMG, reading from standard input (using readpassphrase in a terminal).

Nice.

Monday, August 4, 2008

UK Gun Ban: Lessons Learned

I stumbled across this video early this morning and found it particularly sobering. This is what happens when sheep forfeit their rights.

I would strongly recommend watching the entire 9 minutes, but if you're too busy, at least fast-forward to 8:05 and listen to the last minute.

Then go read a book.