Darkest Dungeon: The Color of Madness Is out

Red Hook Studios have just released Darkest Dungeon: The Color of Madness. It’s the latest DLC for the critically acclaimed gothic roguelike. In case you haven’t head about it, this RPG is set in Lovecraftian world. So, it is not for the faint of heart. Your heroes will starve, despair, get sick and die. And they will stay dead.


The expansion brings several new features:

I have taken part in the beta testing a I can definitely say you should grab this one. And while you are at it, why don’t you get yourself a copy of Crimson Court as well? If you still need convincing, check the launch trailer:

Improve Your Privacy with DNS Over TLS

HTTPS is quickly becoming standard, in no small part thanks to Let’s Encrypt. HTTPS helps keeping ISPs and other third parties from spying on users. But there is one more gaping hole, the DNS protocol. And DNS over TLS aims to plug it.

What is DNS?

Wait a sec, what’s this DNS stuff?” might be your reaction. DNS, or domain name system, is the Internet’s yellow pages. It translates URLs into IP addresses. So, whenever you type an address into your browser, the computer sends a request to a DNS server. In turn, the DNS server tells it which server to connect to. Most DNS servers use DNSSEC to sign their answers. Thanks to that you be sure the answer you got is not bogus. Unfortunately, the whole communication is in plain text and therefore visible to anyone en route. This is where DNS over TLS comes into picture.

Read more…

Improve Wordpress Load Speed with WP Super Cache

Wordpress is the most popular CMS in the world, powering over 30% of all websites. It owes its popularity to easy of use and a huge number of plugins. The plugins make it possible to turn Wordpress into anything from personal blog a to e-shop. Like others of its kind, Wordpress generates the pages dynamically. In other words, everytime it is accessed, it loads data from database and uses PHP to create a page it serves the visitor. As a result, Wordpress load speed is slower a it requires more resources. That is important point too keep in mind, since over 40% of users leave a page if does not load within 3 seconds.


This is where caching comes into picture. It combines the speed of static sites with the robustness of Wordpress. Instead of generating page on every load, Wordpress saves the resulting page. Other visitors just see this pregenerated static page. This significantly improves Wordpress load speed and saves server resources. And when you post a new article or a comment, the cache is automatically invalidated. So, you don’t have to be afraid, that visitor will see an outdated version.

Read more…

Mariner - a Command Line Torrent Searcher

I have been busy working on a new project for the past several weeks. It has finally reached a state, where I can publicly announce it. So without further ado, welcome Mariner, the command line torrent searcher:

Mariner in action

I use torrents for downloading Linux distributions. The reason being, that it is usually faster and easier than digging for the ISOs on the official websites. Still, most torrent trackers are bloated, filled with ads and plagued by popup windows. I could do without those. All this has lead me to write Mariner. As you can see in the animation above, it is a simple command line aplication. It let’s you search for a torrent on multiple trackers at once and find the fastest one. Among other features, it allows you to see the torrent details, download them and directly open them in your torrent application. Moreover, it is asynchronous. That means, it is more responsive than your average web scraper.


If it piqued your interest, you can learn more about Mariner in documentation. Or, you could just check the project page. But if you are looking for a more automatic way to download torrents, check my torrentbox guide.

Why Privacy Matters by Glenn Greenwald

For the last couple years, mass surveillance has been on the rise. Both governments and private entities alike track our every move online. As a result, our privacy has increasingly eroded. Under such circumstances, it is ever more important to fight for our right for it. But the problem is, that majority of population seems apathetic to this. If you are one of such people, I recommend watching the following TED talk by Glenn Greenwald. It nicely sums up why privacy matters.

Why Privacy Matters by Glenn Greenwald

Blog Terminal - A Wordpress Terminal Plugin

