mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(osx): improve on gatekeeper snippets
This commit is contained in:
@@ -179,10 +179,10 @@ dscl '.' -read "/Users/$USER" 'UserShell'
|
|||||||
|
|
||||||
|
|
||||||
# Bypass Gatekeeper for currently installed versions.
|
# 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.
|
# 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
|
## Taking screenshots
|
||||||
|
|||||||
@@ -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 'HostName' "$(defaults read '/Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName')"
|
||||||
scutil --set 'LocalHostName' "$(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
|
# Clear the DNS cache
|
||||||
sudo dscacheutil -flushcache; sudo killall -HUP 'mDNSResponder'
|
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' '192.168.1.35'
|
||||||
dscacheutil -q 'host' -a 'name' 'gitlab.lan'
|
dscacheutil -q 'host' -a 'name' 'gitlab.lan'
|
||||||
|
|
||||||
|
|
||||||
# Change the number of columns and rows in the springboard
|
# 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-columns' -int '9'
|
||||||
defaults write 'com.apple.dock' 'springboard-rows' -int '7'
|
defaults write 'com.apple.dock' 'springboard-rows' -int '7'
|
||||||
|
# Need to be followed by a restart of the modified component
|
||||||
killall 'Dock'
|
killall 'Dock'
|
||||||
|
|
||||||
|
|
||||||
# Install Xcode cli tools if missing
|
# Install Xcode cli tools if missing
|
||||||
[[ -d "$(xcode-select --print-path)" ]] || xcode-select --install
|
[[ -d "$(xcode-select --print-path)" ]] || xcode-select --install
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user