Evernote from command line

As mentioned before, you get a productivity boost when you link your mobile life with the terminal, with a program you can pipe, parse, grep…

Geeknote (www.geeknote.me) is a command line interface for your Ever Note account.

Installation is as easy as:
git clone git://github.com/VitaliyRodnenko/geeknote.git
cd geeknote
sudo python setup.py install
geeknote login

The latter will ask you to provide login credentials (press enter when asked for Two-Factor auth code, if you didn’t enable it) from the shell. While this is a good thing, unfortunately the authorization is not permanent, but “per session”.

Google Calendar from command line

The connection between my mobile phone and the rest of my IT life (i.e.  the Linux terminal 🙂 ) will likely get a little bit harder, at least this is what if fear.

Thankfully there are awesome packages that still seems robust and insanely useful.

Gcalcli (https://github.com/insanum/gcalcli), a Python script to manage your Google Calendar via APIs is one of them.

Screenshot from 2015-11-26 10:18:41
Instant view of your week with the “gcalcli calw command

The program is written in Python 2.7, and can be installed by:

pip install gcalcli

And in most systems you’re done (I used some Mint from 2013). When you first invoke it will launch your browser for the OAuth, so it’s handy to have one at least the first time!

Inkscape from command line

When a script should produce a vector image as output I love to use SVG, an XML and pure text format. Then you can use Inkscape to convert the XML (SVG) file into PDF or PNG:

inkscape -f FILENAME.svg -A FILENAME.pdf
inkscape -f FILENAME.svg -w WIDTH -h HEIGHT -e FILENAME.png

Thus for a fast batch conversion:

for i in *.svg; do inkscape -f $i -w 1024 -e $(echo $i|sed 's/svg/png/'); done