Tux Machines

Programming Leftovers

Posted by Roy Schestowitz on Aug 23, 2024

Raspberry Pi 5 PCIe HAT+ board features gigabit Ethernet, 4G LTE (mini PCIe), two USB 3.2 ports
Open Hardware: Mobile, Arduino, Raspberry Pi, and RISC-V

Shell/Bash/Zsh/Ksh

TecMint ☛ How to Use Flow Control Statements in Awk – Part 12

↺ How to Use Flow Control Statements in Awk – Part 12
But in certain situations, we may want to run some text filtering operations based on some conditions, that is where the approach of flow control statements comes in.

Python

Jeff Triplett ☛ 🐍 Python UV run with shebangs

↺ 🐍 Python UV run with shebangs
This UV shebang trick that Simon Willison linked up is a nice pattern, and I plan to rebuild some of my one-off scripts in my dotfiles using it.
Here is a demo that will print “hello python” using the Python Branding colors using the Rich library while letting UV install and manage rich for you.

Standards/Consortia

The New Leaf Journal ☛ On Using and Offering Full-Text Feeds

↺ On Using and Offering Full-Text Feeds
I came across two interesting posts on full-text website feeds. Those who are not familiar with RSS and ATOM feeds generally should consult my introduction article. For those of you who have some familiarity with feeds, note that by “full-text” I mean feeds that provide the entire content of an article or post instead of a snippet. However – many feed readers are able to turn snippet feeds into full-text feeds, so the distinction is sometimes moot for practical purposes.
gemini.tuxmachines.org