Skip to content

Instantly share code, notes, and snippets.

View boettchs's full-sized avatar
🏠
Working from home

scott boettcher boettchs

🏠
Working from home
  • Pasadena, CA USA
View GitHub Profile
@haircut
haircut / tcc-reset.py
Last active December 17, 2024 16:38
Completely reset TCC services database in macOS
#!/usr/bin/python
"""
Completely reset TCC services database in macOS
Note: Both the system and individual users have TCC databases; run the script as both
a user and as root to completely reset TCC decisions at all levels.
2018-08-15: Resetting the 'Location' service fails; unknown cause
2018-08-16: Confirmed the 'All' service does not really reset _all_
services, so individual calls to each service is necessary.
@talkingmoose
talkingmoose / MegaPKGr.zsh
Last active March 28, 2025 15:03
The pkgbuild binary and Jamf Composer don't support adding single files of 8 GB or more to a package. Some apps like Install macOS Big Sur.app include files larger than 8 GB in their bundles. This script will create a deployable PKG file from apps whose bundles include those large files.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Professional Services Engineer
Jamf
[email protected]
https://gist.github.com/e9ed319226c6da30dd633725e48a97b0
@grahampugh
grahampugh / fix_log4j.sh
Last active December 17, 2021 09:52
Replaces vulnerable log4j jars in a multi-context Jamf instance
#!/bin/bash
: <<DOC
https://docs.jamf.com/technical-articles/Mitigating_the_Apache_Log4j_2_Vulnerability.html
deletes:
/usr/share/tomcat8/webapps/*/WEB-INF/lib/log4j-1.2-api-2.13.3.jar
/usr/share/tomcat8/webapps/*/WEB-INF/lib/log4j-api-2.13.3.jar
/usr/share/tomcat8/webapps/*/WEB-INF/lib/log4j-core-2.13.3.jar
/usr/share/tomcat8/webapps/*/WEB-INF/lib/log4j-slf4j-impl-2.13.3.jar
@PicoMitchell
PicoMitchell / get_compatible_macos_versions-asls.sh
Last active March 13, 2025 03:32
Scripts to get compatible macOS versions from Apple Software Lookup Service (gdmf.apple.com/v2/pmv) or Software Update Catalog (swscan.apple.com[...]sucatalog).
#!/bin/bash
#
# Created by Pico Mitchell (of Random Applications) on 1/5/23
#
# https://gist.github.com/PicoMitchell/877b645b113c9a5db95248ed1d496243#file-get_compatible_macos_versions-asls-sh
#
# MIT License
#
# Copyright (c) 2023 Pico Mitchell (Random Applications)
@opragel
opragel / macos_keyboard_shortcuts.md
Last active April 17, 2025 17:16
macOS favorite keyboard shortcuts

macOS keyboard shortcut favorites

Legend

Command (or Cmd)  - ⌘
Control (or Ctrl) - ^
Option (or Alt)   - ⌥
Shift             - ⇧
Fn (Function)     - 🌐