diff --git a/knowledge base/mac os x/README.md b/knowledge base/mac os x/README.md index 37c63cd..55cbf66 100644 --- a/knowledge base/mac os x/README.md +++ b/knowledge base/mac os x/README.md @@ -179,10 +179,10 @@ dscl '.' -read "/Users/$USER" 'UserShell' # Bypass Gatekeeper for currently installed versions. -xattr -c '/Applications/Zen Browser.app/' +xattr -c '/path/to/app.app' # Bypass Gatekeeper for all versions of apps. -xattr -d 'com.apple.quarantine' '/Applications/LibreWolf.app/' +xattr -d 'com.apple.quarantine' '/path/to/app.app' ``` ## Taking screenshots diff --git a/snippets/osx.sh b/snippets/osx.sh index e0596e4..46deaf0 100644 --- a/snippets/osx.sh +++ b/snippets/osx.sh @@ -5,6 +5,15 @@ scutil --set 'ComputerName' "$(defaults read '/Library/Preferences/SystemConfigu scutil --set 'HostName' "$(defaults read '/Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName')" scutil --set 'LocalHostName' "$(defaults read '/Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName')" + +# Bypass Gatekeeper for currently installed versions +xattr -c '/Applications/Spotify.app' + +# Bypass Gatekeeper for all versions of apps +xattr -d 'com.apple.quarantine' '/Applications/LibreWolf.app' +xattr -d 'com.apple.quarantine' '/Applications/Zen Browser.app' + + # Clear the DNS cache sudo dscacheutil -flushcache; sudo killall -HUP 'mDNSResponder' @@ -22,11 +31,14 @@ scutil --dns | grep -C '3' '192.168.1.254' dscacheutil -q 'host' -a 'name' '192.168.1.35' dscacheutil -q 'host' -a 'name' 'gitlab.lan' + # Change the number of columns and rows in the springboard defaults write 'com.apple.dock' 'springboard-columns' -int '9' defaults write 'com.apple.dock' 'springboard-rows' -int '7' +# Need to be followed by a restart of the modified component killall 'Dock' + # Install Xcode cli tools if missing [[ -d "$(xcode-select --print-path)" ]] || xcode-select --install