Posts
-
Jekyll customizations for sakhnik.com
Two features has been added to the site recently: language change flag in the header and pagination of posts. To achieve this, I had to learn some basics of Jekyll, liquid and Ruby. Let’s summarize how it was done.
[read more]
•
-
Fixing suspend in Xiaomi Mi Notebook Air
The common issue in my notebooks: suspend (sleep to RAM) stops working every second time. I.e., the first time I close the lid, the laptop falls asleep, open lid awakens, but the second time is unsuccessful. Either no suspend, or no wakeup. The cure in C720 was to unload TPM manually.
[read more]
•
-
Pluggable configuration of zsh
I’ve been using hand-crafted .zshrc for few years with very little change. Now it appeared to slow down zsh startup on msys. I pinpointed out the cause:
[read more]which
searches had to traverse tons of directories in thePATH
. Then I decided to rework the whole configuration, there should have been something similar to vim-plug for ZSH.
•
-
Advent of code 2016
I’ve just completed advent of code 2016. My goal was to complete all the tasks with quick and dirty C++, spending as little time on it as possible. My solutions are available on github.
[read more]
•
-
Git with mercurial repository
Open source projects like git, commercial companies tend to perforce or mercurial. Undoubtedly, git is more than plain SCM, rather a valuable tool during development. Heard about Commit often, perfect later, publish once? So I used to utilize
[read more]git-p4
few years ago. And even more interesting story now.
•
-
Unit testing in C++
I tried two frameworks in the previous projects: Boost.Test, Google Test. Both of them fit well to the job, but my current task called for a simpler tool, especially concerning linking. Hence meet Catch.
[read more]
•
-
Linux containers with systemd-nspawn
When I needed specific linux distribution on a modern linux host, I used to utilize schroot. More robust solution would be to use LXC. However the same page suggests systemd-nspawn as an alternative. So I tried it the other day when needed to prepare CentOS 7 for my work.
[read more]
•
-
Automation of a VPN client
I had to connect to VPN today. It happened to require open source client shrew soft. Arch linux offers AUR package ike for that. It’s easy to use, but annoyingly interactive, and ultimately takes one dangling terminal. Consider typical session:
[read more]
•
-
Unix in Windows 7
If people knew
grep
,sed
, andawk
, there wouldn’t have appeared many good and beautiful programs.
•
-
Portable media library with Shotwell
Shotwell is a great photo manager for GNOME. It imports photos to conventional
[read more]~/Pictures
, stores meta information as well as thumbnails somewhere deep in hidden directories. Now consider my requirements:
•
subscribe via RSS