Adding apps to the Finder Toolbar

Where before you could simply drag any icon up to the Finder toolbar and hold it there for a second to add it, you now need to first hold down Option+Command and then start dragging the desired icon to the toolbar.

You can still remove the icons the same way as before: holding down Command, dragging the icon away from the toolbar and then releasing.

Mac OSX Finder
Mac OSX Finder

History support for PERL CPAN

If you are like me, every time you go to install a new perl module you realize the system doesn’t have command line history support and have to go hunting for the correct module to install.

A Little Bit Of History

This option, provided you have Term::ReadLine::Perl or Term::ReadLine::Gnu installed, will give your CPAN command line interface history support. It’s questions deal with the location of the histfile and how many lines it should save. I elected to add the histfile to the /usr/local/share/cpan directory I chose earlier, and kept the default 100 lines, figuring that this is more than enough command history for CPAN to remember.

OpenSSH Public Key Authentication

Key Generation

ssh-keygen -q -f ~/.ssh/id_rsa -t rsa
Enter passphrase (empty for no passphrase): …
Enter same passphrase again: …

Key Distribution

# first, upload public key from client to server

scp ~/.ssh/id_rsa.pub user@server.example.org:

# next, setup the public key on server

cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
rm ~/id_rsa.pub