Skip to content

Instantly share code, notes, and snippets.

View built2order's full-sized avatar

built2order

  • Sydney, Australia
  • 02:36 (UTC +10:00)
View GitHub Profile
@grahampugh
grahampugh / api_test_pkg_jcds2.sh
Last active March 25, 2024 23:25
JCDS2 package upload script
#!/bin/bash
: <<DESCRIPTION
JCDS2 package upload script
by Graham Pugh (@grahamrpugh)
1. Get a bearer token
2. Check for an existing package from the Classic API
3. Check for an existing package from the JCDS endpoint
4. Check that the checksum matches our local pkg
@rtrouton
rtrouton / gist:11221544
Last active February 27, 2018 14:44
Script that checks for JAMF's Casper agent and verifies that it's communicating properly with the Casper server. Script assumes that the user has a web server where a Casper QuickAdd package is available for download as a .zip file.
#!/bin/bash
#
# User-editable variables
#
# For the fileURL variable, put the complete address
# of the zipped Casper QuickAdd installer package
fileURL="http://server_name_here.domain.com/quickadd_name_goes_here.zip"