sncli – Simplenote Command Line Interface

Notes can be a great way to store information for later reference. That’s why I’m always on the look for the “perfect” note-taking app. I use Google Keep for grocery lists and saving random links I want to read but don’t have top priority, because it’s available in most platforms. Yet, for storing notes in a (somewhat) knowledge base format, I hadn’t found a solution.

I’ve tried some apps and services, but they always fell short. One of those services was Simplenote; not because it didn’t have what I needed, but because I hadn’t found a command-line application to interact with the service when I don’t have a graphical session running. Until today.

While randomly browsing the web, I stumbled upon sncli, a command-line interface for Simplenote. The tool is written in Python3, and you only need the interpreter and Pip to install it. The configuration is simple, but the keybinds are awkward. To be honest, they seem to be configurable in the configuration file, located at ‘$HOME/.snclirc’, but I haven’t done that yet.

One of the cool things about this app is it allows you to use your preferred text editor. In my case, that’s micro. I find the keybinds in this text editor simple to use (mostly because they are the same as most text editors with a GUI).

Another nice feature is the ability to flag notes as markdown content. This allows a faster visual identification of them in the notes list. There are other flags, for example to identify which notes haven’t been synced.

Other notable features include regex and Google-like search, versioning, piping (inside sncli) notes content to external command and creating notes on the command-line with a simple pipe (echo “Testing” | sncli -t Test create -).

By the way, this was written in sncli.



A 11ª temporada de Ficheiros Secretos começou. Ver esta série é uma viagem de regresso à adolescência, à ansiedade causada pela espera do próximo episódio, à paixoneta pela agente Scully. E é bom. Esta foi a primeira série televisiva de ficção científica que me colou ao ecrã como uma lapa a uma rocha e é com muito agrado que posso ver mais uma temporada.


Some relaxed and upbeat tunes to start the new year in a positive mood

I will not bother you with all that stupid new year’s resolutions crap. Instead, here’s a playlist for your new year’s eve. No need to thank me for giving you a way out of the shit music people tend to listen in this events. Praise Spaghetti Monster for no Despacito.

Ennja – Let Go

Alef – Sol

Unders – Syria

Kiasmos – Looped

Sahalé – Le Petit Prince

RÜFÜS – Innerbloom

Paji – The Old Gods

Popof – Serenity

Worakls – Elea

Nu – Amor

Claptone – No Eyes (feat. Jaw)

Møme – Playground

geekices, software livre

A few thoughts about IceWM and a theme I made for it

Today I decided to install IceWM in my Arch partition (I’m dual booting with Debian Testing). I haven’t touched this window manager in at least five years, but I had some nice memories of it, so I decided to use it again.

A few hours have passed since I’ve installed it, and I remember why I liked it. It’s very lightweight, using less than 5MB of RAM, and the (text-based) configuration is simple. The documentation is not bad either.

The default theme, however, is not to my liking. It was the one thing that I felt I had to change. So I went to to find a theme and stumbled with erizo. While not exactly what I was looking for, although it looks really nice, it gave me a really good base to start tweaking.

And this is the main reason I’m writing this: to share the theme. I’ve darken a few elements, changed the typeface (I’m using Clear Sans, from Intel, but you can use any other you like) and made a few more small tweaks. The image in this post is a screenshot from the theme I’m sharing.

The theme’s license, like the original, is the GPLv3 (please refer to the COPYING file in the download archive).

Download it


The little things

message from lidl

Sometimes, the little things can make a business win, keep or loose customers. Like this small thing from Lidl that ensured they will keep me a customer for a foreseeable future, even though:

  • I’m lactose intolerant and won’t be eating the cake because it most likely has lactose in it;
  • I really don’t care that much about my birthday.

But I admit it’s a nice touch for the customers.


Firefox Quantum rocks!

Firefox got a major speed overhaul in version 55, the current stable version at the time of writing. I’ve used it for a few weeks and the differences are impressive.

In the same environment, it used less RAM (even with 20+ tabs), felt more responsive and started faster. Pretty impressive changes, if you ask me. And some needed ones, because the browser seemed to have a similar appetite for memory as Google Chrome and felt slow using it.

Can this get even better? Yes it can!

Meet Firefox 57. This is the version currently in beta and is part of the Quantum Project, which intends to improve the browser’s performance. Oh boy, and improve it did. The software is faster in almost every way: shorter render times, faster startup and less used RAM. Also, there are a few (more than welcome) changes to the interface, most notably the ability change between one single address and search bar or two separate bars (the current default behavior).

If you haven’t tried it already, go ahead, make your day. You can thank me later. 🙂

By the way, please be advised that some extensions do not work with this version. Luckily, uBlock Origin works.


Trying to quit coffee and cigarettes

Quitting smoking and drinking coffee is hard. I’m on the third day and, although I don’t feel any relevant urges or have bad moods, I do feel a terrible headache all day, non stop. I knew it would be hard, but headaches all day is a pain in the ass. Guess that’s the consequence of drinking coffee since I was 11 years old (I’m 33 at the time of writing).


So long, Void. Hello (again) Debian

I’d been using Void Linux for a few months and I was generally happy with this distribution. The performance is good, it uses a rolling-release model, has a D.I.Y. component to it and helped me learn a bit more about Linux internals. Yet, Debian kept whispering my name in the wind.

Debian was the first Linux distribution I really tested and ended up installing. Or was it Ubuntu? My memory is not what it used to be. But let’s be fair, it doesn’t matter which one was the first: Debian always struck me as a solid operating system, even the Testing branch. And the fact that the repositories are loaded with software helps a bit.

Software availability is an area where Void somewhat lacks. You can always build something from source, a reasonable thing to do if it’s just a software or two. When this number increases, it can be a P.I.T.A. – keeping track of new versions and new dependencies can quickly become a nightmare.

So, although I’m a bit sad because I had a good experience, I removed Void and installed Debian – a.k.a. The Universal Operating System – Testing.


I fucking hate ads and what I did about it

I fucking hate ads. I really do (fucking) hate them. They make the browsing experience far worst than it would be without them, they track the user everywhere (not just ads – winks at Facebook) and they make the mobile platforms much more annoying.

To hide them, I usually have an adblocker installed in the browser and a dedicated one in the phone (provided I have root). Now, I have one more tool: adhosts.

This is not my original work. The original author is levin. I just improved what he wrote and published the changes to a repository on Github, so anyone can use it and/or improve it.

The tool is a simple bash script that downloads some files, merges them and appends the result to your /etc/hosts file. You’ll need bash, curl and an internet connection. And make no mistakes, this will not block all of the ads. An adblocker in the browser is still recommended. This tool is a complement to your existing adblocking arsenal. Download it.

The license is LGPLv3, as the original tool.