Author Archive

extracting conky settings from Parted Magic

December 19, 2014 Leave a comment

Two days ago I heard about Parted Magic, which is a live Linux CD offering a complete hard disk management solution. As I was checking out the screenshots, I noticed that it has a beautiful conky setting:

“I need that” was my first reaction :) So I grabbed a copy of Parted Magic, launched it in VirtualBox, and extracted the conky configuration. You can download it from here. My launcher script is here. Simply add the launcher to the list of startup applications.

Tip: if you want to play with conky, do it with Conky Manager. Here is how to install it.

convert .txt to .pdf

December 15, 2014 Leave a comment
pandoc input.txt -o output.pdf

By the way, pandoc can convert from / to lots of file formats.

Categories: bash Tags: , ,

shuffle the lines of a file

December 15, 2014 Leave a comment
cat file.txt | shuf

For more alternatives, see the comments at the bottom of this page.

Categories: bash Tags: ,

print content of a file from line X to line Y

December 10, 2014 Leave a comment

You have a long text file and you want to process it parts by parts. For instance, you want to work with the first 50 lines, then with lines 51-100, etc.


cat file.txt | sed -n '1,50p'

# or: sed -n '1,50p' file.txt
Categories: bash Tags: ,

StackOverflow: 2,000 points

December 6, 2014 2 comments

Today I have exactly 2,000 points on Stack Overflow. How awesome that is! :)


Categories: Uncategorized Tags:

[manjaro] install Oracle Java JDK

December 3, 2014 Leave a comment

You want to install Oracle Java JDK on Manjaro and you want it to be the default.


$ yaourt jdk

It will produce a list of available Java environments. I chose “aur/jdk 8u25-1 Oracle Java Development Kit”. Type in its number and simply follow the instructions.

At the end you can set this newly installed Java JDK to be the default. In my case it looked like this:

$ archlinux-java status
Available Java environments:
  java-7-openjdk/jre (default)
$ sudo archlinux-java set java-8-jdk
$ archlinux-java status
Available Java environments:
  java-8-jdk (default)

Verify in a new terminal if it’s set correctly: “which java“, “which javac“, “java -version“, “javac -version“.

Categories: manjaro Tags: , , ,

Remarkable: a nice markdown editor with live preview

December 3, 2014 1 comment

At last a cool markdown editor with live preview. Check it out here:


I read about it here:

Open .md files with Midnight Commander

# markdown
    Open=remarkable %f 1>/dev/null 2>&1 &
Categories: Uncategorized Tags: ,

Get every new post delivered to your Inbox.

Join 73 other followers