Skip to content

Instantly share code, notes, and snippets.

@erikng
erikng / EV3 STU
Created October 14, 2013 18:16
munki plists for Lego Mindstorms EV3 and Design Engineering Process
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
@erikng
erikng / istation
Created October 15, 2013 14:49
The Imagination Station - requires terrible permissions that munki attempts to fix. post_install to add domain.
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
@erikng
erikng / swupd.conf
Last active December 26, 2015 10:58
Mountain Lion Server - Maverick Client Support
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Darwin/9
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/10
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-leopard-snowleopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/11
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/12
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
@erikng
erikng / GeekTool-3.1.1.plist
Created October 30, 2013 15:51
GeekTool Munki
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
#!/usr/bin/python
'''Uses Cocoa classes via PyObjC to set a desktop picture on all screens.
Modified script to read from com.apple.desktop via MCX
Tested on Mavericks.
See:
https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWorkspace_Class/Reference/Reference.html
@erikng
erikng / swupd.conf
Created July 25, 2014 00:40
Mountain Lion Server - Yosemite Client Support
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Darwin/9
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/10
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-leopard-snowleopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/11
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-lion-snowleopard-leopard.merged-1.sucatalog
RewriteCond %{HTTP_USER_AGENT} Darwin/12
RewriteRule ^/index\.sucatalog$ http://%{HTTP_HOST}/cgi-bin/SoftwareUpdateServerGetCatalog?/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
@erikng
erikng / cw.sh
Last active September 16, 2015 15:44
CacheWarmer
#!/bin/bash
# CacheWarmer script to pre-cache iOS
## Version 12
## http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdate/com_apple_MobileAsset_SoftwareUpdate.xml
## https://theiphonewiki.com/wiki/Models
## http://www.everyi.com/by-identifier/ipod-iphone-ipad-specs-by-model-identifier.html
######## AppleTVs
@erikng
erikng / gist:a78784af1fe3a4f3c125
Created March 11, 2015 13:50
InstaDMG 10.7 10-2014
# Creates a 10.7 image with all the items that would appear in software update
Installer Disc Builds: 11A511, 11B26, 11C74, 11D50, 11E53, 11G63
Output Volume Name: Macintosh HD
Output File Name: 10.7 Vanilla
OS Updates:
# We're assuming you're using the newest 10.7.5 build 11G63 as your install 'media', otherwise you'll need to track down the combo updater and the supplemental update
iTunes 12.0.1 https://secure-appldnld.apple.com/iTunes12/031-08057.20141016.NewRe/iTunes12.0.1.dmg sha1:0b0b6b00dbca55e272fab2fca3f59536cf119a8a
@erikng
erikng / gist:cfc7e6e4bad00d5e8e1b
Created March 26, 2015 16:49
sketchup2015lic.plist
<?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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
MacBookPro13(5400)-9_2
67 MB/s
70.9 MB/s
MacBookPro13(Flash)-12_1
1065 MB/s
1035 MB/s
MacBookPro15(Flash)-11_2
289.7 MB/s
598.7 MB/s
MacBookAir11(Flash)-7_1