CLI: Backing up and restoring file modification timesI recently needed to keep the exact file modification times as a part of a git repository. Since git doesn't support such functionality out of the box, I used a simple combination of find and touch commands as a part of the pre-commit hook. Here are ...3 min read路betterways.hashnode.devSep 27, 2022
"Copy to Clipboard" functionality in plain JavaScriptIn modern browsers, you can use Clipboard API to read and write to the system clipboard. Clipboard API consists of four asynchronous methods: navigator.clipboard.read() - reading arbitrary data navigator.clipboard.readText() - reading text navigator...2 min read路betterways.hashnode.devSep 21, 2022
Simple, reliable, fast (in that order)If I had to summarize my approach to software development in three words, the words "simple, reliable, fast" come to mind. This phrase is my variation of Drew DeValut's "Simple, correct, fast: in that order" phrase. While "correct" is definitely a re...2 min read路betterways.hashnode.devSep 20, 2022
Inxi - Finding out hardware configuration on LinuxInxi is a great tool you can use to find out the system and hardware information on a Linux system. If you're using Debian/Ubuntu-based distribution, you can install it with: apt install inxi On rpm-based distros, you can use: dnf install inxi On A...5 min read路betterways.hashnode.devSep 8, 2022
Async race conditions (on JavaScript example)The term "race condition" is usually applied to the conflict in accessing shared variables in a multi-threading environment. In Javascript, your JS code is executed only by a single thread at a time, but it's still possible to create similar issues. ...2 min read路betterways.hashnode.devAug 30, 2022