How To Prevent Spotlight From Indexing External Drives on MacOS

Author: , February 26th, 2021

On MacOSX 10.10.5 Yosemite, I was having trouble with Spotlight preventing the clean eject of an attached hard drive. Using the fuser command allowed me to see that it what the Spotlight-specific mds process preventing the eject.

At first, I tried to disable the indexing via the mdutil command, but that just gave me […]

How To Stop MacOS Terminal From Freezing Upon Text Select

Author: , October 29th, 2020

First quit Mail, if open. In Terminal, enter the following to disable the Data Detectors which could be responsible for the hang:

How To Re-Install MacOS

Author: , October 11th, 2020

Format the new USB flash drive as Mac OS Extended (Journaled) and label it “MyVolume” Click the Mojave Download Link: https://itunes.apple.com/us/app/macos-mojave/id1398502828?ls=1&mt=12 Download the installer package from the App store – it will land in the main /Applications folder. Open Terminal and run:

Full article at Apple Support “How to create a bootable installer for […]

How To Fix DNS Lookup Issues on Macos Mojave 10.14.6

Author: , July 22nd, 2020

dscacheutil -flushcache System Preferences -> Network -> Advanced -> DNS -> Add 1.1.1.1, 8.8.4.4 and 8.8.8.8 at the top. If they are already there, CHANGE THE ORDER!

How To Install MySQL on MacOS Using Brew

Author: , April 5th, 2020

As a non-root user:

Make sure your PATH contains /usr/local/bin

How to Remove Skype for Mac

Author: , March 27th, 2020

Quit Skype From your Applications folder, drag the Skype icon into the Trash In the top Finder menu, select Go -> Go to Folder… or press Shift-Command-G to bring up the “Go to the folder” prompt Open ~/Library/Application Support and drag “Skype Helper” to the Trash Open ~/Library/Application Support/Microsoft and drag “Skype for Desktop” to […]

How To Remove the MacOS Quarantine Extended File Attribute for an Entire Directory Tree

Author: , November 24th, 2019

xattr -r -d com.apple.quarantine {dirname} ~or~ xattr -r -d com.apple.quarantine *

How To Read Multiple Lines of User Input from the Command Line in Perl

Author: , October 9th, 2019

Use Case: Export Apple Reminders from MacOS application to cleaned plain text, i.e. remove unwanted spaces, blank lines and square brackets PROCEDURE Click on a single item in the MacOS Reminders app list Select All (either Command-a or use Edit->Select All) Copy (either Command-c or use Edit->Copy) Open Terminal Run cleanme Paste the copied reminders […]

How To Fix File Sharing Problems in MacOS 10.14 Mojave

Author: , July 28th, 2019

When I upgraded to Mojave, my laptops were no longer able to connect to my desktop. Deeply frustrating. Long story short, combo of factors: – Mojave filesystems on disk now default to APFS containers – APFS filesystems can ONLY be shared out via SMB! – Hostname resolution in Mojave also seems broken So, the fix […]

How To Install/Update CPAN on MacOS Mojave with fatal error: ‘EXTERN.h’ file not found

Author: , June 12th, 2019

The Problem Tried to install the latest version of cpan and got stuck. Tracked it down to the dependency module Mac::SystemDirectory which was failing to build:

The Solution Use the MacOS installer command to deploy the needed files:

The, rerunning the cpan install works: