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 ‘Mac OS X / OS X / MacOS’ Category

Notes in case I want to create my own homebrew cask for installing software they disabled/removed

Posted by jpluimers on 2025/09/16

Some notes as it might enable me to install software that homebrew has deprecated or removed (note that local changes by default are ignored as the brew API takces precedence):

Despite the homebrew repository being a high commit-volume one which makes following it from a clone hard, just did already clone it Read the rest of this entry »

Posted in Apple, Development, DVCS - Distributed Version Control, GitHub, Home brew / homebrew, Mac OS X / OS X / MacOS, Power User, Ruby, Scripting, Software Development, Source Code Management, Versioning | Tagged: , | Leave a Comment »

command line – Why does a cURL request return a percent sign (%) with every request in ZSH? – Stack Overflow

Posted by jpluimers on 2025/07/31

I try to stay on the default shells of environments as much as possible, especially as that makes life easier when needing to work on an non-customised system.

Apple switched back from an ancient latest GPLv2 version 3.2 of bash (they regard newer GPLv3 as toxic to their revenue stream¹), introduced MIT-license based zsh and introduced a bash nag screen a few years ago forcing users to switch. Suppressing that message reliably is trickier than you might think².

After so many years of bash, I still stumble over things that zsh does differently: [Wayback/Archive] command line – Why does a cURL request return a percent sign (%) with every request in ZSH? – Stack Overflow (thanks [Wayback/Archive] Travis and [Wayback/Archive] zaTricky) is a “feature” with a simple workaround for cURL:

This is a zsh feature that prints a percent-and-newline after a command completes if that command does not already include a newline at the end of its output. If zsh did not do this, you would either not ever notice the fact that the command didn’t print a newline – or you’d see zsh’s command prompt not start on the margin and think it was a bug in zsh.

$ curl http://api.macvendors.com/0015c7   
Cisco Systems, Inc%     
$ curl -w '\n' http://api.macvendors.com/0015c7
Cisco Systems, Inc

Since the above example now writes a redirect messages (good bye HTTP, welcome HTTPS), and I very much dislike short command-line parameters, here is version with the long form of the [Wayback/Archive] curl -w or --write-out parameter :

Read the rest of this entry »

Posted in *nix, *nix-tools, Apple, bash, bash, Development, Mac OS X / OS X / MacOS, macOS 14 Sonoma, macOS 15 Sequoia, Power User, Scripting, Software Development, zsh | Leave a Comment »

Running Android applications on Apple Silicon: is the Android Emulator from Android Studio the only option?

Posted by jpluimers on 2025/06/13

On my research list: running Anrdoid apps on Apple Silicon.

I wonder if using the Anrdoid Emulator from Android Studio the only straightforward option.

Links:

Read the rest of this entry »

Posted in Apple, Apple Silicon, ARM Mac, M1 Mac, Mac, Mac OS X / OS X / MacOS, MacBook, macOS 14 Sonoma, Power User | Leave a Comment »

Interesting take by Florian Roth on Twitter: “First security application I install on … “” covering various platforms (both server and workstation) with tools that are easy and quick to install

Posted by jpluimers on 2025/05/26

[Wayback/Archive] Florian Roth on Twitter: “First security application I install on … macOS: LittleSnitch Linux Server: Fail2ban Linux Workstation: etckeeper Windows Workstation: GlassWire Windows Server: Sysmon — What are yours?”

Full thread at [Wayback/Archive] Thread by @cyb3rops on Thread Reader App

Some interesting responses to the original tweet, hence me saving it.

–jeroen

Posted in *nix, *nix-tools, Apple, BSD, FreeBSD, Mac OS X / OS X / MacOS, Power User, Windows | Leave a Comment »

GitHub – walles/moar: Moar is a pager. It’s designed to just do the right thing without any configuration.

Posted by jpluimers on 2025/05/08

Having used less for 40+ years now, I wonder how moar measures up to it: [Wayback/Archive] GitHub – walles/moar: Moar is a pager. It’s designed to just do the right thing without any configuration.

Features I at least expect are in [Wayback/Archive] less: display the contents of a file in a terminal | less Commands | Man Pages | ManKier.

Via [Wayback/Archive] Johan Walles recently commenting on [Wayback/Archive] linux – How can I have less automatically decompress xz files like it did with gz files on my old SUSE distro? – Super User.

