Skip to content

Monthly Archives: October 2007

Idle SSH Connection Drops? Fix with Keep-alive

24-Oct-07

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

17-Oct-07

In Terminal, write defaults write com.apple.mail UserHeaders '{"Bcc" = "another@address.here"; }' You can write other headers as well: defaults write com.apple.mail UserHeaders '{"Reply-To" = "theemail@goes.here"; "Bcc" = "another@address.here"; }' To get defaults back: defaults delete com.apple.mail UserHeaders This, as many other useful hints, came from macosxhints.

How To Speak HTTP To .htaccess Login

16-Oct-07

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, […]