Simple file transfer between devices/computers with Gmail

You ever wanted to simply move one or more files like images or couple mp3s between workstation, laptop or mobile device, but don't really have dropbox or similar service configured?

For this purpose I've found myself using Gmail as intermediate stop. Just start a new message, upload some stuff as attachment and save the message as draft.

Open up Gmail on the other computer or device, download the attachments and delete the message. And like that, you've just used Gmail as ftp-server!

The only limitation to this method are google's attachment restrictions. In short, up to 25 megabytes and avoid dangerous file types like executables.

Useful subversion alias

After using subversion from terminal for a while now, i've found following command so useful, I've turned it into an alias.

Add new files ready to commit

svn st | grep "^?" | awk '{print $2}' | xargs svn add

This command is a mouthful but saves you from adding each file individually.

When you want to use this alias you'll have to take care of the nested quotes and escape them.

alias sa='svn st | grep "^?" | awk '\''{print $2}'\'' | xargs svn add'

One could make several variations on this alias for svn remove, revert or others. You'll just have to change the grep and xargs arguments.