This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
# PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/libexec | |
# Source - http://maclovin.org/blog-native/2015/office-2016-where-is-the-name-of-the-user-stored- | |
export PATH | |
FullScriptName=$(basename "$0") # Variable used to store the file name of this script | |
DsclSearchPath="/Local/Default" # Variable used to store the search path used by the dscl command. | |
# Get the username of the person currently running the script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<array> | |
<dict> | |
<key>attributeSetting</key> | |
<integer>1</integer> | |
<key>choiceAttribute</key> | |
<string>selected</string> | |
<key>choiceIdentifier</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://macadmins.slack.com/archives/general/p1449604450017318 | |
set a to do shell script "defaults read /System/Library/CoreServices/XProtect.bundle/Contents/Resources/XProtect.meta.plist Version" | |
tell application "Finder" to set b to get creation date of (POSIX file "/System/Library/CoreServices/XProtect.bundle/Contents/Resources/XProtect.meta.plist" as alias) | |
set s to short date string of b | |
set t to time string of b | |
set c to do shell script "defaults read /private/var/db/gkopaque.bundle/Contents/version.plist CFBundleShortVersionString" | |
tell application "Finder" to set d to get creation date of (POSIX file "/private/var/db/gkopaque.bundle/Contents/version.plist" as alias) | |
set u to short date string of d | |
set v to time string of d | |
set e to do shell script "defaults read /System/Library/CoreServices/SystemVersion.plist ProductVersion" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# | |
# MainController.py | |
# Imagr | |
# | |
# Created by Graham Gilbert on 04/04/2015. | |
# Copyright (c) 2015 Graham Gilbert. All rights reserved. | |
# | |
import objc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source ./slave.sh | |
echo $UPDATE | |
if [ $UPDATE == true ]; then | |
echo "update is true" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>PayloadContent</key> | |
<array> | |
<dict> | |
<key>AutoLaunchedApplicationDictionary-managed</key> | |
<array> | |
<dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>channels</key> | |
<array> | |
<string>AdobeAfterEffects-13.5.0-Trial</string> | |
<string>AdobeAfterEffectsCC2015LangPacken_US-13.5.0</string> | |
<string>AdobeAfterEffectsCC2015Presets-13.5.0</string> | |
<string>AdobeAfterEffectsCC2015Support-13.5.0</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# More details can be found in this post http://www.amsys.co.uk/2015/01/creating-first-boot-script/ | |
ARD="/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart" | |
# This turns the setting on | |
$ARD -configure -activate | |
$ARD -configure -access -on | |
# This remote settings for only authorized users | |
$ARD -configure -allowAccessFor -specifiedUsers | |
# replace localadmin with your admin account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include /usr/local/share/luggage/luggage.make | |
TITLE=MunkiClientSettings | |
REVERSE_DOMAIN=k12.bisd | |
PACKAGE_VERSION=1.0 | |
PAYLOAD=\ | |
pack-script-postinstall |