Skip to content

Instantly share code, notes, and snippets.

View Honestpuck's full-sized avatar
😊
Having fun

Tony Williams Honestpuck

😊
Having fun
View GitHub Profile
@Honestpuck
Honestpuck / MSTeams.py
Created October 14, 2020 05:07
Download the latest version of MS Teams and upload to Jamf
#!/usr/bin/env python3
#pylint: disable=invalid-name, attribute-defined-outside-init
#pylint: disable=too-many-statements, too-many-locals
"""
MsTeams.py v2.0
Tony Williams 2020-10-12
This is built to handle MS Teams
"""
@Honestpuck
Honestpuck / Package Checklist.md
Last active December 22, 2021 01:09
Package Checklist for PatchBot

Package Checklist

  1. Find recipe
    1. Make override
  2. Check for patch definition
    1. If there isn't one raise a ticket with Jamf support
  3. Add patch title
  4. Build package
  5. Upload package with <title>_DELETE_ME name
  6. Attach package to old version in patch title
#!/usr/bin/env python3
import sys
from os import path
import plistlib
import requests
import xml.etree.ElementTree as ET
plist = path.expanduser('~/Library/Preferences/JPCImporter.plist')
fp = open(plist, 'rb')
#! /usr/bin/env python3
# package_list.py
# v0.1 2020-05-20
#
# List all unused packages
import sys
from os import path
import plistlib
@Honestpuck
Honestpuck / target.py
Created June 30, 2018 05:14
Minimal JAMF Webhook target in Flask
import flask
import jss_tools as tools
from threading import Thread
app = flask.Flask(__name__)
@app.route('/XWDemo', methods=['POST'])
def membership_changed():
changes = flask.request.get_json()
if not changes: