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,860 other subscribers

Some links on Windows kernel APIs

Posted by jpluimers on 2024/12/10

Links from a while ago because some crash caught my eye:

Read the rest of this entry »

Posted in Development, Software Development, Windows Development | Leave a Comment »

Florian Haas on Twitter: alias kubectl=”TZ=Etc/UTC kubectl”; You’re welcome

Posted by jpluimers on 2024/12/10

Sometimes you need to see a tiny bit of code to have this “aha moment”. One for me was a few years back:

[Wayback/Archive] Florian Haas on Twitter: “alias kubectl="TZ=Etc/UTC kubectl" You’re welcome.”

Read the rest of this entry »

Posted in *nix, *nix-tools, Cloud, Containers, Docker, Infrastructure, Kubernetes (k8n), Power User | Leave a Comment »

A Dutch friend got a 2nd hand Lenovo with a keyboard layout I didn’t know: searching for the special keys did not return results

Posted by jpluimers on 2024/12/09

TL;DR: it was a Dutch keyboard, which almost nobody in The Netherlands uses (US or US-International are the most used physical keyboard layouts over there)

I tried searching for keyboard layouts using Google with these special keys that were present on the keyboard (listing all keys that either have special symbols on them, or use the Alg-Gr modifier):

Read the rest of this entry »

Posted in Hardware, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, LifeHacker, Power User | Leave a Comment »

Why does HTML think “chucknorris” is a color?

Posted by jpluimers on 2024/12/09

From a long time ago:

–jeroen

Read the rest of this entry »

Posted in Color (software development), Development, Software Development, Web Development | Leave a Comment »

20240507 – Brand Elektrakast/Transformatorhuis Liander Ringvaartzijde/Grevelingstraat Lisse – Google Photos

Posted by jpluimers on 2024/12/06

Eind voorjaar 2024 was er brand in een elektrakast en transformatorhuis van Liander op Ringvaartzijde 22 in Lisse. Die stond er nog maar kort: volgens ooggetuigen enkele maanden.

De hulpdiensten hebben samen met de monteurs van Liander ontzettend hun best gedaan om de schade te beperken en op een zo veilig mogelijke manier zo snel mogelijk iedereen weer aangesloten te krijgen.

Ons huist vanaf ongeveer een half uur na de eerste melding tot etenstijd geen stroom, maar anderen waren minder gelukkig.

Een deel van de laatste groep is nu aangesloten op een noodaggregaat in afwachting van een definitieve oplossing.

Ik maakte wat foto’s: [Wayback/Archive] 20240507 – Brand Elektrakast/Transformatorhuis Liander Ringvaartzijde/Grevelingstraat Lisse – Google Photos maar was zeker niet de enige.

De P2000 meldingen terugvinden is een eitje. De Liander meldingen terugvinden is een heel ander verhaal omdat de referentienummers die Liander in hun Tweets gebruikt op de site niet meer werken, terwijl de site onder water naar het ARCGIS backend juist wel van die referentienummers gebruikmaakt, en ook in de naamgeving van de UI die daaruit gegenereerd wordt.

Dit soort URLs werkte vroeger (zie Liander URLs for outages (Dutch: storingen)):

Read the rest of this entry »

Posted in About, Personal | Leave a Comment »

Pricing | Better Uptime

Posted by jpluimers on 2024/12/06

Reminder to show how well my experimentation with [Wayback/Archive] Better Uptime went and how they compare to [Wayback/Archive] UptimeRobot.

For now I am at this plan in [Wayback/Archive] Pricing | Better Uptime:

Free:

  • e-mail alerts
  • 3-minute checks
  • 10 monitors

This suffices to keep an eye on the modest IT infrastructure at both our home and the one from my mentally retarded brother.

Note that other prices on that pages are per month. Despite the default selection being “annual plan” the very light grey and thin “/mo” on a black ground indicates they are still per month, but you get 20% discount with the annual plans).

Read the rest of this entry »

Posted in *nix, Amazon SES, Amazon.com/.de/.fr/.uk/..., BetterUptime, Cloud, Infrastructure, Monitoring, Power User, Uptimerobot | Leave a Comment »

I really dislike MacOS choosing machine names, and having the long machine names and short hostnames in separate places to change (one of them command-line only)

Posted by jpluimers on 2024/12/05

After installing my Apple Silicon MacBook, I found out my machine had gotten named automatically in two different ways:

  1. readable name Jeroen’s Macbook Pro
  2. full name Jeroens-MacBook-Pro
  3. local hostname Jeroens-MacBook-Pro.local
  4. actual hostname Jeroens-MBP
  5. HostName from scutil

A few reasons I dislike that:

  • Having 5 different names for the same machine creates a mess
  • They chose for me where I like to choose myself
  • They use spaces, quotes and hyphens where I like single a complete word
  • They use mixed case where I like single case (preferably lower case) as not all other computers handle mixed case well

Finding out how to fix all this was a tedious job as I had to keep refining queries:

Read the rest of this entry »

Posted in Apple, Apple Silicon, ARM Mac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook-Pro, Power User, Terminal | Leave a Comment »

Save the Environment (Variable)

Posted by jpluimers on 2024/12/05

For my link archive as this is environment variable override trick to override DLL loading is not just limited to executables shipping with Windows, but also with other products (likely: virus scanners that run privileged); another alternative is running a local process serving the WebDAV protocol.

Read the rest of this entry »

Posted in Development, Power User, Security, Software Development, Windows, Windows 10, Windows 11, Windows Development | Tagged: | Leave a Comment »

IMAGE_FILE_HEADER (winnt.h) – Win32 apps | Microsoft Learn: IMAGE_FILE_UP_SYSTEM_ONLY flag (not what you think it means)

Posted by jpluimers on 2024/12/04

Need to write a tool for this that sets/clears the ………… flag in the PE .EXE header.

Officially it is for this:

[Wayback/Archive] IMAGE_FILE_HEADER (winnt.h) – Win32 apps | Microsoft Learn

IMAGE_FILE_UP_SYSTEM_ONLY
0x4000
The file should be run only on a uniprocessor computer.

In practice, this sets the affinity to 1 single CPU core (which is kind of random, and could change each time you start the executable).

This is ideal for code that is known for causing trouble executing on multiple cores, or – more importantly – to disallow core-switching for programs that give best performance when executed on a single core.

Via: [Wayback/Archive] Thread by @0gtweet on Thread Reader App – Did you ever hear about IMAGE_FILE_UP_SYSTEM_ONLY flag in NtHeader->FileHeader->Characteristics of an exe file?

Read the rest of this entry »

Posted in Development, Software Development, Windows Development | Leave a Comment »

Hijack Libs

Posted by jpluimers on 2024/12/04

Interesting for both red teams and blue teams: [Wayback/Archive] Hijack Libs

This project provides an curated list of DLL Hijacking candidates. A mapping between DLLs and vulnerable executables is kept and can be searched via this website. Additionally, further metadata such as resources provide more context.

Read the rest of this entry »

Posted in Blue team, Development, Power User, Red team, Security, Software Development, Windows Development | Leave a Comment »