Directly Handling Errors in PowerShell Tip #47 #softwareengineering #coding #LearnPowerShell #softwaredeveloper #PowerShellScripting #CodingForBeginners #csharp #bash #Scripting #PowerShellTutorial #linux #windows
Directly Handling Errors in PowerShell Tip #47 #softwareengineering #coding #LearnPowerShell #softwaredeveloper #PowerShellScripting #CodingForBeginners #csharp #bash #Scripting #PowerShellTutorial #linux #windows
Is Python causing performance issues with your small embedded machine? The Lua programming language may be a better alternative
https://www.makerspace-online.com/rpi-plus-temperature-sensor-to-talk-to-a-ps-vita-display-2/?utm_source=mms
#RaspberryPi #Lua #Python #programming #languages #performance #Bash #scripting #PSVita
You can't imagine the effort I have to put in to write a podcast episode (will be about moss). First of all, I have to understand everything myself so that I can then tell you all about it in three sentences in the most entertaining way possible.
This might already exist for FreeBSD, and if so.. let me know!
- 1) keeps record of OS core/default settings: loader.conf, rc.conf, sysctl.conf, devfs.rules, login.conf etc
- 2) keeps record of file checksum on those OS core files (similar to the app, tripwire)
- 3) mode which shows divergence on current state vs known-default state in configs (1) and checksums (2)
-4) mode which tracks the files and their change-sets over time, similar to a zfs snapshot but at a single file-level
Advanced Shell Scripting with Bash (2006) [pdf]
http://uniforumchicago.org/slides/bash1.pdf
#HackerNews #AdvancedShellScripting #Bash #Scripting #PDF #2006 #Programming #Tutorials
Here's a demo of the mp3 glitching script I wrote about here: https://reillyspitzfaden.com/posts/2025/04/databending-part-3/
I added a batch script so I can take in a bunch of folders of .wav files, use ffmpeg to convert them to mp3 (and try out different bitrates), glitch them, re-encode those as .wav (easier to work with), and then clean up all the intermediate mp3s.
Switch Statement in PowerShell Tip #40 #softwaredeveloper #LearnPowerShell #softwareengineering #csharp #coding #PowerShellScripting #Scripting #CodingForBeginners#PowerShellTutorial
In less than 18 hours, including a solid 12 hours (at least) of downtime, I have gone from concept to 90% functional prototype of a creative rPi project, thanks to aus.social allowing quick and easy downloads, jq, an obscure CUPS driver project, and an intimate knowledge of scripting.
Feeling very accomplished.
Auto Close Files in Python #python #coding #scripting #programminglanguage #datascience
Understand IF Conditional statements in PowerShell Tip #39 #softwaredeveloper #LearnPowerShell #softwareengineering #coding #csharp #PowerShellScripting #Scripting #CodingForBeginners #bash #linux
Today I found that bash uses dynamic scoping, not lexical scoping. So if you have a
function inner() {
echo "$x"
}
it will go up the call stack to find the first x defined as
local x
in any caller and print it. Pity (add more swearwords here)
#bash #dynamicscoping #lexicalscoping #programming #scripting
I also have a script (https://github.com/reillypascal/personalsite-ssg/blob/main/interaction) that takes a flag for the interaction type and a URL, extracts the title from the URL, and creates a new interaction post (e.g., like, RSVP, etc.). Makes things much more convenient than having to copy all that down by hand!
I added some more cool things to my grimoire! https://reillyspitzfaden.com/code/#grimoire
I have interactions on Mastodon/Bluesky coming in as webmentions, and that's nice, but other sources get lost in the shuffle, so I have a script here (https://github.com/reillypascal/personalsite-ssg/blob/main/webmentions.py) that filters out all the ones where "wm-source" contains "https://brid.gy/," which is super helpful.
From the #OSJH Blog: In this installment of our skills series, we share the skills and responsibilities required for platform engineers
https://opensourcejobhub.com/blog/overview-of-platform-engineering/
#skills #career #scripting #SoftwareDevelopment #DevOps #monitoring #infrastructure #debugging
Python : utiliser l’API de Mistral AI pour intégrer l’IA dans un projet https://www.it-connect.fr/guide-pour-utiliser-api-mistral-ai-en-python/ #Scripting #mistral #python #LLM #IA
Measuring times in bash.
- time: put in front of your command and it spits out some timing millisecond resolution, but you cannot capture the number to use it elsewhere
- starttime=$(date +%s%N) and same for endtime: this is expensive in the millisecond range, because the external command, date is run
- printf "%(%s)T" has only seconds resolution
Now I found "$EPOCHREALTIME". But set LC_NUMERIC=en first or lose.
https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#index-EPOCHREALTIME
For & ForEach Loop in PowerShell Tip #36 #softwareengineering #softwaredeveloper #LearnPowerShell #coding #csharp #CodingForBeginners #PowerShellScripting #Scripting
From the Linux Update newsletter: Marcin Gąstół shows you advanced shell scripting techniques for automation, optimization, and security.
https://www.linux-magazine.com/Issues/2025/292/Advanced-Shell-Scripting?utm_source=MLM
#Linux #Bash #scripting #automation #security #infrastructure