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:


if [ "`id -u`" -eq 0 ]; then



Save the file, log out and log back in and you're all set. Note that this affects all users on your system.


Modifying Headers for testing Virtual Hosting

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

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.

To write accents on letters, just tap Option (alt) + e and then the letter:

áoption + ethen a
éoption + ethen e
íoption + ethen i
óoption + ethen o
úoption + ethen u

Enyay (ñ)
For ñ, tap Option (alt) + n and then n.


¡option + 1
¿option + shift + ?

Read more on Apple's help page.