commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This is what I came up to generate XKCD #936 style four-word password.
Since first letter of every word is capitalized it looks a bit more readable to my eyes.
Also strips single quotes.
And yes - regex is a bit of a kludge, but that's the bes i could think of.