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

Archive for December, 2024

Link archive: Windows PSBits/PasswordStealing/NPPSpy at master · gtworek/PSBits

Posted by jpluimers on 2024/12/12

Simple (but fully working) code for NPLogonNotify(). The function obtains logon data, including cleartext password.

[Wayback/Archive] PSBits/PasswordStealing/NPPSpy at master · gtworek/PSBits has been used in the wild since about 2022 (the code is from 2020).

The code is a ~100 line C file resulting in a DLL exporting the NPGetCaps() and NPLogonNotify() functions.

Background/related:

Read the rest of this entry »

Posted in .NET, Blue team, C, CommandLine, Development, Power User, PowerShell, PowerShell, Red team, Scripting, Security, Software Development, Windows Development | Tagged: | 1 Comment »

Unicode: Keyboard Symbols ⌘ ↵ ⌫

Posted by jpluimers on 2024/12/11

I wish I had bumped into this page a way sooner as it contains most if not all the keyboard symbols I ever looked for: [Wayback/Archive] Unicode: Keyboard Symbols ⌘ ↵ ⌫

The page contains a lot more than just this diagram (which already is a great start):

⎋
 ` 1 2 3 4 5   6 7 8 9 0  - = ⌫    ⎀ ⤒ ⇞
 ⇥ Q W E R T   Y U I O P  [ ] \    ⌦ ⤓ ⇟
 🄰  A S D F G   H J K L ;  ' ↵
 ⇧   Z X C V B   N M , . /  ⇧        ↑
 ⎈ ❖ ⎇    ␣    ⎇ ❖ ▤ ⎈           ← ↓ →

🌐 ⌃ ⌥ ⌘

Some more symbols are at these pages:

Read the rest of this entry »

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

CAPTCHA by Basic Apple Guy on X: “Find the Mac Pro (5th anniversary edition) 🔍 1949 cheese graters, 1 of them is a Mac Pro”

Posted by jpluimers on 2024/12/11

Next level CAPTCHA which AI engines fail at [Wayback/Archive] Basic Apple Guy on X: “Find the Mac Pro (5th anniversary edition) 🔍 1949 cheese graters, 1 of them is a Mac Pro”

The low res versions are impossible for me, and even the high-res picture is tough.

What is the smallest size you can find the Mac Pro? Picture on the right for reference.

Twitter picture sizes (I will explain them in a future blog post) via [Wayback/Archive] Tweet  JSON:

Read the rest of this entry »

Posted in AI and ML; Artificial Intelligence & Machine Learning, Development, Fun, Software Development | Leave a Comment »

How To Scale and Crop Images with CSS object-fit | DigitalOcean

Posted by jpluimers on 2024/12/11

[Wayback/Archive] How To Scale and Crop Images with CSS object-fit | DigitalOcean helped me to crop the picture in Florian Haas on Twitter: alias kubectl=”TZ=Etc/UTC kubectl”; You’re welcome.

The picture itself is 800 * 800 pixels (width * height), but the interesting bits are 400 * 200 around the center. Also it is a lot larger than I wanted.

So I embedded it using this HTML

<img class="alignnone size-full" style="width: 200px; height: 100px; object-fit: cover; object-position: 0 50%;" src="https://archive.ph/frSNu/0f0ebeeb5a4edf048577be89adb866344b303394.jpg" alt="" />

The width made it 25% the original size (because of [Wayback/Archive] object-fit value cover), and half the height so I had to move the [Wayback/Archive]object-position up 50%.

I found this via [Wayback/Archive] image inline css to crop top and bottom – Google Search.

That also found [Wayback/Archive] html – while display image crop Top and Bottom of image using css – Stack Overflow with an example at [Wayback/Archive] Edit fiddle – JSFiddle – Code Playground which is similar to the above solution.

--jeroen

 

Posted in CSS, Development, HTML, HTML5, Software Development, Web Development | Leave a Comment »

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 »