Posts

Showing posts from January, 2010

Official Google Reader Blog: Follow changes to any website

Official Google Reader Blog: Follow changes to any website

Add sbin to user PATH in Debian

Debian does not add sbin to your path by default. I have no idea why. I know sbin is supposed to be administrative tools that you would only want to run as root, however, there are some useful ones that don't require root, and even if they need root, why hide them from useful tools like auto complete? Apparentely it's not a new disucssion - this Debian mailing list thread dates back to a decade ago! Regardless, I want it in my path - the easiest way that I've found is to modify the top of /etc/profile to remove the if statement that sets path if you're user id 0 (root) or not: Before: if [ "`id -u`" -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" else PATH="/usr/local/bin:/usr/bin:/bin:/usr/games" fi After: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" Save the file, log out and log back in and you're all set. Note that this affects all users on you...

Modifying Headers for testing Virtual Hosting

Image
While working on a website hosted on lighty's virtual hosting environment I realized I wanted a natural way to test the site before pointing the DNS over. If you're sharing one IP for multiple sites then this tip is useful. It uses a Firefox add-on. Get the "Modify Headers" Firefox add-on here. Once installed go to Tools -> Modify Headers Action -> Modify Name -> Host Value -> Domain you want to "spoof" See a list of other headers you can play with here.

Type accents and other Latin American punctuation on your Mac

Image
I'm helping type some of my grandfather's writing from the 1960s (written on a typewriter, not even worth trying OCR) and I needed some punctuation love on my MacBook, this is what I found. Accents: To write accents on letters, just tap Option (alt) + e and then the letter: á option + e then a é option + e then e í option + e then i ó option + e then o ú option + e then u Enyay (ñ) For ñ, tap Option (alt) + n and then n. Punctuation: ¡ option + 1 ¿ option + shift + ? Read more on Apple's help page.