Skip to content

Instantly share code, notes, and snippets.

View neilmartin83's full-sized avatar
🎯
Focusing

Neil Martin neilmartin83

🎯
Focusing
View GitHub Profile
#!/bin/bash
osascript -e "set Volume 10"
say "something"
@neilmartin83
neilmartin83 / com.company.closingmessage.plist
Created June 16, 2015 15:29
LaunchDaemons - display message with jamfHelper at specified time, lock screen with ARD binary at specified time
<?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>uk.ac.uel.closingmessage2015</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper</string>
<string>-windowType</string>
#!/bin/sh
########################### About this script ##########################
# #
# Purpose: Populates user name and email address settings #
# for Lync for Mac. This script resides #
# in /Library/talkingmoose/Scripts and is launched #
# by launch agent net.talkingmoose.LyncSetup.plist. #
# #
# Created by William Smith #
<?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>uk.ac.uel.LyncSetup</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Library/Application Support/UEL/bin/LyncSetup-1.3.sh</string>
#!/bin/bash
username="$3"
if [ -z "$username" ]; then # Checks if the variable is empty (user running script from Self Service)
username="$USER"
fi
chown -R "$username" /Users/"$username"/Library/Application\ Support/Adobe
exit 0
<?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.microsoft.autoupdate2</key>
#!/bin/bash
# Modified 2016-10-25
# delete_inactive_users.sh
# Maintained at https://github.com/dankeller/macscripts
# by Dan Keller
#
# Modified by Neil Martin - Age specified by $4 for use in multiple Casper policies
# where different ages are required for different clients.
#
#!/bin/sh
## Script to detect and enumerate attached iLok Serial
SERIAL=`system_profiler SPUSBDataType | grep -B 5 -i ': iLok' | grep 'Serial' | cut -f 2 -d ":" | sed -e "s/ //"`
#SERIAL=`system_profiler SPUSBDataType | grep -B 5 -i ': iLok' | grep 'Serial'`
if [[ "$SERIAL" == "" ]]
then
echo '<result>'No iLok Connected'</result>'
else
#!/bin/sh
if [ -e /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app ]; then
echo "<result>Yes</result>"
exit 0
else
echo "<result>No</result>"
fi
exit 0
#!/bin/sh
MAUVers=$(defaults read /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/Info CFBundleVersion)
echo "<result>$MAUVers</result>"