Skip to content

Instantly share code, notes, and snippets.

@porteusconf
Last active January 29, 2021 03:38
Show Gist options
  • Save porteusconf/2ec6cec575eb7ca08b989962cf72d6ec to your computer and use it in GitHub Desktop.
Save porteusconf/2ec6cec575eb7ca08b989962cf72d6ec to your computer and use it in GitHub Desktop.
dscl commands for macos to create new admin user (must be run with sudo). And 1-liner to find 32-bit macos apps.
dscl . -create /Users/tts-setup NFSHomeDirectory /Local/Users/tts-setup
dscl . -passwd /Users/tts-setup xxxxxxxx
dscl . -append /Groups/admin GroupMembership tts-setup
id tts-setup
### uid=1007(tts-setup) gid=80(admin) groups=80(admin),12(everyone),61(localaccounts)...
mdfind "kMDItemExecutableArchitectures == '*i386*' && kMDItemExecutableArchitectures != '*x86*'"
@porteusconf
Copy link
Author

#! /bin/bash
### arpfix.sh
sudo sysctl -w net.link.ether.inet.arp_unicast_lim=0
echo "https://discussions.apple.com/thread/5483424"

@porteusconf
Copy link
Author

HowTo do detailed find-and-fix permsissions in home dir on macos.

PermissionScanner 1.8 for macOS Sierra, High Sierra, Mojave, Catalina & Big Sur Documentation
Howard Oakley https://eclecticlight.co
What you needA Mac running macOS Sierra, High Sierra, Mojave, Catalina or Big Sur. This version has been built to be fully compatible with privacy protection in Mojave and later.A copy of the latest version of PermissionScanner from https://eclecticlight.co/ downloads/ (this is delivered by secure HTTPS download).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment