The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,830 other subscribers

Archive for the ‘Scripting’ Category

GitHub – Botspot/bvm: Windows 11 Virtual Machine on ARM Linux

Posted by jpluimers on 2026/07/27

This is way easier than I thought (but you need Raspberry Pi 5 or it will be dead slow on earlier models): [Wayback/Archive] GitHub – Botspot/bvm: Windows 11 Virtual Machine on ARM Linux

And yes, there are other write-ups for doing this, but this repository is so much easier and reliable than the others.

Did not test it outside of Raspbian yet, so not sure on which other distributions it runs. It will likely run on more plainDebian, but my guess is that Fedora, Ubuntu, OpenSuSE and others will be out.

Oh: better use NVMe instead of MicroSD for speed too.

Via:

--jeroen

Posted in *nix, *nix-tools, bash, CommandLine, Development, Power User, PowerShell, Scripting, sh, Sh Shell, Windows, Windows 11 | Leave a Comment »

“You need to learn to delegate” … That’s not always easy due to a variety of situations out of one’s control : @hhariri on Thread Reader App

Posted by jpluimers on 2026/07/24

A year ago, Hadi Hariri wrote this very important Tweet which I preserved through [Wayback/Archive] Thread Reader App because the Space Karen hates the Wayback Machine so much that it still can’t archive tweets ¹:

[Wayback/Archive] Thread by @hhariri on Thread Reader App

“You need to learn to delegate”

Learning to delegate is not that hard. Delegating, and doing it successfully on the other hand, requires having the right people to delegate to.

That’s not always easy due to a variety of situations out of one’s control.

Luckily, Archive.is can still archive Tweets, so here is the original one: [WaybackSave/Archive] Hadi Hariri on X: “”You need to learn to delegate” Learning to delegate is not that hard. Delegating, and doing it successfully on the other hand, requires having the right people to delegate to. That’s not always easy due to a variety of situations out of one’s control.”

 

