Automating screenshot sharing on Windows

One thing that I really liked about mac was how easy it was to generate a screenshot from my screen and share with people. Now that I am pretty much a full-time windows user (besides all the time I spend on a Linux terminal), I needed to find an easy and fast way to share screenshots. And that is where Greenshot comes in handy!

The plan:
A keyboard shortcut to select a region of my screen, automatically generate the image, upload it to my server on a specific FTP folder (can also be done with rsync) and copy the shareable URL to the clipboard.

Step 1: Download Greenshot at and install it.

Step 2: Download and install NCFTP from (NcFTP Client 3.2.6 for Microsoft Windows). After installing it, the ncftp executable files are going to reside on C:\Windows

Step 3: Create a .bat file with the automating code below (changing yourdomain, ftp user and password).

Step 4: Configure greenshot:

Change the path where you save your screenshots on your computer, but the important thing is to change the “Filename pattern” to:


and uncheck “Copy file path to clipboard every time an image is saved“, this part is important!

Go to Plugins tab, click in “External command Plugin” and “Configure“.

Create a name for your automation. On command, link to the .bat file you created and make sure the “Argument” is


Done, now whenever you take a screenshot, it will automatically upload to your server and copy the URL to the clipboard automatically, making it super fast and easy to share anything on your screen 🙂

Virtualmin: Backups to Google Cloud Storage

Virtualmin plus Google Cloud Platform

For a while I have been running a few websites using Virtualmin under CentOS. It’s a great free Web Hosting Control Panel application that helps you to manage your server without having to do it manually. It contains Apache, MySQL, proFTPD and much much more.

As I am a backup freak I have been backing up my server to Amazon S3 for a while. Amazon backups costs around $0.03 per GB, not that bad, but a few months ago I switched to Google Cloud Storage which has a technology called Nearline costing only $0.01 per GB (yes, 1/3 of the price!). The only disadvantage comparing to S3 is that the files retrieval takes a few seconds instead of milliseconds, as I am not serving this file on websites, and I really don’t mind waiting a couple secs to have the download link ready.

Continue reading

Script to Organize Dropbox’s Camera Upload folder

Dropbox has a great feature called Camera Upload, where you can automatically upload pictures from your phone, making life for lazy people like me easier. The problem is that I take so many pictures with my phone that the folder ends up with a huge amount of files, making the task of browsing and viewing them slow and annoying.

To fix this problem, I created a python script that will automatically organize pictures inside folders Year > Month.


How to use:

In order to use the script, put the file inside the ‘Camera Upload’ folder and run it from the terminal:





Mounting a Filesystem via SSH on OSX Mavericks

fuse SSH’ing to a server and doing all the configuration through terminal is easy and very fast, but when you want to edit files and set a remote development environment on your local machine, mounting a remote filesystem over ssh and editing them as the files were in your computer is the way to go.

Right now I’m using the just released OSX Mavericks (OSX 10.9), so for mounting a remote system you will need to do some tricks and tweaks to have it working. I will try to explain step-by-step on how to do it.

Continue reading

Script for Organizing Bitcasa’s Upload Directory

Bitcasa is a great option for everyone who wants to backup a big chunk of files. You have unlimited space to host your files, and it also works as an external drive. I can say it works alright, but it is still a bit slow and there is still a lot of work to be done in order to be as good as its competitors, such as Dropbox.

With the last iOS update, you are now able to backup all of your phone’s pictures directly to the Bitcasa Upload folder. It’s great and works very well BUT the problem is that after a month of uploads, the folder is packed with more than a thousand pictures, which makes it extremely slow to function (because it’s all in the cloud). So I made a small python script to automatically organize the folder by the time it was uploaded, creating a folder like /Volumes/Bitcasa/Uploads/2013/Aug and it moves them to those folders.

Below you can check out the script, hope it helps!