Heitor's log
https://heitorpb.github.ioPractical Linux tutorials and command-line tips covering system administration, scripting, and performance benchmarking.
Entries
-
Trying to win the lottery with pure Linux RNG magic.
-
There are plenty of CLI tools to calculate the checksum of files. But, which one is the fastest?
-
How to use fwupd to update device's firmware on Linux.
-
How to use the `timeout` command to terminate processes after a specified time and how to combine it with `until` for...
-
Boosting productivity with Git aliases: what they are, their benefits over shell aliases, setup, and examples.
-
How to push and pull Docker/Podman images to a remote server, without using an Image Registry.
-
Creating temporary files and directories in Python, using the standard library module `tempfile`.
-
Need to work with tar files in Python? Here's how to create and extract compressed tarballs effortlessly.
-
How to generate random strings in Bash.
-
How to setup Mainsail and webcam support on Creality Ender 3 V3 KE printer.
-
TIL: looping over hexadecimal numbers in Bash just takes one line.
-
Listing PCI devices by manufacturer and/or device type/class.
-
`jq` tricks that I learned over the years to parse JSONs.
-
How to turn ugly JSONs into pretty JSONs inside Vim. And vice versa.
-
The more I use NixOS the more interesting it gets. I now found out about remote builders and those are just awesome.
-
How to pretty format a Markdown table using vanilla Vim or NeoVim. No plugins needed, just two steps.
-
How to get Nomad running on NixOS for local development, with Podman and Docker task drivers.
-
How to feed the output of one process to multiple other processes simultaneously, using tee and Bash's process substi...
-
How to find out your public IP address on the command line after reinventing the wheel using Rust, Axum, Nix, a docke...
-
How to create symbolic links in Python. Easier than using ln.