Git revert is a feature that allows to cancel changes, introduced by a commit by creating a new commit with exactly opposite diff. Handy enough, but sometimes a problem could arise.

I’m huge vim fan. I’ve tried many modern editors, but, really, I wasn’t feeling at home like it was with vim. That being said, vanilla vim is nice, but for any kind of serious software development one wants to enhance it [quite] a bit.

Bash tips and tricks (part 1)

16 September 2016

Today I learned another really cool thing bash can do and then I thought it is worth it to start sharing various tips and tricks. Most of them arise from the fact that everything is file in *nix.

Docker-compose is awesome: it’s brings automation levels high, driving apps close to be 12 factor. But some times it’s being too smart (for me particularly). This time a couple of words on dynamic network creation.

Backing up and restoring data in rails projects is trivial enough. But when using docker and docker-compose things may become a bit cumbersome.

Lately I’ve been doing a lot of hardware diagnostic tasks. One of which was to monitor network connection over screwed (and then repaired) twisted pair cable. I found myself constantly hitting to call ip l show eth0 again. And then I thought…

When you manage one or two packages, it’s a good idea to spin up a virtual machine as build environment just for that. Using some tricks it can be made possible to build them automatically.
Here I want to show fully automated approach using headless build host inside a Docker container.

Drop-in Xorg xclients

09 August 2016

XClients is a perfect and cannonical way to autostart graphical application. But personnaly I don’t like to keep various settings in a single file, so let’s add some modularity to XClients.

There are several options for embedding fonts into a webpage. Here I’ll show, how I would optimize the process for page load speed and development convenience.

These days there are plenty of acceptable favicon formats. You are no longer restricted to 16x16 image/x-icon file, as long as support of IE < 11 is optional. Variety of mobile devices support other types of icons, that are used instead or with favicons, namely apple-touch-icon and mstile. Range of sizes varies from 16x16 to 192x192 pixels.
Manual scaling for dozen of different sizes is strait violation of DRY principle, so here comes a possible solution for Rails application.