This video was helpful in getting me started on writing my own bash script to automate the process of creating ZFS snapshots and doing backups to my home server.
[Video starts at 9:45 where the scripting begins]...
This video was helpful in getting me started on writing my own bash script to automate the process of creating ZFS snapshots and doing backups to my home server.
[Video starts at 9:45 where the scripting begins]...
New release from @linuxexpert: SysAdminAutomation-py – a modern Python-based toolkit that replaces your old Bash scripts with clean, portable, cross-platform code.
It kind of annoys me when I see people using:
``
In the early 2000s, I wrote a script for 3ds Max to automate tasks of the V-Ray renderer. Very imaginatively, I named it The V-Ray Automator.
It was covered as one of the 100 best MaxScripts in the French Pixel magazine.
Weekend goal: a #Lua chunk (script) to help sighted users review #Braille. It's a great way to understand how visually impaired users interact with a computer using a screen reader and a Braille display. The script is simple and easy to configure. Currently, it offers a learning mode; in the future, a challenge mode will be added, along with a blog post explaining how to set it up.
Link: https://gitlab.com/-/snippets/4858299
On #FreeBSD it should be executable via flua:
% flua learnbraille.lua
after installing liblouis:
# pkg install liblouis
[edit] % /usr/libexec/flua learnbraille.lua
RunAs Radio Episode #985 - PowerShell 7.5 and DSC 3.0.0 with Jason Helmick and host Richard Campbell.
New Kitten Release
(Run `kitten update` to update your dev machines. Production machines will automatically update in a couple of hours.)
• You can now add a generic script block to your markdown pages (see https://mastodon.ar.al/@aral/114432417394114105)
• Markdown pages can now be `KittenPage` instances and attach `KittenComponent` instances (so you get a full server-side component hierarchy with an event-based workflow; ideal for authenticated pages where you can be use only the author of the page will be accessing them and thus the additional memory and processing overhead are not issues. Isn’t the Small Web great? Only having instances of one makes it possible to optimise so many things for the human experience instead of vertical scale of the data farming machine.)
• Two new examples showcase the new features: https://codeberg.org/kitten/app/src/branch/main/examples/streaming-html/markdown-script-simple-components and https://codeberg.org/kitten/app/src/branch/main/examples/streaming-html/markdown-kitten-components
• Attributes with object values are no longer serialised into the DOM (but your components’ render functions will continue to receive them, of course.) This is because only string values make sense for attributes in the context of the HTML DOM. (You can still, of course, have stringified representations of objects in attributes, as used by the `data` attribute to pass data from nodes to event handers on the server.)
Well, after writing 25,000 characters (and no end), I decided that my #moss special for the podcast comeback will come in two parts. There's so much fascinating to tell about #mosses! *At least* one hour for the first part.
Now I need a short brain break outside in nature ... then back to #scripting. With a big coffee.
Today I learned from the flock(1) man page (on Debian) that you can put this line at the top of a shell script to prevent more than one copy of it from ever running at a time:
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" || :
This is an extremely clever hack and I don't know how I've never stumbled upon it in 38 years of writing shell scripts.
#unix #linux #scripting #shellScripting
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.
Idea for a debugging script
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
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.
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.
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.
Кажется, я ебанулся и ввязался в достаточно титаническую работу над очередным выпуском @sporadic_podcast, который будет интересен полутора инвалидам кроме меня.
В этот раз это - сценарная работа, а не диалоговый жанр. Рассказчиком буду выступать только я. Это делает задачу сложнее по всем фронтам.
Но мне это интересно и поэтому я надеюсь, что смогу закончить этот эпизод.
Из интересного - я хочу сделать из этого очередной мини-коллаб чтобы вы могли услышать знакомые по федивёрсу голоса и улыбнуться.
Ну и да, это должно быть этакое эссе на тему, которая практически гарантированно никому не приходила в голову.
Friends, I find myself attempting to copy a BOATLOAD of Microsoft OneDrive files from one user to another... I really don't want to download then upload all these darn files.
I was hoping there'd be some kind of elegant #PowerShell script I could leverage, but I've only found 1 thing that is even remotely close - https://grumpy.tech/uploading-migrating-files-to-onedrive-using-powershell/.
Does anybody know an easy way to copy or move files DIRECTLY between 2 OneDrive users?
Thanks...