Skip to content

Instantly share code, notes, and snippets.

View clburlison's full-sized avatar

Clayton Burlison clburlison

View GitHub Profile
@clburlison
clburlison / kickstart_ard_example.sh
Created August 27, 2015 23:53
kickstart_ard_example.sh
#!/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

What Changed

I used to automount on OSX by sudo vifs and adding a line like vault.local:/backup /Volumes/backup url auto,url==afp://;AUTH=No%20User%20Authent@vault.local/backup 0 0. But that no longer works on Maverick because the system deletes everything in /Volumes on wake/restart/something-or-other.

Fix with ControlPlane

Use this

The Fix Under-the-Hood

@clburlison
clburlison / Makefile
Last active August 29, 2015 14:24
Munki Client Settings
include /usr/local/share/luggage/luggage.make
TITLE=MunkiClientSettings
REVERSE_DOMAIN=k12.bisd
PACKAGE_VERSION=1.0
PAYLOAD=\
pack-script-postinstall
@clburlison
clburlison / AdobeAfterEffects2015.ccp.plist
Last active September 3, 2015 03:48
Adobe CC 2015 plists for aamporter
<?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>
<?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>
@clburlison
clburlison / master.sh
Created October 31, 2015 01:43
Bash export example
#!/bin/bash
source ./slave.sh
echo $UPDATE
if [ $UPDATE == true ]; then
echo "update is true"
fi
@clburlison
clburlison / LaunchServices.sh
Created November 2, 2015 23:25
Rebuild the LaunchServices database
#!/bin/bash
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain use
@clburlison
clburlison / Office2016-MeContact.sh
Created January 16, 2016 13:39
Office2016-MeContact.sh -- This script sets the User Information fields for Office 2016. (user level permission)
# !/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.
<?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.ScreenSharingSharedDefaults</key>
@clburlison
clburlison / _0help.md
Last active January 31, 2016 02:10
Using Puppet Settings inside Puppet Code

So this took me a while to figure out. Puppet Code can use settings from puppet but they need to be defined by settings::LOOPUP_THING_HERE. As such, here a quick reference for myself.

You can retrevie your settings with:

sudo /usr/bin/puppet config print
sudo /opt/puppetlabs/bin/puppet config print

And for testing: