Thursday, August 15, 2013

Account authentication for pushing to code.google.com: what password?

It's not immediately obvious that you shouldn't just use your gmail account password when submitting code to code.google.com.  While you can change your google code settings to do that, the default is to use the auto-generated password available at https://code.google.com/hosting/settings.  If you're using google two-factor authentication the auto-generated password is probably your only option.

Saturday, August 3, 2013

HOWTO tar, zip, and encrypt a directory tree

Use this command to tar, zip and encrypt a directory:
tar cvz --to-stdout src_dir | gpg --cipher-algo AES256 --symmetric > out.tar.gz.gpg
OR you can use gpg-zip, which is a thin shell wrapper around tar and gpg for exactly this purpose, but it turns out getting the arguments passed correctly to tar and gpg for what I want to do was more complex than the above.