Anyway, I responded with my story, which I archived too, but this time because Twitter does not allow viewing threads as an anonymous user since 2021: [Wayback/Archive] Twitter won’t show complete threads now without an account. :( Twitter accounts … | Hacker News.

My story [Wayback/Archive] Thread by @jpluimers on Thread Reader App

@hhariri Especially when explaining what and how to a delegatee is taking more time/energy/effort than doing it yourself.

Still training the new internal care of my brother. Costs less energy than last year, but back then the old “ambulant” care took 2 hours and then “it was OK”.

@hhariri Weekly I try to figure out what happened then hours re-explaining “treat him like he is: mentally a 3 year old with autism in a full grown body that seems to speak Dutch very well, but does not really understand what he says. So what he says is different from what he wants/needs”

@hhariri And for “normal work”, the life long job is to keep explaining that doing things right the first time saves a lot of effort.

@hhariri And yes, there is hindsight when at the time you did things, you didn’t know there was or would become a better way, or that the current situation changed.

Those are valid reasons for redoing things later, but not valid reasons for not even trying to do it right the first time.

In case you have a Twitter account, you can find the thread start at [WaybackSave/Archive] Jeroen Wiert Pluimers @wiert@mastodon.social on X: “@hhariri Especially when explaining what and how to a delegatee is taking more time/energy/effort than doing it yourself. Still training the new internal care of my brother. Costs less energy than last year, but back then the old “ambulant” care took 2 hours and then “it was OK”.”

--jeroen

¹ sometimes it archives something of the tweet, in this case the [Wayback/Archive] Tweet JSON which you normally would get through the Twitter CDN like [Wayback/Archive] Tweet JSON (I wrote about creating a JavaScript Bookmarklet for this method in Probably many more like these are needed to download Twitter videos: [extractor/twitter] Fix unauthenticated extraction by bashonly · Pull Request #7476 · yt-dlp/yt-dlp).

Posted in About, Awareness, Bookmarklet, Development, JavaScript/ECMAScript, LifeHacker, Personal, Power User, Scripting, Software Development, Web Browsers | Tagged: | Leave a Comment »

Forensics: Automating Active Directory Account Lockout Search with PowerShell (an example of deep XML filtering of event logs across multiple servers in parallel) – where the images disappeared from blogs.technet.microsoft.com

Posted by jpluimers on 2026/07/22

Yes, the text of this post is still on [Wayback/Archive] Forensics: Automating Active Directory Account Lockout Search with PowerShell (an example of deep XML filtering of event logs across multiple servers in parallel) | Microsoft Learn but the original images from blogs.technet.microsoft.com as well as the code snippet got lost due to link rot and incomplete migration. I restored the blog post with comments from the Wayback Machine archives.

I needed the images and the snippet to be able to write future blog post Some links on getting the most recent defragmentation time of a Windows volume hat is appearing in a week or so.

The script is downloadable from LockoutEventsXML.ps1 or via [Wayback/Archive] TechNetGalleryArchive/LockoutEventsXML.ps1 at master · GoateePFE/TechNetGalleryArchive · GitHub at [WaybackSave/Wayback/Archive] github.com/GoateePFE/TechNetGalleryArchive/raw/refs/heads/master/LockoutEventsXML.ps1 by [Wayback/Archive] GoateePFE (Ashley McGlone) · GitHub.

Note the blog post uses @" strings – with $using.variable to pass local variables to remote sessions. See these entries for more information about that topic:

Queries:

Read the rest of this entry »

Posted in .NET, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Tagged: , , , , , , | Leave a Comment »

bluesky-social/social-app: The Bluesky Social application for Web, iOS, and Android

Posted by jpluimers on 2026/07/21

Took me a while to notice this is open source: [Wayback/Archive] bluesky-social/social-app: The Bluesky Social application for Web, iOS, and Android

Via [Wayback/Archive] Gergely Orosz on Twitter: “Wow. The other Blue site open sourced their app (The protocol is already open sourced) Unlike Twitter’s recommendation algorithm that is a fork (and not the real thing), both these are the prod thing. This developing in the open is new, and encouraging! “

Related:

–jeroen

Posted in BlueSky, Development, JavaScript/ECMAScript, Scripting, SocialMedia, Software Development, TypeScript | Leave a Comment »

yewtu.be is an invidious instance with an easy to remember domain name. | Hacker News

Posted by jpluimers on 2026/07/16

Learned this a while ago as someone linked to a video on it: [Wayback/Archive] yewtu.be is an invidious instance with an easy to remember domain name. | Hacker News

[Wayback/Archive] yewtu.be: Invidious

Related:

Queries:

–jeroen

Posted in Development, JavaScript/ECMAScript, Power User, Scripting, SocialMedia, Software Development, YouTube | Leave a Comment »

GitHub – breakzplatform/downloader.notx.blue

Posted by jpluimers on 2026/07/14

Interesting, as this seems to handle all actions client-side: [Wayback/Archive] GitHub – breakzplatform/downloader.notx.blue

Hosting is at two sites:

The code is a tiny HTML wrapper around about 1000 lines of JavaScript (plus a few hundred lines of minified [Wayback/Archive] GitHub – ffmpegwasm/ffmpeg.wasm: FFmpeg for browser, powered by WebAssembly JavaScript code). Impressive!

Via [Wayback/Archive] notx.blue – Projetos do Joselito para o Bluesky

--jeroen

Posted in BlueSky, CSS, Development, ffmpeg, HTML, HTML5, JavaScript/ECMAScript, Media, Scripting, SocialMedia, Software Development, Video, Web Development | Leave a Comment »

A bit of perl trickery (or why you don’t should just execute any code you find on-line)

Posted by jpluimers on 2026/07/09

[Wayback/Archive] A bit of perl trickery shows a great example why you should only code you understand.

It explains the innards of a classic trap luring people into execute some obfuscated code, in this case Perl based.

Which makes it yet another testament to not blindly download and execute stuff from the internet.

So be aware when you see obfuscated scripts and things luring you into:

Be even more alert when these require elevated access (like running under sudo).

Via: [Wayback/Archive] Leo Bicknell on Twitter: “@jpluimers @IanColdwater Executes “rm -rf /”. This is ancient Perl monks way of teaching people not to run programs they don’t understand as root. … But hey, these days people “curl -o – url | bash”. It’s surprising that isn’t exploited more.”

Which was response to me asking what the below code did that was fully misunderstood by ChatGPT (which is Large Language Model based on a large corpus of natural language, not a small corpus of evil red-team programming language code snippets) to a series of Tweets by Ian Coldwater.

Read the rest of this entry »

Posted in *nix, *nix-tools, ash/dash, bash, bash, CommandLine, Development, Perl, Power User, PowerShell, PowerShell, Python, RegEx, Scripting, sh, Software Development | Leave a Comment »

microsoft/pyright: Static Type Checker for Python

Posted by jpluimers on 2026/07/07

I will likely need this one day: [Wayback/Archive] microsoft/pyright: Static Type Checker for Python

Via:

  1. [Wayback/Archive] Julia Evans on Twitter: “I wish there was something like pyright for Javascript — I love how pyright will tell me about type errors even if I don’t add *any* type annotations in my code at all github.com/microsoft/pyright (I assume you can’t make pyright-for-JS because Typescript is a different language)”
  2. [Wayback/Archive] Julia Evans on Twitter: “Also I think the reason pyright works so well even if I don’t add type annotations is that a lot of the Python library code I’m depending on actually does have type annotations, so it can use those”

--jeroen

Posted in Agile, Code Quality, Development, Python, Scripting, Software Development | Leave a Comment »

PowerShell script useful for playing back in Cartrain CP7##BMW devices (currently CP700BMW, CP730BMW, CP740BMW) as these play back in the order in which directories and files have been created.

Posted by jpluimers on 2026/06/10

[Wayback/Archive] This is useful for playing back in Cartrain CP7##BMW devices (currently CP700BMW, CP730BMW, CP740BMW) as these play back in the order in which directories and files have been created. which is related to Elektronik-Idee – CP740BMW – USB wireless MP3 Player (with Bluetooth and Audio/Video in support) and fully PowerShell 2.0 compatible:

Script to recursively copy directories in alphabetical order from source-base-directory to destination-base-directory
while adding an intermediate directory with a single uppercase letter in destination-base-directory for 
each set of directories under source-base-directory starting with that letter.

This is useful for playing back in Cartrain CP7##BMW devices (currently CP700BMW, CP730BMW, CP740BMW)
as these play back in the order in which directories and files have been created, as per:

- https://www.cartain.de/downloads/cp740bmw/CP740BMW-OM.pdf

  Unterordner sind hervorragend geeignet um Musik besser zu organisieren. Dateinamen und Unterverzeichnis sind in der Reihenfolge gleichgestellt. Die Wiedergabe der Titel in sämtlichen Unterordnern erfolgt der Reihe nach wie sie auf den USB Stick kopiert wurde

- https://www.cartain.de/downloads/cp740bmw/CP740BMW-OM-EN.pdf

  Sub folders are a good possibility to organize your music collection. The order of playback is the same order you copied the files onto the card.

- https://www.cartain.de/downloads/cp730bmw/CP730BMW-OM.pdf
- https://www.cartain.de/downloads/cp730bmw/CP730BMW-OM-EN.pdf

–jeroen

Read the rest of this entry »

Posted in .NET, CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development, Windows Development | Leave a Comment »

MeshCore – Off grid mesh radio communications system

Posted by jpluimers on 2026/06/02

In a world where it becomes increasingly important to think and act on situations where for various communication via traditional means is not that easy any more, then LoRa (Long Range) wireless networks have been steadily gaining ground: they use open frequencies and for some of these networks, their repeater structure is largely ran by communities of volunteers.

Both communities and devices have evolved so far that its not just for early adopters any more: mere mortals can use it too.

In the LoRa area, MeshCore looks to have become the successor of Meshtastic:  [Wayback/Archive] MeshCore – Off grid mesh radio communications system.

The core difference between these two LoRa networks is explained in the Wikipedia article on MeshCore:

MeshCore is often compared with other LoRa-based mesh networking systems such as Meshtastic. While Meshtastic primarily relies on broadcast-style message flooding, MeshCore emphasizes structured routing roles and store-and-forward mechanisms, resulting in different scalability and energy-consumption characteristics.

Communication over the MeshCore network reminds me a lot of three things, in this chronological order:

I think about everything of MeshCore is open source; mostly hosted in the hierarchy at [Wayback/Archive] MeshCore · GitHub.

MeshCore is fairly young which means it will have growth pains, and some hardware pains (like a node being limited to about 500 messages/hour because of physical bandwidth limitations – smaller cells work better than the FidoNet hub/spoke model – see the Dutch section below) but it also cool to see it evolving.

This blog post is going to be long, as a lot of MeshCore information is spread around the interwebz, so there is a lot to link to.

Read the rest of this entry »

Posted in Development, Hardware, IoT Internet of Things, LoRa - Long Range wireless communications network, Network-and-equipment, Power User, Python, Scripting, Software Development, Solar Power | Tagged: , , , , , , , , , , , , , | Leave a Comment »