How to Find the EDID UUID of External Mac Monitors

You can issue the following command on an Apple Mac’s terminal to show the EDID UUID (unique serial number) of all attached external monitors: ioreg -l | grep EDID

December 9, 2022 · 1 min · 29 words · Andrew

How to Disable Screensaver on Mac using the CLI

If you want to disable the Screensaver on your Mac, by using the Command Line Interface (CLI), then you can do the following: Step 1 – See what is currently set defaults read Step 2 – Set the idleTime defaults -currentHost write idleTime 0 Step 3 – (Optional) – Undo the change defaults -currentHost delete idleTime

October 16, 2022 · 1 min · 59 words · Andrew

How to Install Homebrew on a Mac

Prerequisites You should have some familiarity with the Mac Terminal application since you’ll need to use it to install Homebrew. The Terminal application is located in the Utilities folder in the Applications folder. Dependencies. You need to install one other piece of software before you can install Homebew: Xcode. Install Apple’s Xcode development software: Xcode in the Apple App Store. Installation Overview Installing Homebrew is straightforward as long as you understand the Mac Terminal....

September 21, 2022 · 1 min · 189 words · Andrew

How to Setup Credential Helper for AWS CodeCommit

AWS CodeCommit is a git code repository service by Amazon Web Services. You will want to clone your repository and setup your remotes using credential helper. Step 1 – Setup Credential Helper git config --global credential.helper '!aws codecommit credential-helper $@' git config --global credential.UseHttpPath true This will write to your local user’s ~/.gitconfig, and the file will look something like: [credential] helper = !aws --profile CodeCommitProfile codecommit credential-helper $@ UseHttpPath = true You can edit this file by running the following git command:...

July 25, 2022 · 2 min · 335 words · Andrew

How to find all symlinks in a directory tree on Mac

If you need to recursively find all symbolic links in a directory tree on a Mac, then you have a couple of options. You could be trying to find them because a tool like Dropbox is consuming high CPU and you need to remove them, or perhaps you want to move a directory to another machine or network drive and verifying a package is required. Option 1 – View all files that are symlinks ls -lR ....

April 27, 2022 · 1 min · 94 words · Andrew

How to Bulk Move All Email from One Account to Another using the CLI

If you find yourself in a position where you need to sync all emails from one account to another, then you can use the imapsync command-line tool to bulk copy, or move everything for you. Step 1 – Get imapsync You need to get the imapsync tool running locally. It can be found here Alternatively, if you are using a Mac and have homebrew installed, then you’re in luck!...

April 8, 2022 · 2 min · 311 words · Andrew

How to Reboot Networking on Mac from CLI

If you need to reboot, or restart the networking interface on your Mac, by using the CLI, then you can issue the following commands: Using the ifconfig primary interface Tear down the networking interface sudo ifconfig en0 down Restart the networking interface sudo ifconfig en0 up Verify the networking restart ifconfig -u en0 Alternative without sudo, using networksetup If you need to perform the same result, but not able to run sudo, then look to the networksetup....

April 6, 2022 · 1 min · 127 words · Andrew

How to Change the Timestamp of a File on Mac/Linux

If you have a file on your machine, and you want to change the created/modified time/date stamp, then you can use the touch command. touch -t 202202011308.57 someFile.jpg In the above example, the timestamp will be changed to <meta charset="utf-8">2022-02-01 13:08:57. Simply remove all non-decimal characters and place a period before the seconds.

February 17, 2022 · 1 min · 53 words · Andrew

How to update/upgrade all Homebrew packages

If you use Homebrew – and you probably should if you’re on a Mac – then you have probably installed various different applications and packages as time went on. It’s probably likely that by now, you have many different packages that are out of date and need to be upgraded to their newer versions. Luckily, Homebrew makes it very easy to upgrade everything; run the following command to upgrade everything....

December 11, 2021 · 1 min · 142 words · Andrew

[Solved] Error: Cannot find module ‘../lib/cli.js’

If you try and run npm i and get Error: Cannot find module '../lib/cli.js', then you can easily fix the problem by running the following. How does the error look? Error: Cannot find module '../lib/cli.js' Require stack: - /usr/local/lib/node_modules/npm/bin/npm-cli.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:999:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:1) at Module._compile (node:internal/modules/cjs/loader:1095:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/local/lib/node_modules/npm/bin/npm-cli....

December 9, 2021 · 1 min · 120 words · Andrew