Skip to content

Instantly share code, notes, and snippets.

@homebysix
homebysix / email_report.html
Created March 10, 2016 22:46
email_report.html
<html>
<head>
<style>
* {
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-size: 9pt;
line-height: 1.2em;
}
a {
@homebysix
homebysix / postinstall
Created April 6, 2018 01:11
Trigger 10.13.2 update to begin installing at login window
#!/bin/bash
"/System/Library/CoreServices/Software Update.app/Contents/Resources/SoftwareUpdateLauncher.app/Contents/MacOS/SoftwareUpdateLauncher" -RootInstallMode YES -SkipConfirm YES
@homebysix
homebysix / osx-software-update-urls.txt
Last active March 8, 2026 00:37 — forked from geoff-nixon/osx-software-update-urls.txt
URLs of the index files used by the software update client on OS X
10.3 (Panther):
https://swscan.apple.com/scanningpoints/scanningpointX.xml
10.4 (Tiger):
https://swscan.apple.com/content/catalogs/index.sucatalog
https://swscan.apple.com/content/catalogs/index-1.sucatalog
10.5 (Leopard):
https://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog
@homebysix
homebysix / shard.sh
Last active November 7, 2025 20:32
shard.sh
#!/bin/bash
###
#
# Name: shard.sh
# Description: This Jamf Pro extension attribute takes a Mac serial
# number as input and uses that serial number to output a
# number from 0 to 9. This can be useful in scoping Jamf
# policies to a specific percentage of the fleet.
# Author: Elliot Jordan <elliot@elliotjordan.com>
@homebysix
homebysix / https_spotter.py
Last active September 6, 2025 20:32
HTTPS Spotter
#!/usr/local/autopkg/python
# HTTPS Spotter
# Copyright 2016-2025 Elliot Jordan
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@homebysix
homebysix / PkgCreator_to_AppPkgCreator.py
Last active August 22, 2025 13:53
Convert AutoPkg recipes to AppPkgCreator
#!/usr/local/autopkg/python
# encoding: utf-8
# PkgCreator to AppPkgCreator
# Copyright 2019-2025 Elliot Jordan
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@homebysix
homebysix / docklib_example.py
Last active January 11, 2025 21:27
docklib_example.py
#!/usr/local/bin/managed_python3
"""docklib_example.py
This example script demonstrates how Mac admins can use the docklib module to
manage the default state of Mac users' Docks. The script is meant to run at
login in user context using a tool like Outset or a custom LaunchAgent.
For details, see: https://www.elliotjordan.com/posts/resilient-docklib/
"""
@homebysix
homebysix / delete_jamf_remote_policies.py
Last active December 20, 2023 18:51
delete_jamf_remote_policies.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""This script leverages the jamf-pro-sdk module to remove policies left over
from usage of the deprecated Jamf Remote app.
"""
import re
from jamf_pro_sdk import JamfProClient, PromptForCredentials
@homebysix
homebysix / filevault_escrow_helper-1.0.plist
Created September 20, 2023 14:31
Escrow Buddy logout pkginfo for Munki
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>RestartAction</key>
<string>RequireLogout</string>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
@homebysix
homebysix / ModifyAuthDBLoginMechs.sh
Last active June 18, 2023 03:55
macos-authdb-mechs
#!/bin/bash
###
#
# Name: ModifyAuthDBLoginMechs.sh
# Description: This script provides functions that can help Mac IT
# administrators modify and maintain the list of
# login mechanisms in the macOS authorization database.
# For details see:
# https://www.elliotjordan.com/posts/macos-authdb-mechs