Given a file containing bytes of text with lines separated by the newline character (\n), one of these lines can be said to be „the last line of the file“; it is a sequence of bytes occurring in the file, for which holds: The sequence contains no newline character, and the sequence is followed by […]
Artikel in Kategorie "Technik"
Using sed or awk to ensure a specific last Line in a Text
20. August 2023 in GNU/Linux, Programmierung.
Determine IPv4 Addresses of a Libvirt Qemu-KVM Domain
1. Juli 2023 in Administration, GNU/Linux, Technik.
In the VM, on Redhat-likes, make sure that the Qemu guest agent is installed: dnf install qemu-guest-agent On Debian-likes, execute: apt install qemu-guest-agent For Microsoft Windows guests, there are some tutorials on the web, see for example [1]. On the HV, execute: virsh qemu-agent-command –domain myvm \ ‚{„execute“:“guest-network-get-interfaces“}‘ | \ jq -r ‚ [.return[] | […]
Two Paintings
19. Januar 2023 in Grafik, Multimedia, Sonstiges.
Did i mention that i like Blender?
Two Worlds, one Reality
19. Januar 2023 in Grafik, Multimedia, Sonstiges, Technik.
Sometimes, what topside constitutes an amazing engineering feat is turtles all the way down.
Eine Bemerkung über das Funktionieren
16. Dezember 2022 in Gesellschaft, Technik.
Nach einer Weile hört man immer mal wieder gewisse Sprüche über das Funktionieren irgendwelcher Produkte, Technologien, Techniken, Lösungswege, Praktiken oder Konfigurationen X: „Was funktioniert [also X], ist gut.“ „X ist nicht schön, aber es funktioniert.“ „Hauptsache, es [gemeint ist X] funktioniert.“ „Wieso, es [X] funktioniert doch!“ „Wir wissen zwar nicht warum, aber es [X] funktioniert.“ Lösungen […]
Removing the Builtin Inline CSS from WordPress
27. August 2022 in Programmierung.
Should you – as i did – wonder why WordPress renders a bucket of inline CSS into the HTML output (such as –wp–preset–font-size–normal in <html> or –wp–preset–color–white in <body>): This is done to accomodate frontend editing with Gutenberg. If you – as i do – are not using Gutenberg frontend editing, then the following PHP […]