Skip to content

Monthly Archives: October 2007

Idle SSH Connection Drops? Fix with Keep-alive


One possible solution for dropping ssh connection is to create (or modify) a file name config in your .ssh directory (~/.ssh/config) on your local machine, adding a line ServerAliveInterval 60 This and plenty of other useful ssh keep-alive tips can be found on The Mad Philosopher's ssh keep-alive post. For some reason my ssh connections […]

OS X Mail: Always Bcc Specific Address


In Terminal, write defaults write UserHeaders '{"Bcc" = ""; }' You can write other headers as well: defaults write UserHeaders '{"Reply-To" = ""; "Bcc" = ""; }' To get defaults back: defaults delete UserHeaders This, as many other useful hints, came from macosxhints.

How To Speak HTTP To .htaccess Login


The raw HTTP to access a directory that is protected with .htaccess: Authorization: BASIC <base64encoded_user_pass> Where base64encoded_user_pass is a base64 encoded string from a string "username:password". With imaginative username my_username and password my_password, i.e. "my_username:my_password", the result is Authorization: BASIC bXlfdXNlcm5hbWU6bXlfcGFzc3dvcmQ= (You may want to use some online tools, like opinionatedgeek's Base 64 Encoder.) And, […]