Bash: how-to improve history manipulation

By default, up and down keys allow you to navigate your bash history. Another option is the history built-in command and bash expansions (ex.: !2 runs the second command, oldest to newest, from your bash history).

There are also tools, like bash-it, that allow for better history manipulation, but this also adds a lot of other stuff, so it might make your .bashrc load slower. It will make your bash look good as hell too.

Another option for an awesome way to access your bash history is the following snippet, based on bash-it‘s history plugin:

if [ -t 1 ]
    bind '"\e[A": history-search-backward'
    bind '"\e[B": history-search-forward'

With this, you only need to write part of a command, press the up arrow and it will complete it with the commands in bash history file that match to what you’ve written.

I’ve add it to the end of my .bashrc. Together with bash completion, it improves my workflow by a lot.

Criptex, an encripted email service with focus on privacy

Criptex is a new email client with a strong focus on the user’s privacy and data security, released by an independent company with the same name. The app stores all the emails on the device(s) it’s used, encrypted with the Signal Protocol, instead of storing them in their servers. This gives user’s total control over their data.

This software is open source and available for Android, iOS and macOS. Linux and Windows releases will be available soon.

note-keeper, a script for your note taking needs

note-keeper is a small bash script to simplify the creation, editing and management of notes. It uses the text editor set up in the $EDITOR environment variable, but if that variable is empty it defaults to Vim in insert mode.

(the image from this post is the one found in the script repository at the time of this article publishing)

NASA open-sources its mini Mars rover, turns out to be a son of a (r)Pi

NASA‘s Jet Propulsion Laboratory (JPL) developed a mini version of the Mars Curiosity Rover, and open sourced the design and software used. The source is hosted at the agency’s Github account.

The project uses mostly consumer off-the-shelf parts. One of them is a Raspberry Pi, used as the “brain” of the rover.

From the Github repo:

JPL is always looking to inspire the next generation of scientists, engineers, and roboticists to help us explore and learn about our solar system (and beyond!). We release the plans for this rover as a way to try and give budding enthusiasts a fun robotics project that will help teach them and get them involved in robotics sooner and at a lower cost.

If you were looking for your next DIY project, look no more.

TESS is officially looking for exoplanets

Step aside, Kepler, TESS (Transiting Exoplanet Survey Satellite) is in town and ready to discover more exoplanets (planets outside of our solar system) and closer to “home”.

From Engadget:

TESS is a follow-up to Kepler, a spacecraft that has spent the last nine years searching for Earth-like exoplanets near Sun-like stars. Though it may be on its last legs, Kepler has already found 2,650 confirmed exoplanets and even more are expected to be discovered from the data it has collected. But Kepler was designed to focus on a small section of the sky and while it spotted many exoplanets, a lot of them were very far away from Earth. TESS, however, will eventually map about 85 percent of the sky and it will attempt to spot exoplanets a bit closer to Earth — which allow other telescopes to study them more thoroughly.

All I can say is: send alien nudes.