Skip to content

Instantly share code, notes, and snippets.

View clburlison's full-sized avatar

Clayton Burlison clburlison

View GitHub Profile

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%[email protected]/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 / location.py
Last active June 27, 2016 19:42
This is all scratch work....please visit https://github.com/clburlison/pinpoint for finished result
#!/usr/bin/python
"""Enables location services (LS) globally,
Give Python access to location services,
Prints the current location to a plist.
Author: Clayton Burlison <https://clburlison.com>
Created: Jan. 25, 2016
Based off of works by:
@arubdesu - https://gist.github.com/arubdesu/b72585771a9f606ad800
@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 / 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
@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 / MainController.py
Last active February 12, 2016 01:55
Imagr include_workflows from URL 98.5% finished. For @erikng never completed or implemented at this point.
# -*- coding: utf-8 -*-
#
# MainController.py
# Imagr
#
# Created by Graham Gilbert on 04/04/2015.
# Copyright (c) 2015 Graham Gilbert. All rights reserved.
#
import objc
@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 / get_sys_info.scpt
Last active October 24, 2019 08:05
OS X Get Current Sys Info
# 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"