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.
pandoc input.txt -o output.pdf
By the way, pandoc can convert from / to lots of file formats.
cat file.txt | shuf
For more alternatives, see the comments at the bottom of this page.
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
Today I have exactly 2,000 points on Stack Overflow. How awesome that is! :)
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) java-8-jdk $ sudo archlinux-java set java-8-jdk $ archlinux-java status Available Java environments: java-7-openjdk/jre java-8-jdk (default)
Verify in a new terminal if it’s set correctly: “
which java“, “
which javac“, “
java -version“, “
At last a cool markdown editor with live preview. Check it out here: http://remarkableapp.net/index.html.
I read about it here: http://www.unixmen.com/remarkable-new-markdown-editor-linux/.
Open .md files with Midnight Commander
# markdown regex/i/\.(md|markdown) Open=remarkable %f 1>/dev/null 2>&1 &