You might have noticed a new entry quietly appearing on the project page. So, let me introduce it to you. The new entrant is Blog Terminal, a Wordpress plugin for drawing a terminal-like box, complete with prompt. If you have read some of my other blog posts, Blog Terminal is what powers the terminal boxes in them. For the longest time I have used Post Terminal plugin by Brandon Griffith. But there were some things I did not like about it. Namely, it was not possible to draw a terminal without a prompt (for showing example configs). Furthermore, since it did not take advantage of many of the Wordpress APIs, the code was unnecessarily complicated. This made it hard to add new features. Therefore, I have decided to completely rewrite it.

Read more…

Steam Not Working on OpenSuse? Here’s a Quick Fix

After a couple of busy weeks, I finally found myself with some free time. There were a couple of interesting game releases that I wanted to check out. Unfortunately, that did not go so well in OpenSuse, with Steam not working. I was welcomed by the following error:

symbol lookup error: /usr/lib/libxcb-dri3.so.0:
undefined symbol: xcb_send_request_with_fds

It seems that Steam does not work as smooth in OpenSuse as in Ubuntu. Luckily, the fix was quite easy. You can disable the library in question using an environment variable. So I just set it when launching Steam:

$ host +x

Once I did that, the Steam launched normally and updated itself. After that, the problem disappeared, therefore I could just can run Steam normally. Time to try out Shieldbreaker, the new Darkest Dungeon DLC, with Steam controler. If you still have trouble running Steam, this might help you. Meanwhile, here’s hoping that the Steam Linux Integration project comes to Opensuse as well, for a seamless Steam experience.

Vim Tips for Increased Productivity

Vim does not need to be introduced. Due to its steep learning curve, it is often considered the bane of new Linux users. But once you get the hang of it, there’s no denying, that it’s a very powerful tool. In this post I would like to share some Vim tips, that I’ve learned over the years, that will improve your productivity. It is not aimed at Vim beginners. If you are just starting out with Vim, I recommend the excellent Byte of Vim by Swaroop C H.

Save file without sudo

I think we’ve all been in this situation - you make edits to some system configuration and when you try to save them, you realize you don’t have sufficient privileges. No need to worry, you can save it with sudo straight from Vim, using this command:

:w !sudo tee "%" > /dev/null

Since I find myself myself in such situations a lot, I have mapped it to :W command in my vimrc:

$ echo 'command W w !sudo tee % > /dev/null' >> .vimrc

Read more…

Assign Your Raspberry Pi Static IP in Couple Steps

Due to its availability, Raspberry Pi is an ideal candidate to run a simple server. After the initial setup, it will use DHCP to connect to your network. That means, each time you restart the Pi or your router, it might end up with a different IP address. This not ideal, as you will need to take a note of the new IP to connect to your services. In order to avoid reconfiguring your computers all the time, you should assign your Raspberry Pi static IP. This post will show you how to do it for ethernet connection on Raspbian, but the steps are the same for a wireless connection. Start by connecting to your Pi. When you do, you can see the current network settings by running:

$ cat /etc/network/interfaces

It should look something like this:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo 
iface lo inet loopback
iface eth0 inet dhcp

The entry you need to change is for the eth0 interface. That is the default ethernet adapter. In order to use a static IP, you have to provide IP address, network, network mask, broadcast and default gateway. So, let’s get them.

Read more…

Run Docker Container as Regular User

Docker has become omnipresent in recent years. However, by default, it requires root privileges to run containers. Obviously, this is not good security-wise. But a simple change will allow you to run docker container as a regular user. In the examples below, I am using Ubuntu 17.04, but the commands should be the same for any Linux distribution.

Add user to docker group

First of all, what happens if you try to run docker without sufficient privileges? You can see the output below:

$ docker run hello-world
docker: Got permission denied while trying to connect to the Docker daemon
socket at unix:///var/run/docker.sock: Post https://%2Fvar%2Frun%2Fdocker.sock/v1.28/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.

Docker allows users in docker group to run containers. You can check which users the group contains by running:

$ cat /etc/group | grep docker docker:x:140:

In the example above, the group does not include any users. Therefore, you need root privileges to run containers, as shown by the error above. This is the default setting. To add your user to the docker group, run this command:

sudo usermod -a -G docker user

Read more…