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

Archive for the ‘*nix-tools’ Category

Quit Nested SSH Sessions: use one more ~ for each nesting

Posted by jpluimers on 2024/11/18

Never too old to learn:

  • [Wayback/Archive.is] Quit Nested SSH Sessions

    works with ssh as well but is much simpler: press as many ~ as level of nest before . (by default, ~ is the escape character while . is to terminate ssh).

  • [Wayback/Archive.is] How can I break out of ssh when it locks? – Ask Ubuntu

    Notice that because hitting ~~ causes ssh to send the ~ instead of intercepting it, you can address N nested ssh connections by hitting ~ N times. (This only applies to ~s that directly follow an Enter.) That is to say that Enter~~~~~. terminates an ssh session 5 layers deep and keeps the other 4 intact.

So this is basically an extension of my 2017 blog post OpenSSH Escape Sequences (aka Kill Dead SSH Sessions) – The Lone Sysadmin (:

–jeroen

Posted in *nix, *nix-tools, Power User, ssh/sshd | Leave a Comment »

GitHub – oetiker/znapzend: zfs backup with remote capabilities and mbuffer integration.

Posted by jpluimers on 2024/10/14

I will likely need this one day: [Wayback/Archive] GitHub – oetiker/znapzend: zfs backup with remote capabilities and mbuffer integration.

Web-site: [Wayback/Archive] ZnapZend – open source ZFS backup with mbuffer and ssh support

--jeroen

Posted in *nix, *nix-tools, Power User, ZFS | Leave a Comment »

Downloading a file from the Windows console without first installing a command-line tool

Posted by jpluimers on 2024/10/09

Note that the below methods likely will cause security warnings if a Windows machine has been properly configured, but in most cases at least one of them works.

  1. using cURL (Widows 10 and up)
    curl --url https://speed.hetzner.de/100MB.bin --output %TEMP%\100MB.bin
  2. using [Wayback/Archive] certutil | Microsoft Docs (at least Windows 7 and up; needs UAC elevation)
    certutil.exe -urlcache -split -f https://speed.hetzner.de/100MB.bin %TEMP%\100MB.bin
  3. using PowerShell (at least Windows Vista and up)
    powershell.exe -Command (New-Object System.Net.WebClient).DownloadFile('https://speed.hetzner.de/100MB.bin','%TEMP%\100MB.bin')

I think it works for all versions of curl, certutil, and PowerShell though I did not have anything older than up-to-date Windows 7 (having PowerShell version 3) and recent to test on.

Read the rest of this entry »

Posted in *nix, *nix-tools, .NET, Batch-Files, CommandLine, cURL, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows, Windows 10, Windows 11, Windows 7, Windows 8, Windows 8.1, Windows Development, Windows Vista | Leave a Comment »

Attempting to stop Microsoft users sending ‘reactions’ to email from me by adding a postfix header

Posted by jpluimers on 2024/09/27

If you do not want Outlook kinds of clients spamming you, then add this header to your email messages above the Content-Type header (see [Wayback/Archive] The Message Content-Type in MIME)

x-ms-reactions: disallow

[Wayback/Archive] Attempting to stop Microsoft users sending ‘reactions’ to email from me by adding a postfix header

Via [Wayback/Archive] Kris: “x-ms-reactions: disallow http…” – chaos.social

x-ms-reactions: disallow

neilzone.co.uk/2024/07/attempt

Eine kleine Mailserver Config verhindert, daß Outlook Volldeppen meine Mailbox mit Likes spammen.

Sehr gut.

--jeroen

Posted in *nix, *nix-tools, Communications Development, Development, Internet protocol suite, Office, Outlook, postfix, Power User, SMTP | Leave a Comment »

infinite loop in “LaTeX: A Document Preparation System” by Leslie Lamport, printed in 1994.

Posted by jpluimers on 2024/09/10

Cover of "LaTeX: A Document Preparation System, 2nd edition", Published by Addison-Wesley Professional (June 30, 1994) © 1994, authored by Leslie Lamport

Cover of “LaTeX: A Document Preparation System, 2nd edition”, Published by Addison-Wesley Professional (June 30, 1994) © 1994, authored by Leslie Lamport

LaTeX was slightly later than the 1992 Turbo Pascal 7.0 Language Guide having both entry in the manual about Recursion (“recursive loop, see recursive loop”) which of course is similar to “infinite loop” and entries for “infinite loop See loop, infinite” and “loop, infinite See infinite loop”.

So what is LaTeX?

Where Donald Knuth created the typesetting program TeX (visually TeX), Leslie created a set of macros for it, later named LaTeX (visually LaTeX) and wrote the first (still famous) book – cover on the right – on it: [Wayback/Archive] LaTeX: A Document Preparation System by Leslie Lamport, second edition, printed in 1994 back then by Addison-Wesley (now Pearson Education, subsidiary of Pearson plc) with ISBN 9780201529838.

It’s gimmick was at page 252, inside the index referring “infinite loop” to page 252 itself.

Many people keep posting screenshots of the page without referencing where it is from. That’s a bit sad, as these gimmicks are an important part of history where programming books were as much about explaining features of computing environment, as well as explaining underlying concepts like recursion.

So this 2024 post finally made me write this blog post: [Wayback/Archive] vx-underground on X: “HELP!”

[Wayback/Archive] GTv89dwWsAM05wM.jpg (552×639)

Read the rest of this entry »

Posted in *nix, *nix-tools, ffmpeg, History, ImageMagick, LaTeX, pandoc document converter, Power User, Typesetting | Leave a Comment »

I’m not the only one storing tech gadgets in flight cases (:

Posted by jpluimers on 2024/09/05

It was about 2 years ago that Jilles reminded me I had a flight case with gadgets too.

Back when I assembled it in 2018, I had big plans for showing private “cloud” container experimentation and gadget stuff at conferences. Then 2019 kicked in with rectum cancer.

So it was good that he helped me motivating to get it working again, especially as the time around assembling it so much fun and working on it brought back those days.

Here are the pictures:

Read the rest of this entry »

Posted in *nix, *nix-tools, Cloud, Cloud Development, Containers, Debian, Development, Docker, GL-AR300M, GL.iNet, Hardware Development, Infrastructure, Kubernetes (k8n), Linux, openSuSE, Power User, Raspberry Pi, Raspbian, Software Development, SuSE Linux | Leave a Comment »

Cool nginx playground by b0rk (Julia Evans)

Posted by jpluimers on 2024/08/28

This is a really cool interactive [Wayback/Archive] nginx playground!

It starts with a default nginx configuration which you can edit and spins up a docker container for each run showing the results of that configuration.

How cool is that to learn how nginx works (:

This is how I found out about it:

Read the rest of this entry »

Posted in *nix, *nix-tools, Conference Topics, Conferences, Development, Event, nginx, Power User, Software Development, Web Development | Leave a Comment »

Some notes on codepoints.net and beta.codepoints.net

Posted by jpluimers on 2024/08/07

At the time of writing a lot of this might be more recent, but for quite some time codepoints.net had not been updated with code point information newer Unicode releases.

Basically it was stuck at Unicode version 8.0 with some 120k glyphs. At the time of writing Unicode version 15.0 is in beta and the difference between 15.0 and 8.0 is some 24k glyphs.

So I had a quick twitter chat with the author and jotted down the links in this blog post so I won’t forget them.

There I learned it was open source (I think it is the only Unicode codepoint site that is).

Here it goes:

Read the rest of this entry »

Posted in *nix, *nix-tools, Apache2, codepoints.net, Conference Topics, Conferences, Database Development, Debian, Development, DVCS - Distributed Version Control, Encoding, Event, GitHub, Linux, MySQL, PHP, Power User, Scripting, Software Development, Source Code Management, Unicode, Web Development | Leave a Comment »

Need to give this some thought: Poor Man’s Auto Update. by Chris Bensen | by Chris Bensen

Posted by jpluimers on 2024/07/23

Sometimes you need a relatively low-tech solution for updating.

I will need to give this some thought: [Wayback/Archive] Poor Man’s Auto Update. by Chris Bensen | by Chris Bensen | Jun, 2022 | Medium

Back then I posted some edits on Twitter which by now should be reflected in the script and GitHub repository at [Wayback/Archive] chris-blogs/PoorManAutoUpdate.md at main · chrisbensen/chris-blogs (with script at [Wayback/Archive] chris-blogs/updater.sh at main · chrisbensen/chris-blogs)

Read the rest of this entry »

Posted in *nix, *nix-tools, cron, Development, Hardware Development, Linux, Power User, Python, Raspberry Pi, Scripting, Software Development | Leave a Comment »

Tailscale SSH · Tailscale

Posted by jpluimers on 2024/07/12

Reminder to self to play around with [Wayback/Archive] Tailscale SSH · Tailscale

Tailscale SSH allows Tailscale to manage the authentication and authorization of SSH connections on your tailnet.

Read the rest of this entry »

Posted in *nix, *nix-tools, Hardware, Network-and-equipment, Power User, ssh/sshd, Tailscale, VPN, Wireguard | Leave a Comment »