Skip to content

Instantly share code, notes, and snippets.

@khiemdoan
Last active December 11, 2024 03:10
Show Gist options
  • Select an option

  • Save khiemdoan/7a30900be28c7fd5f8044fa597085da1 to your computer and use it in GitHub Desktop.

Select an option

Save khiemdoan/7a30900be28c7fd5f8044fa597085da1 to your computer and use it in GitHub Desktop.
MacOS Setup

MacOS

This note about software, config in my MacOS.

Set DNS servers

sudo networksetup -setdnsservers Wi-Fi 1.1.1.1 8.8.8.8
scutil --dns

Check CPU temperature

sudo powermetrics -s smc | grep -i "CPU die temperature"

Disable Gatekeeper

sudo spctl --master-disable

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Software from Brew

brew install <name>
  • erd
  • fish
  • go
  • htop
  • libpq
  • lsd
  • neovim
  • node
  • podman
  • podman-desktop
  • podman-compose

Softwares from Brew Cask

brew install --cask <name>
  • dbeaver-community
  • flameshot
  • keepassxc
  • krita
  • postman
  • rectangle
  • vlc
  • windterm

Uninstall apps - Ubuntu on Parallels

sudo apt purge cheese evince gnome-bluetooth gnome-calendar gnome-mines gnome-sudoku gnome-todo libreoffice* remmina rhythmbox seahorse shotwell thunderbird
sudo apt autoremove

Disable MDM

Block iprofiles.apple.com on /etc/hosts file:

# Block Mac from reaching the domain iprofiles.apple.com
127.0.0.1 albert.apple.com
127.0.0.1 iprofiles.apple.com
127.0.0.1 deviceenrollment.apple.com
127.0.0.1 mdmenrollment.apple.com
127.0.0.1 gdmf.apple.com

Then, check the current enrollment profile:

sudo profiles show -type enrollment

Delete the profile

sudo profiles remove -all

Check for the enrollment profile again:

sudo profiles show -type enrollment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment