12 08 | 2013

grep --only-matching

Written by Tanguy

Classified in : Homepage, Debian, Command line, To remember

Magnifying glass over a sheet of text

grep is designed to print lines matching a given pattern, but I often need to print only the matching part, discarding the remaining.

I used to do that with sed, but it involves several actions: match, replace the line by only the matching pattern and print. Fortunately, GNU grep has an option to do just that:

-o, --only-matching
Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.

Unfortunately it is not a standard option, so it may be missing on non-GNU systems.

17 06 | 2013

Encryption without a certification layer is (partly) useless

Written by Tanguy

Classified in : Homepage, Debian, Grumble

With the PRISM scandal, there has been some talk about encrypted communication systems. For instance, BitMessage is often introduced as an easy and secure message system, that would allow you to communicate with no possible eavesdropping. Apple is also making similar claims about their systems iMessage and FaceTime.

This is a good time to remind this: without direct contact or a certification layer, encryption systems are not secure! Or at least, not as secure as you would expect, as they do allow some kind of eavesdropping.

Read more Encryption without a certification layer is (partly) useless

07 06 | 2013

Looking for an SPF milter

Written by Tanguy

Classified in : Homepage, Debian, Lazyweb

Envelope

For email extensions such as SPF, DKIM and DMARC, I think the most flexible and portable system is the milter protocol. Originally developed for Sendmail, it is now also supported by Postfix, and it allows to “plug” specific filters in the mail server without the hassle of the previous systems like SMTP proxies.

Read more Looking for an SPF milter

05 03 | 2013

Suspend your computer from a non-mainstream desktop environment

Written by Tanguy

Classified in : Homepage, Debian, Command line, To remember

Battery icon

UPower for regular users

Major desktop environments usually provide a user-friendly menu to suspend your computer. Internally, if seems to use something called UPower, which uses something called PolicyKit, which in turn may or may not use another piece called ConsoleKit (do not ask me what all these pieces are and how they relate to each other, I do not know and I do not want to know). For the regular user, the result is the following: when they click on that button, it suspends their computer.

Read more Suspend your computer from a non-mainstream desktop environment

21 02 | 2013

One archiver to rule them all: bsdtar

Written by Tanguy

Classified in : Homepage, Debian, Command line

Package icon

Sometimes, you have to use ZIP archives, or worse, RAR archives (curse them!), with one significant annoyance: zip, unzip, rar and unrar use a rather uncommon command line convention, compared to the usual tar, cpio and pax.

Read more One archiver to rule them all: bsdtar

Rss feed of the category

«previous page 6 of 17 next »

Archives