Skip to content

Instantly share code, notes, and snippets.

Arek Dreyer arekdreyer

Block or report user

Report or block arekdreyer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@arekdreyer
arekdreyer / postinstall-for-Composer-for-DEPNotify.zsh
Last active Feb 6, 2020
Postinstall script for Jamf Composer to install DEPNotify with supporting scripts and a LaunchDaemon
View postinstall-for-Composer-for-DEPNotify.zsh
#!/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 Sep 14, 2018
Watches for /var/db/.AppleDiagnosticsSetupDone creation and updates
View AppleDiagnosticsSetupDoneWatcher.plist
<?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 Sep 14, 2018
A launch daemon that logs when /var/db/.AppleSetup done is created or modified.
View AppleSetupDoneWatcher.plist
<?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>
View prepscreenshot
/bin/sh
defaults write com.apple.screencapture type tiff
defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer
You can’t perform that action at this time.