Skip to content

Instantly share code, notes, and snippets.

#!/bin/zsh
## postinstall
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
# Optionally replace the value of this variable with the name of your organization.
organizationIdentifier=com.arekdreyer
@arekdreyer
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
#!/bin/zsh
## postinstall
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
# This postinstall script for Composer creates the following
# A LaunchDaemon that starts a separate script to run a Jamf Pro policy command
@arekdreyer
arekdreyer / AppleDiagnosticsSetupDoneWatcher.plist
Created September 14, 2018 23:11
Watches for /var/db/.AppleDiagnosticsSetupDone creation and updates
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.arekdreyer.AppleDiagnosticsSetupDoneWatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/logger</string>
@arekdreyer
arekdreyer / AppleSetupDoneWatcher.plist
Created September 14, 2018 21:25
A launch daemon that logs when /var/db/.AppleSetup done is created or modified.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.arekdreyer.AppleSetupDoneWatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/logger</string>
/bin/sh
defaults write com.apple.screencapture type tiff
defaults write com.apple.screencapture disable-shadow -bool true
defaults write com.apple.screencapture location ~/Documents/Screenshots
defaults write com.apple.screencapture show-thumbnail -bool FALSE
killall SystemUIServer