Skip to content

Instantly share code, notes, and snippets.

nikolay-n /
Last active October 29, 2022 14:26
Defaults Monitor - tool to sniff defaults keys and values using unified log
# -*- coding: utf-8 -*-
Defaults Monitor - tool to sniff defaults keys and values using unified log
to launch use standard python 2.7, eg python2.7 ./
import os
esutton /
Last active January 12, 2023 05:25
Create macOS Catalina Bootable ISO Image
# File:
# Create a bootable ISO image from a macOS installer to install VMware ESXi guests.
# Debug on: set -x
set -eux
talkingmoose / Manage App Notifications.bash
Last active January 25, 2024 15:26
macOS Catalina will prompt users to allow Notifications from each app that makes a request. Administrators can manage these prompts using a Configuration Profile. If running Jamf Pro 10.19 or later, I suggest instead using this manifest:…
Written by:William Smith
Professional Services Engineer
arekdreyer / postinstall-for-Composer-for-DEPNotify.zsh
Last active April 5, 2024 21:36
Postinstall script for Jamf Composer to install DEPNotify with supporting scripts and a LaunchDaemon
## postinstall
# This postinstall script for Composer creates the following
# A LaunchDaemon that starts a separate script to run a Jamf Pro policy command
talkingmoose / Report Office for Mac
Created September 23, 2018 02:20
Use this script as part of an extension attribute in Jamf to report the type of Microsoft Office for Mac licensing in use.
Written by: William Smith
Professional Services Engineer
igorvoltaic /
Last active March 8, 2024 09:36
Create new user using command line in Mac OS X. Do not forget to set correct permissions for the file.
if [[ `id -u` != 0 ]]; then
echo "Must be root to run script"
read -p "Enter user name and press [ENTER]: " UserName
if [[ $UserName == `dscl . -list /Users UniqueID | awk '{print $1}' | grep -w $UserName` ]]; then
scriptingosx /
Last active October 15, 2019 13:49
Sample script to modify authorization db on macOS
# modify the system.preferences right
/usr/bin/security authorizationdb write system.preferences <<EndOfPlist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
opragel /
Last active August 2, 2022 19:39
# Seriously there still apparently aren't enough warning labels
# If you don't understand the consequences don't do it
REMOVE_PATHS=( # "/var/db/ConfigurationProfiles/.passcodePolicesAreInstalled"
# "/var/db/ConfigurationProfiles/.cloudConfigHasActivationRecord"
# "/var/db/ConfigurationProfiles/.cloudConfigNoActivationRecord"
# "/var/db/ConfigurationProfiles/.cloudConfigProfileObtained"
# "/var/db/ConfigurationProfiles/.cloudConfigRecordFound"
# "/var/db/ConfigurationProfiles/.profilesAreInstalled"
gregneagle / startosinstall_10.12.6_normalboot.txt
Last active February 6, 2024 07:28
Comparison of startosinstall's available options depending on boot OS environment
bash-3.2$ /Applications/Install\ macOS\ --usage
Usage: startosinstall --applicationpath <install path>
--applicationpath, a path to copy of the OS installer application to start the install with.
--license, prints the user license agreement only.
--agreetolicense, agree to license the license you printed with --license.
--rebootdelay, how long to delay the reboot at the end of preparing. This delay is in seconds and has a maximum of 300 (5 minutes).
--pidtosignal, Specify a PID to which to send SIGUSR1 upon completion of the prepare phase. To bypass "rebootdelay" send SIGUSR1 back to startosinstall.
--usage, prints this message.
timsutton / LoginDialog.xml
Last active November 27, 2019 09:07
Vectorworks 2017 deployment stuff - Munki pkginfos and a Luggage project for network licensing
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>