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 ...Sep 27, 2022 路 3 min readbetterways.hashnode.dev
"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...Sep 21, 2022 路 2 min readbetterways.hashnode.dev
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...Sep 20, 2022 路 2 min readbetterways.hashnode.dev
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...Sep 8, 2022 路 5 min readbetterways.hashnode.dev
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. ...Aug 30, 2022 路 2 min readbetterways.hashnode.dev