Skip to content

Instantly share code, notes, and snippets.

@homebysix
homebysix / integration_github_token_resilience.py
Created June 6, 2026 20:29
integration_github_token_resilience.py
#!/usr/local/autopkg/python
"""
Integration test for GitHub token resilience.
Exercises four new behaviors in autopkglib.github:
1. Malformed token (interior whitespace) is rejected, unauthenticated fallback
2. Token without a known prefix is accepted without warnings
3. Unauthenticated session can make a real API call successfully
4. Bad token triggers 401 -> anonymous retry -> result returned, warning shown
@homebysix
homebysix / recipes_broken_by_codesign_strict.csv
Created June 4, 2026 15:39
recipes_broken_by_codesign_strict.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
recipe,identifier,reason_category,codesign_evidence
MLBZ521-recipes/Dropbox/Dropbox-Universal.download.recipe.yaml,com.github.mlbz521.download.Dropbox-Universal,Disallowed xattr / resource fork (Finder detritus),"/private/tmp/dmg.g3MVxs/Dropbox.app: resource fork, Finder information, or similar detritus not allowed"
MichalMMac-recipes/inSSIDer/inSSIDer.download.recipe,com.github.michalmmac.download.inSSIDer,Disallowed xattr / resource fork (Finder detritus),"/private/tmp/dmg.bExJD0/inSSIDer.app: resource fork, Finder information, or similar detritus not allowed"
ahousseini-recipes/MonitorControl/MonitorControl.download.recipe,com.github.ahousseini-recipes.download.MonitorControl,Disallowed xattr / resource fork (Finder detritus),"/private/tmp/dmg.FsOfXl/MonitorControl.app: resource fork, Finder information, or similar detritus not allowed"
ahousseini-recipes/STARFACE/STARFACE.download.recipe,com.github.ahousseini-recipes.download.STARFACE,Disallowed xattr / resource fork (Finder detritus),"/private/tmp/dmg.s4
@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
@homebysix
homebysix / update_changelog_diffs.py
Created November 16, 2021 06:29
update_changelog_diffs.py
#!/usr/bin/env python3
"""Given the path to a Markdown-formatted change log, this script will update
the diff links for each version at the bottom of the document. For an example
of the diff links, see: https://keepachangelog.com
Currently only supports GitHub, GitLab, and Bitbucket diff links.
"""
@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 / .pre-commit-config.yaml
Last active June 28, 2021 16:54
Pre-commit config for private AutoPkg recipe repository (with processors)
repos:
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.10.1
hooks:
- id: check-autopkg-recipes
args: [
"--recipe-prefix=com.pretendco.cpe.",
"--override-prefix=local.",
"--strict",
"--",
@homebysix
homebysix / .pre-commit-config.yaml
Last active June 28, 2021 16:55
Pre-commit config for private AutoPkg recipe repository (YAML recipes and overrides)
repos:
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.10.1
hooks:
- id: check-autopkg-recipes
args: [
"--recipe-prefix=com.pretendco.cpe.",
"--override-prefix=local.",
"--",
]
@homebysix
homebysix / .pre-commit-config.yaml
Last active June 28, 2021 16:55
Pre-commit config for public AutoPkg recipe repository (with processors)
repos:
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.10.1
hooks:
- id: check-autopkg-recipes
args: [
"--recipe-prefix=com.github.yourusername.",
"--strict",
"--",
]
@homebysix
homebysix / .pre-commit-config.yaml
Last active June 28, 2021 16:55
Pre-commit config for public AutoPkg recipe repository (extended)
repos:
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.10.1
hooks:
- id: check-autopkg-recipes
args: [
"--recipe-prefix=com.github.yourusername.",
"--strict",
"--",
]