This file contains hidden or 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
#!/bin/zsh | |
# Get public IP address | |
publicIP=$( /usr/bin/curl http://ifconfig.io/ip \ | |
--location \ | |
--silent \ | |
--max-time 10 ) | |
# Check if public IP was retrieved | |
if [[ -z "$publicIP" ]]; then |
This file contains hidden or 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
#!/bin/bash | |
# Step 1: Get the Jamf Pro URL | |
jssurl=$( /usr/bin/defaults read /Library/Preferences/com.jamfsoftware.jamf.plist jss_url ) | |
echo "JSS URL: $jssurl" | |
# Step 2: API credentials (base64 encoded) are passed as parameter $4 | |
apib64="$4" | |
# Recovery Lock Password is passed as parameter $5 |
This file contains hidden or 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
#!/bin/zsh | |
:<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by: William Smith | |
Partner Program Manager | |
Jamf | |
[email protected] | |
https://gist.github.com/talkingmoose/94882adb69403a24794f6b84d4ae9de5 |