Cool stuff you can do with ssh and fuse

fuse over ssh rocks, as we all know. It allows you to mount remote filesystems anywhere you reach with SCP or SSH. But wait – there’s more!

Run commands on the filesystems of hosts you don’t control

I needed to use rsync on a host I don’t control (godaddy, in this case). So I used fuse to remotely mount the godaddy filesystem and then used rsync to do a local copy.

sshfs -C ~/godaddy/
rsync -auvz --delete-excluded ~/godaddy/ ~/godaddy-copy/

I also created a git repo on that remote godaddy fuse mount – I feel naked without source control.

cd ~/godaddy/ && git init

just like working directly on the machine – except slower because of the network overhead.

Chromium Incognito Browsing – it’s not just for porn!

I’ve been using google chromium more and more for work because it’s so FREAKING fast compared to Firefox. . . if it had Adblock Plus and firebug I’d probably abandon firefox altogether. . . So for work-related sites, chromium is a clear winner because it lets me work faster. For personal browsing, I find the web almost intolerable without adblock plus – so firefox wins there.

Anyway: a really nice benefit of Chromium’s incognito browsing is that it has a separate set of cookies than your main Chromium window (of course, that’s the point) – allowing you to log in to the same site twice with different credentials. This is handy when you’re developing a site that does different things depending on who you are. It appears that all incognito windows share the same cookies, though, so you can’t log into the same site as three different users in three different incognito windows (at least not that I’ve found, yet).

One can probably do similar things in firefox via profiles or an extension or two. I like that it’s built-in and easily accessible in Chromium, though.