Productivity Sauce

Dmitri Popov
Instant Browser-Based File Sharing with ShareDrop

Apr 14, 2014 GMT

ShareDrop is a simple open source service that can come in handy when you need to quickly share files and documents with machines on the same network. What makes ShareDrop particularly appealing is the fact that it's ridiculously easy to use. To send a file to another machine, open the ShareDrop page on both systems, then drag and drop the file directly on the recipient's avatar. File transfer begins as soon as the recipient accepts the file. The service requires no registration, and you don't have to provide any information. But if you want other users to recognize you by your Gravatar and email address instead of a generic avatar and the current IP address, you can sign in to ShareDrop...
Clean up Whiteboard Snaps with the Whiteboard Picture Cleaner Script

Apr 08, 2014 GMT

Forgive me for stating the obvious, but ImageMagick is a pretty amazing toolset. And my latest GitHub find is yet another proof of that. Whiteboard Picture Cleaner is a nifty ImageMagick one-liner that can transform snapshots of whiteboard doodles and scribbles into cleaned up and legible images. Despite its simplicity, the one-liner is capable of producing rather impressive results. To make this script work on your Linux machine, you only need to install the ImageMagick package. Create then a new text file, and paste the following code into it: #!/bin/bash convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1...
Dig up Photos Buried in Emails with Lost Photos Found

Mar 31, 2014 GMT

If you've been using an email account for a few years, chances are it has plenty of photos buried among thousands of sent and received emails -- photos that you might not even remember are there. It's not unthinkable that at some point, you'd want to pull all the photos languishing up in the cloud to your machine. And when this day comes, you'll need the Lost Photos Found script which automatically sieves through messages on an IMAP email account and downloads all found photos and images.To make use of this nifty script, clone the project's GitHub repository using the git clone command. Next, install the required packages by running the...
Play 2048 in the Terminal with Bash 2048

Mar 28, 2014 GMT

The 2048 game is as addictive as it is simple. Use the arrow keys to move tiles. When two tiles with the same number collide, they merge into a tile with the total value of the two collided tiles. For example, when two 32 tiles collide, they merge into a 64 tile. The purpose of the game is to reach the 2048 tile. It might sound simple, but it's far from it. Depending on your skills, a typical game takes 5-10 minutes to play, which makes it a perfect diversion for short breaks during the day. To play the original game, you need a browser and an Internet connection. But if you want to play 2048 offline from the convenience of the command line, you'll...
Butterfly: Terminal in A Browser

Mar 27, 2014 GMT

A terminal and a browser are the most important tools of any Linux user. And Butterfly allows you to combine both. This clever solution lets you use a browser as a terminal, so you don't have to constantly switch between the browser and the terminal. Butterfly is written in Python, and the utility can be deployed in a matter of minutes. Run the pip install butterfly command as root (to use pip, you need to install the python-pip package first). Launch the server using the command, and you can then access the terminal by pointing your browser to If you want to log in to the shell as a different user, you can do so by appending its name to the...
Keep Track of Your Current Work with a Bash Function

Mar 26, 2014 GMT

Here is a clever little trick I picked from a Hacker News thread. Using a simple custom now() function, you can keep track of things you are currently working on. Add the following code to the ~/.bashrc file: now() { echo $(date "+%Y-%m-%d %H:%M:%S") - "$@" >> $HOME/.now }Save the changes, and you can then record tasks by running the now Task description command, for example: now Working on an article. This records the specified task in the ~/.now text file in the following format: 2014-03-21 15:17:13 - Working on an article. You can also use special words like pause, continue, and done to mark the task as paused, resumed and completed. The thread...
Better Syntax Highlighting in nano

Mar 25, 2014 GMT

If you find the syntax highlighting functionality in the nano text editor lacking, you will appreciate a collection of .nanorc files in the nanorc GitHub repository. Here, you'll find a selection of definition files for a broad range of programming languages: from Python and HTML, to Lua and Markdown. To add all this goodness to nano, clone the GitHub repository using the git clone command, and then install the files by running the make install command. That's all there is to it.

Issue 169/2014

Buy this issue as a PDF

Digital Issue: Price $9.99
(incl. VAT)