--jeroen

Posted in *nix, *nix-tools, Apple, BSD, Development, Go (golang), Mac, Mac OS X / OS X / MacOS, Power User, Software Development | Leave a Comment »

Exporting Chrome History (with the “new” configuration and state file structure), and Epoch dates on various systems

Posted by jpluimers on 2025/05/02

Quite a while ago, Chrome moved from a structure based on “Current Session“, “Current Tabs“, “Last Session” and “Last Tabs” into “Session_#################” and “Tabs_#################” stored in a “Sessions” folder (and similar migrations for other state and configuration files).

The numbers in the “Session_*” and “Tabs_*” files are time stamps of those sessions, for instance one needs to figure out what the “13310808970819630” in “Session_13310808970819630” and “Session_13310808970819630” means.

Lot’s of web-pages with tips and tricks around the old structures are still around, often surfacing high in Google Search results.

I was interested in a particular trick to export Google Chrome browsing history and had a hard time figuring out the easiest solution.

Read the rest of this entry »

Posted in Apple, Batch-Files, Chrome, Chrome, Database Development, Development, Google, JavaScript/ECMAScript, Mac OS X / OS X / MacOS, NirSoft, Polyglot, Power User, Scripting, SQLite, Web Browsers, Windows, Windows 10, Windows 11 | Tagged: | Leave a Comment »

How I Setup My Mac – Liam Beeton

Posted by jpluimers on 2025/04/18

Inspiration: [Wayback/Archive] How I Setup My Mac – Liam Beeton

Via

--jeroen

Posted in Apple, Apple Silicon, ARM Mac, M1 Mac, Mac, Mac OS X / OS X / MacOS, macOS 14 Sonoma, Power User | Leave a Comment »

Parallel hashing on MacOS

Posted by jpluimers on 2025/04/14

Now that I have had an Apple silicon for a while, which has enough cores to perform parallel work, this is how I calculated a bunch of hashed from a lot of large files:

  • find . -type f | xargs -P 0 -n 1 md5 -r
  • find . -type f | xargs -P 0 -n 1 shasum --algorithm 1
  • find . -type f | xargs -P 0 -n 1 shasum --algorithm 256

I contemplated about using GNU parallel, but that is not installed by default on MacOS and I was already familiar with xargs.

Argument meanings can be found at these locations:

Related:

Read the rest of this entry »

Posted in *nix, *nix-tools, Apple, Apple Silicon, ARM Mac, M1 Mac, Mac, Mac OS X / OS X / MacOS, Power User, xargs | Leave a Comment »

I was today years old when I found there is a shortcut to switch to the Terminal tab in Visual Studio Code

Posted by jpluimers on 2025/03/12

Boy, I always to the Ctrl+Shift+Space on Microsoft Windows (or on MacOS Command+Shift+Space) detour to switch to the Terminal tab in Visual Studio Code

So I was amazed to find the shortcut inside the first bullet in the Google Search quote of the first result at [Wayback/Archive] vscode terminal open new terminal – Recherche Google:

Read the rest of this entry »

Posted in .NET, Apple, Development, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, Mac OS X / OS X / MacOS, Power User, Software Development, Terminal, vscode Visual Studio Code, Windows, Windows Terminal | Tagged: | Leave a Comment »

Prevent a Mac laptop from turning on when opening its lid or connecting to power – Apple Support

Posted by jpluimers on 2025/02/04

For cleaning an Apple Silicon MacBook there were already solutions to either disable the keyboard or to blacken the screen:

For keeping a Mac turned off however, there hadn’t been a solution for a long time.

Now there is, but you need to have the most recent update of macOS Sequoia 15 by adding a nvram BootPreference setting: [Wayback/Archive] Prevent a Mac laptop from turning on when opening its lid or connecting to power – Apple Support

Via

  1. [Wayback/Archive] Fefes Blog: [l] Satire und Realität sind nicht mehr unterscheidbar. Heute: Apple.
  2. [Wayback/Archive] Für Tastaturhygieniker: So bleibt das MacBook beim Öffnen aus | heise online
  3. [Wayback/Archive] Created a Keyboard Lock App for Safe Cleaning—Seeking Your Thoughts and Feedback! 🚀🔧 : macapps

--jeroen

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