This file contains hidden or 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
#!/usr/bin/python | |
import datetime | |
import os | |
import subprocess | |
admin_items = [ | |
"/Applications/Launchpad.app", | |
"/Applications/Mission Control.app", | |
"/Applications/Safari.app", |
This file contains hidden or 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>PayloadContent</key> | |
<array> | |
<dict> | |
<key>AllowPreReleaseInstallation</key> | |
<false/> | |
<key>PayloadDisplayName</key> |
This file contains hidden or 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
<dict> | |
<key>PayloadContent</key> | |
<dict> | |
<key>com.apple.mcxMenuExtras</key> | |
<dict> | |
<key>Forced</key> | |
<array> | |
<dict> | |
<key>mcx_preference_settings</key> | |
<dict> |
This file contains hidden or 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
#!/usr/bin/python | |
# This script removes LocalMCX from opendirectoryd's search path | |
# this version 08 Dec 2014 Greg Neagle | |
import plistlib | |
import subprocess | |
import sys | |
try: | |
output = subprocess.check_output( |
This file contains hidden or 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>Description</key> | |
<string>Downloads Firefox disk image, builds a package, including autoconfig | |
resources (typically as generated via the CCK2 tool), then imports the pkg into | |
your Munki repo. | |
Place the autoconfig.zip in the same directory as the recipe. You may |
This file contains hidden or 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" standalone="no"?> | |
<installer-gui-script minSpecVersion="1"> | |
<options allow-install-later="true" should-authenticate-reboot="true" post-logout="true" should-launch-first-login-optimization="true"/> | |
<title>SU_TITLE</title> | |
<script/> | |
<volume-check script="VolumeCheck()"/> | |
<installation-check script="InstallationCheck()"/> | |
<script> | |
function compareBuildVersions(lhs, rhs) { | |
var lhsMatch = lhs.match(/([0-9]+)([A-Z])([0-9]+)([a-z])?/); |
This file contains hidden or 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
import CoreFoundation | |
from Foundation import NSDate | |
# read Safari's current ManagedPlugInPolicies | |
policy = CoreFoundation.CFPreferencesCopyAppValue( | |
'ManagedPlugInPolicies', 'com.apple.Safari') | |
if not 'com.oracle.java.JavaAppletPlugin' in policy: | |
# create an empty dict | |
policy['com.oracle.java.JavaAppletPlugin'] = {} |
This file contains hidden or 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
import plistlib | |
import CoreFoundation | |
from Foundation import NSDate, NSMutableArray, NSMutableDictionary | |
# read the current ManagedPlugInPolicies | |
policy = CoreFoundation.CFPreferencesCopyAppValue("ManagedPlugInPolicies", "com.apple.Safari") | |
if policy: | |
# policy is an immutable dict, so we have to make a mutable copy | |
my_policy = NSMutableDictionary.alloc().initWithDictionary_copyItems_(policy, True) |
This file contains hidden or 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
% softwareupdate -l | |
Software Update Tool | |
Copyright 2002-2012 Apple Inc. | |
Finding available software | |
Software Update found the following new or updated software: | |
* XProtectPlistConfigData-1.0 | |
XProtectPlistConfigData (1.0), 10K [recommended] | |
* Gatekeeper Configuration Data-54 | |
Gatekeeper Configuration Data (54), 3259K [recommended] |