You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| #!/bin/zsh | |
| :<<ABOUT_THIS_SCRIPT | |
| ------------------------------------------------------------------------------- | |
| Written by:William Smith | |
| Professional Services Engineer | |
| Jamf | |
| bill@talkingmoose.net | |
| https://gist.github.com/e9ed319226c6da30dd633725e48a97b0 |
| Model information: https://support.apple.com/en-us/HT211238 | |
| Published Date: October 25, 2021 | |
| Verification: https://regex101.com/r/7nnq4T/13 | |
| This regex is complete. Apple is no longer creating Big Sur compatible Macs. | |
| (MacBook(10|9|8)|MacBookAir(10|[6-9])|MacBookPro1[1-7]|Macmini[7-9]|MacPro[6-7]|iMacPro1),\d|iMac(14,4|1[5-9],\d|2[01],\d) | |
| #!/bin/bash | |
| <<ABOUT_THIS_SCRIPT | |
| ----------------------------------------------------------------------- | |
| Written by:William Smith | |
| Professional Services Engineer | |
| Jamf | |
| bill@talkingmoose.net | |
| https://gist.github.com/talkingmoose/9faf50deaaefafa9a147e48ba39bb4b0 |
| #!/bin/bash | |
| /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool TRUE | |
| /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool TRUE | |
| /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool TRUE | |
| /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool TRUE | |
| /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall -bool TRUE | |
| /usr/bin/defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdate -bool TRUE | |
| exit 0 |
| #!/bin/bash | |
| ### | |
| # | |
| # Name: recreate_keychain.sh | |
| # Description: This script deletes the user's login.keychain, prompts | |
| # the current user for their password, and then creates | |
| # a new keychain. Uses Applescript dialog and jamfHelper | |
| # for notifications and password prompt. | |
| # Note: Password prompt via Applescript from Elliot Jordan (github.com/homebysix), |
| import Foundation | |
| import IOKit | |
| import IOKit.usb | |
| import IOKit.usb.IOUSBLib | |
| print("Scanning USB Bus.....\n\n\n") | |
| // |
| # | |
| # Mac OS-X does not come with the delightfully useful `timeout` program. Thankfully a rough BASH equivalent can be achieved with only 2 perl statements. | |
| # | |
| # Originally found on SO: http://stackoverflow.com/questions/601543/command-line-command-to-auto-kill-a-command-after-a-certain-amount-of-time | |
| # | |
| function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; } | |
| ## Example usage: | |
| # |