Skip to main content

2 posts tagged with "mac"

View All Tags

Kill the Terminal and disable its session restoration

· 2 min read
Doko
Writer

The problem

When developing apps using React Native, I realized that every time the packager opens, it will spawn a new process of Terminal (Mac OS built-in shell app). This behavior is not too complicated to deal with if you are only using in local development. Right click > Quit and everything will be done.

But with CI / CD, it's another story.

Disable MDM on Mac OS Big Sur

· One min read
Doko
Writer

There are several ways to disable MDM on Mac OS. If you don't know what they are, you can do a quick search on Google.

Anyway this is what needed to be done: Edit hosts file:

sudo nano /private/etc/hosts

(You might be asked for your password)

Then append these lines:

0.0.0.0 iprofiles.apple.com // [!code ++]
0.0.0.0 mdmenrollment.apple.com
0.0.0.0 deviceenrollment.apple.com
0.0.0.0 gdmf.apple.com

And DO NOT append this line:

0.0.0.0 albert.apple.com