This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
PAM_SUDO_FILE="/private/etc/pam.d/sudo" | |
PAM_TID="auth sufficient pam_tid.so" | |
if [ "$(uname)" != "Darwin" ]; then | |
echo "[ERROR]: Not on macOS. Exiting..." | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.0</real> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DOCKER_DEFAULT_PLATFORM=linux/amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>setenv.BAR</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/bin/launchctl</string> | |
<string>setenv</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# URL source from Homebrew's Python 3.7 formula: https://github.com/Homebrew/homebrew-core/blob/e3e51fa975fd2c83352bf7b382b3d50525bd546a/Formula/python%403.7.rb#L84 | |
curl -sSL https://raw.githubusercontent.com/Homebrew/formula-patches/05a27807/python/3.7.9.patch 2>&1 | pyenv install --patch 3.7.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# URL source from Homebrew's Python 3.8 formula: https://github.com/Homebrew/homebrew-core/blob/e3e51fa975fd2c83352bf7b382b3d50525bd546a/Formula/python%403.8.rb#L82 | |
curl -sSL https://raw.githubusercontent.com/Homebrew/formula-patches/cef51fde/python/3.8.7.patch 2>&1 | pyenv install --patch 3.8.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pkill TouchBarServer && sudo killall ControlStrip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo xattr -rd com.apple.quarantine "${APPLICATION_PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
sudo /usr/bin/dscacheutil -flushcache && sudo /usr/bin/killall -HUP mDNSResponder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- More Space resolution (1920x1200) | |
-- MacBook Pro 15" Retina 2016+ with Touch Bar, Mojave version | |
tell application "System Preferences" | |
reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays" | |
end tell | |
tell application "System Events" to tell process "System Preferences" to tell window "Built-in Retina Display" | |
click radio button "Display" of tab group 1 | |
click radio button "Scaled" of radio group 1 of tab group 1 | |
click radio button 5 of radio group 1 of group 2 of tab group 1 |
NewerOlder