Blackened
, .I love Blackened by Metallica and it’s super fun to play, but holy shit, timing signatures and tempo changes in this song are crazy!
Hi! My name is Michał Góral, I am software developer (currently at Nokia) and this is my personal website. You can read more about me on a separate page if you’re curious.
I love Blackened by Metallica and it’s super fun to play, but holy shit, timing signatures and tempo changes in this song are crazy!
I noticed that in git log I’m always interested in commit date, not author date. The difference is that author date shows when author finished their work and commit date shows when it actually landed (was merged by someone else, like CI bot). Commit dates are arguably more useful because they preserve the chronology of git log. As there’s no built-in log formatting which would give me a combination of author (not committer) + commit date, I had to become a little bit creative:
# This goes e.g. to ~/.gitconfig
[pretty]
# format:/tformat: controls spaces between commits
commitdetails = "format:\
%C(yellow)commit %H%C(auto)%d%Creset%n\
Author: %an <%ae>%n\
CommitDate: %cd%n%n\
%w(0,4,4)%B"
[format]
pretty = commitdetails
Reading hurts because people (me included) don’t know how to write. We don’t cross out the wrong words. (sidenote: Mark Twain reference, at least according to Civilization 6.) If you don’t know how to keep attention of your readers, do everyone a favor, yourself included, and be concise. Go straight to the point and write 3-4 sentences instead of 3-4 paragraphs, because this is the most that people bear before losing interest. (sidenote: Too bad that schools teach the exact opposite of this idea.)
Yesterday I installed paperless-ngx for management of my family documents. It is very good. It took me some time to re-categorize everything, because I had hoped that its neural network would do most of the grunt work, but it didn’t. After some learning it tagged some of the documents (incorrectly) and didn’t touch most of them, so I had to resort to the ordinary word- and regex-based rules. I actually had fun writing these and they now do 90% of work for new documents.
I don’t have a scanner which can output to the network share, but I added the consume directory (sidenote: Paperless-ngx automatically fetches all new documents from it.) to Syncthing and it’s great!
Monochrome colorschemes are good and pleasant for eyes. That's why I created one for Vim.
I synchronize a lot of things, each of them differently. Let's take a look how to write a simple Bash script which automates and parallels that.
DWM-like master-stack layout for i3 is possible by using i3's IPC mechanism.
Presentation of simple scripts and techniques allowing automatic generation of program's version.
Formatting is one of these parts of TWC which I disliked the most. This has finally changed with release of TWC 0.9 and complete rewrite of formatting strings syntax.
Presentation of my program for toggling file comments depending on a list of keywords in a language similar to preprocesor.
With markorapp, a script which I wrote, it's easy to create "singletons" in i3. Singletons are applications which should have only one instance, like a particular terminal.
Writing and using webhooks to automate deployment of web applications.
I released a new version of SubConvert, a program to convert between various video subtitle formats.
Using fields and templates in Home Assistant scripts
How to configure udev rules on Synology to create persistent device names in /dev/serial/by-id
How I replaced 2 types of wi-fi modules for Haier air conditioners with ESP8266
Home Assistant is one of my most beloved selfhosted applications. Here's why.
How to configure VPS and peers so they can talk to each other via Wireguard
How to mutate immutable Synology configuration and persist these changes
Operating System Controls as escape sequences which can be used to change the background of both terminal and programs running in it.
Description and example of vim.lsp.config() for configuring language servers in Neovim
Changelog is important, but we can simplify our lives and generate it, at least partially.
Every once in a while I learn something new about Vim. This time it's :keepalt command.
We can use user-level systemd services to run X sessions.
Xsession is a default way of starting X sessions in Debian, but for some reason it remains a mystery for many people. Here I try to shed some light on it.
Configuring one of the best SMTP clients on Debian and some caveats which we must remember.
Workaround for a problem with how Sway draws borders around floating windows
Git has capabilities of writing custom credential helpers, which can fill passwords for accessing HTTP repos for us.
I did it! I forced a buggy xrandr to toggle screens and not kill X session!
There is one const usage in C++ which is a little different than the others. Andrei Alexandrescu called it the most important const.
A short introduction to one of the most breakthrough features of C++11: rvalue references and move semantics.
The article about Return Value Optimization - one of the most important features of C++ compilers.
Structured Bindings is a new way to decompose values returned from functions. It's similar to some other programming languages and greatly simplifies the code.
How can we live with types which do not implement assignment operator?
How C++ handles dependant names and why we must use typename keyword everywhere.
Name hiding is a surprising feature of C++. Here we'll learn a little more about it.
A trick which allows us to easily convert from const_iterator to iterator. Please don't do that.
It's possible to create a functions in C, similar to printf and scanf, which accept infinite number of arguments.
Clever descriptor which automatically converts assigned values to the annotated type.
Graceful shutdown of PyQt applications might be harder than it looks like. This article presents the problem and a way to resolve it.
Process substitution in Bash is a powerful technique which allows us to redirect command's output to programs which only accept files.
Obstacles I encountered while testing accessibility of this blog's theme.
A video presenging Droste Effect which is a recursive image.
Even though I almost entirely stopped listening to it, I can't stay silent about recent events in Polish Radio Trójka.
Notes should be pretty too, because why not? Here I'll show you my method of rendering them to HTML.
It seems that we have a curse of abundance: so many to-do apps and methodologies that we can no longer choose one.
Trying something new for mail provider: a small company from Switzerland called Migadu.
It's a little late to make a New Year's resolution, but I'll make one nevertheless.
Simple Fix for a problem when you have one pen and too many inks.
Niesulice is a small village over Niesłysz lake.
Photos from our visit to Exotic Zoo in Kaszuby during our 2019 trip.