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 |
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
-- Default resolution (1680x1050) | |
-- 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 4 of radio group 1 of group 2 of tab group 1 |
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
-- Rotate Resolution... (between 1680x1050 and 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 | |
tell radio group 1 of group 2 of tab group 1 |
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 installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / |
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
hdiutil create "${VOLUME_NAME}.sparsebundle" -size "${SIZE}"G -fs APFS -type SPARSEBUNDLE -encryption AES-256 -volname "${VOLUME_NAME}" |
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
from collections import namedtuple | |
import random | |
RAND = random.SystemRandom() | |
Career = namedtuple( | |
"Career", | |
[ |
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
defaults write com.apple.Safari WebKitMediaPlaybackAllowsInline -bool false | |
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2AllowsInlineMediaPlayback -bool false |
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
https://www.codementor.io/noxowe/no-wifi-signal-macbook-the-script-that-saved-my-sanity-du10808m3 |
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 bash | |
# Add DSA keys | |
for dsa in ${HOME}/.ssh/*_dsa; do | |
/usr/bin/ssh-add -K "${dsa}" | |
done | |
# Add RSA keys | |
for rsa in ${HOME}/.ssh/*_rsa; do | |
/usr/bin/ssh-add -K "${rsa}" |
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
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock |