Download a PDF of my slides and notes
Example code from my MacAdmins Conference at Penn State 2024 presentation.
#!/bin/zsh | |
:<<ABOUT_THIS_EXTENSION_ATTRIBUTE | |
----------------------------------------------------------------------- | |
Written by:William Smith | |
Technical Enablement Manager | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/talkingmoose/4a2b613bf5273081459bc62c644193eb |
#!/bin/zsh | |
# set -x # show command | |
:<<ABOUT_THIS_SCRIPT | |
Written by:William Smith | |
Technical Enablement Manager | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/talkingmoose/4a950a715ad07ae3baecce2f46b0a7e5 |
Download a PDF of my slides and notes
Example code from my MacAdmins Conference at Penn State 2024 presentation.
#!/bin/zsh | |
# set -x # show command | |
# trap read debug # require a RETURN after each command | |
# download mobile device data from Jamf | |
xml=$( /usr/bin/curl \ | |
--silent \ | |
--url https://hw-model-names.services.jamfcloud.com/1/mobileDeviceModels.xml ) |
https://www.apple.com/ios/ios-18-preview/ | |
https://www.apple.com/ipados/ipados-18-preview/ | |
https://www.apple.com/watchos/watchos-preview/ | |
Published Date: June 10, 2024 | |
Updated June 19, 2024 | |
Verification: https://regex101.com/r/0UDJHk/6 |
https://www.apple.com/macos/macos-sequoia-preview/ | |
Published Date: June 10, 2024 | |
Updated June 28, 2024 | |
Verification: https://regex101.com/r/bNOMXz/4 | |
1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate): | |
^(Mac(1[345]|BookPro1[5-8]|BookAir(9|10)|Pro7)|iMac(Pro1|(19|2[01]))|Macmini[89]),\d+$ |
#!/bin/zsh | |
:<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Technical Enablement Manager | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/talkingmoose/9f4638932df28c4bebde5dd47be1812a |
#!/bin/zsh | |
# get public IP address | |
publicIP=$( /usr/bin/curl http://ifconfig.me/ip \ | |
--location \ | |
--silent \ | |
--max-time 10 ) | |
# get GeoIP data | |
locationData=$( /usr/bin/curl http://ip-api.com/xml/$publicIP \ |
https://www.apple.com/ios/ios-17-preview/ | |
https://www.apple.com/ipados/ipados-17-preview/ | |
Published Date: June 5, 2023 | |
Verification: https://regex101.com/r/m9HV8T/3 | |
1) Exact regex — Matches major model identifier numbers based on Jamf's hardware model identifiers list (more accurate): | |
^iPhone1[1-5],\d|iPad([7-9]|1[1-4]),\d+$ |