Skip to content

Instantly share code, notes, and snippets.

View neilmartin83's full-sized avatar
🎯
Focusing

Neil Martin neilmartin83

🎯
Focusing
View GitHub Profile
<?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>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.apple.MCX</key>
#!/bin/sh
# Add a Microsoft Remote Desktop bookmark entry for the specified computer.
#
# Neil Martin - https://soundmacguy.wordpress.com - @neilmartin83
#
############################
#
# Use Parameter 4 in Jamf to specify the hostname or IP address of the bookmark you wish to add e.g. myawesomepc.com (required)
#
#!/bin/bash
availableupdates=`softwareupdate -l | grep "recommended" | sed "s/\*//g" | sed "s/$/,/g"`
jamfHelper='/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper'
title="UEL IT Services Message"
icon="/System/Library/CoreServices/Software Update.app/Contents/Resources/SoftwareUpdate.icns"
heading1="Software updates are available for your computer. "
description1="Do you want to install them now?
You can continue to use your computer during the installation.
You may be asked to restart it when the installation is complete.
#!/bin/sh
## postinstall
# This script is for Pro Tools 11.3 - it performs functions that would normally ask for admin privileges when Pro Tools is launched for the first time.
# It checks that Pro Tools has already been installed and will not run if it hasn't.
if [[ -d "$3/Applications/Pro Tools.app" ]]; then
echo "Pro Tools has been installed, running post-install tasks..."
# Let's declare a couple of variables because the author is lazy
#!/bin/sh
# Disables Time Machine and removes all destination set for this Mac
/bin/echo "Stopping Time Machine backup if running..."
/usr/bin/tmutil stopbackup
/bin/echo
/bin/echo "Time Machine Destination(s) Found:"
/usr/bin/tmutil destinationinfo
/bin/echo
<?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>Label</key>
<string>com.neilmartin83.disable-squirrel-update-check</string>
<key>ProgramArguments</key>
<array>
<string>/bin/launchctl</string>
<string>setenv</string>
#!/bin/sh
# Delete all Microsoft Remote Desktop bookmark entries for the specified hostname
#
# Neil Martin - https://soundmacguy.wordpress.com - @neilmartin83
#
############################
#
# Use Parameter 4 in Jamf to specify the friendly name or hostname of the bookmarks you wish to delete
# Friendly name always takes precedence. If the bookmark has no friendly name set, the hostname will be used instead.
#!/bin/bash
# Variables - edit to suit your environment
# Path to the ESET Endpoint Antivirus installer package file
pkgpath="/path/to/installer.pkg"
# Path to exported settings file you wish to import
settingsfile="/path/to/eset_settings"
# Set the variable below to "replace" if you are going to apply your own user settings to the ESET GUI (e.g. notifications/alerts)
replaceguicfg="yes"
# Path to the directory containing your custom ESET user GUI configuration
#!/bin/sh
loggedInUser=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
sudo -u "${loggedInUser}" /usr/local/bin/vboxmanage setextradata global GUI/PreventApplicationUpdate true
#!/bin/sh
loggedInUser=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
sudo -u "${loggedInUser}" /usr/local/bin/vboxmanage setextradata global GUI/UpdateDate never