Archive for the ‘Mac OS X / OS X / MacOS’ Category
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: define | Leave a Comment »
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 »
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: 143 | Leave a Comment »
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:
- [WaybackSave/Archive] GitHub – shauninman/Little-Fingers: Little Fingers lets you lockdown keyboard and trackpad input with a globally accessible keyboard shortcut (open source)
- [Wayback/Archive] folivora.ai – Great Tools for your Mac! KeyboardCleanTool blocking all keyboard and TouchBar input. (free download)
- [Wayback/Archive] GitHub – jacklandrin/OnlySwitch: ⚙️ All-in-One menu bar app, hide 💻MacBook Pro’s notch, dark mode, AirPods, Shortcuts (open source and available as [Wayback/Archive] only-switch — Homebrew Formulae)
In Version 2.3, Only Switch brings a new feature, Screen Test. It provides a pure color view in full-screen mode, you can check dead pixels via it. Press the left and right arrow keys, the color will change from black, white, red, green, and blue. This functionality also can be used for screen cleaning, as you can see the stains on 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
- [Wayback/Archive] Fefes Blog: [l] Satire und Realität sind nicht mehr unterscheidbar. Heute: Apple.
- [Wayback/Archive] Für Tastaturhygieniker: So bleibt das MacBook beim Öffnen aus | heise online
- [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 »
Posted by jpluimers on 2025/01/21
Fork of a repository that shows how to do this with normal Homebrew installs [Wayback/Archive] Install an old version with homebrew for macOS · GitHub has my notes to do a similar thing with Homebrew cask installs.
Fork of: [Wayback/Archive] Install an old version with homebrew for macOS · GitHub.
TODO: check notes to ensure they really work on a different system and were not a lucky shot.
Notes:
Read the rest of this entry »
Posted in Apple, Development, DVCS - Distributed Version Control, gist, GitHub, Home brew / homebrew, Mac OS X / OS X / MacOS, Power User, Ruby, Scripting, Source Code Management | Tagged: 18365 | Leave a Comment »
Posted by jpluimers on 2025/01/03
[Wayback/Archive] Kris: “iTerm2 logged passwords …” – Infosec Exchange
iTerm2 logged passwords
If you are running iTerm2 on MacOS with ssh integration (it2ssh or Settings -> General -> Profiles, set to SSH instead of Command) you want to
- Upgrade
- Find
/tmp/framer.txt on all systems you generally log into and delete it
If you manage systems with MacOS users, good luck.
[Wayback/Archive] https://iterm2.com/downloads/stable/iTerm2-3_5_11.changelog affected versions:
Read the rest of this entry »
Posted in Apple, Mac OS X / OS X / MacOS, Power User | Leave a Comment »
Posted by jpluimers on 2024/12/18
While migrating from iTunes on one machine to Apple Music on another one, I needed to migrate part of the (disorganised) playlists.
I knew there was a binary ~/Music/iTunes/iTunes Library.itl file, but that is encoded or encrypted, making it hard to parse.
Luckily there is also ~/Music/iTunes/iTunes Music Library.xml which I found via the links below.
Read the rest of this entry »
Posted in Apple, Development, iTunes, Mac OS X / OS X / MacOS, Power User, Python, Scripting, Software Development, XML, XML/XSD | Leave a Comment »
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:
- readable name Jeroen’s Macbook Pro
- full name Jeroens-MacBook-Pro
- local hostname Jeroens-MacBook-Pro.local
- actual
hostname Jeroens-MBP
- 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 »