Skip to content

Instantly share code, notes, and snippets.

View alecmeelan's full-sized avatar

Alec Meelan alecmeelan

  • New York
  • 06:42 (UTC -04:00)
View GitHub Profile
@alecmeelan
alecmeelan / Download and Install Jamf Connect.zsh
Last active November 8, 2024 19:59 — forked from talkingmoose/Download and Install Jamf Connect.zsh
Downloads and installs the latest available Jamf Connect software for Mac directly on the client. This avoids having to manually download and store an up-to-date installer on a distribution server every month.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by: William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/talkingmoose/94882adb69403a24794f6b84d4ae9de5
@alecmeelan
alecmeelan / Location Information.zsh
Last active October 10, 2024 14:46 — forked from talkingmoose/Location Information.zsh
Add the following script to a Jamf Pro extension attribute to collect service provider location information based on public IP address when updating inventory.
#!/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