Browsing directories with Vim

I’m still learning Vim every day. At first, it looks quite hard and most of the people want to learn how to quit it and never use again. Nevertheless, when you learn some basics, you can be really productive. This editor has much more cool functionalities than just :q shortcut ;-). Recently I discovered, you can use Vim not only for editing files but you can use it for browsing directories as well!...

April 2, 2017 · 1 min · 200 words · Piotr Wittchen

Control Spotify on Linux like a hacker

Recently, I created a tiny script called spotify-cli, which allows you to control Spotify on Linux from terminal. It’s inspired by shpotify, which is a shell script doing similar things, but on macOS. My script is written in Python and uses dbus under the hood, which allows to communicate with bus daemon to pass messages between applications. I used pactl for controlling the system sound. You can install spotify-cli as follows via wget:...

March 5, 2017 · 1 min · 181 words · Piotr Wittchen

Lifting quality of a shell script

Introduction In release cycle of our team at work, we need to perform so-called system tests. In order to do that, we need to log into Artifactory, search for the latest release package, check if it’s up to date, download it, unzip it, install internal configuration recipe, compile, initialize & run it. Not all of that can be easily automated, but I thought that at least searching & downloading phase can be done from the terminal in a semi-automated way....

November 30, 2016 · 3 min · 488 words · Piotr Wittchen

Converting audio CD to mp3 files on Linux

Not all songs are available on Spotify and sometimes we need to rip music from audio CDs in order to listen it on our computer or mobile device. There are several approaches to do that. Here is mine: Get RipperX: sudo apt-get install ripperx Put audio CD into your computer. Open RipperX, select All Tracks and check Rip to WAV option. Set quality of output files via “Config” option and names of the tracks if your want....

January 24, 2016 · 1 min · 207 words · Piotr Wittchen

Using tmux

What is a terminal multiplexer? It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. And do a lot more. - tmux.github.io Tmux feature, which I find very useful is tiling terminal window. We can have several tiles with different terminals within a single terminal window. How to use tiling? First, we need to install tmux:...

September 20, 2015 · 3 min · 477 words · Piotr Wittchen