Skip to content

Instantly share code, notes, and snippets.

View timsutton's full-sized avatar
🍁

Timothy Sutton timsutton

🍁
View GitHub Profile
<?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>Identifier</key>
<string>local.AdobeAcrobatProXIUpdate.munki</string>
<key>Input</key>
<dict>
<key>MAJOR_VERSION</key>
<string>11</string>
@timsutton
timsutton / autopkg-search.sh
Last active August 29, 2015 13:56
Searching AutoPkg recipes via GitHub
➜ ./autopkg-search.py Adobe
Path Repo
---- ----
AdobeAIR/AdobeAir.munki.recipe autopkg/recipes
AdobeAIR/AdobeAIR.pkg.recipe autopkg/recipes
AdobeAcrobatPro/AdobeAcrobatPro9Update.download.recipe autopkg/recipes
AdobeFlashPlayer/AdobeFlashPlayer.munki.recipe autopkg/recipes
AdobeReader/AdobeReader.pkg.recipe autopkg/recipes
AdobeFlashPlayer/AdobeFlashPlayer.pkg.recipe autopkg/recipes
@timsutton
timsutton / TestBadPkg.plist
Created February 10, 2014 20:32
Test for a nopkg Munki item fails to install
<?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>testing</string>
</array>
@timsutton
timsutton / issues.txt
Created February 24, 2014 19:44
Start of a VirtualBox OS X Packer template.
Two main issues:
1) Packer currently always uses an IDE storage controller, but in VBox only a SATA DVD image seems to be useful to boot the installer.
2) The disk device in the guest shows up as removable drive rather than an internal SATA, and this seems to confuse AutoPartition.app and make it not see a drive to partition. I'm not sure if there are some options that could be passed to AutoPartition to make it see the drive as partition-able. This is just one more reason why switching to some auto-partitioning shell code in /etc/rc.common might be better off than relying on AutoPartition.
@timsutton
timsutton / deploystudio_diff_paths.md
Last active August 29, 2015 13:57
DeployStudio diffing

What paths within the DeployStudio components would be useful to keep track of changes in?

DeployStudio's mpkg is a bundle-style distribution package that contains several packages. All the various shell scripts and configuration files seem to exist within the DeployStudio Admin app bundle at:

DeployStudioServer_vX.Y.Z.mpkg/Contents/Packages/deploystudioAdmin.pkg

Here are several useful top-level paths that could be useful to track:

DeployStudio Admin.app/Contents/Applications/DeployStudio Assistant.app
@timsutton
timsutton / autopkg-recipe-search.sh
Created March 13, 2014 18:23
autopkg recipe-search output
./autopkg search --file-contents Adobe
Path Repo (autopkg/)
---- ---------------
Adobe/AdobeDigitalEditions.download.recipe hansen-m-recipes
AdobeShockwavePlayer/AdobeShockwavePlayer.munki.recipe jleggat-recipes
AdobeShockwavePlayer/AdobeShockwavePlayer.download.recipe jleggat-recipes
AdobeAIR/AdobeAIR.pkg.recipe recipes
AdobeAIR/AdobeAir.munki.recipe recipes
AdobeAcrobatPro/AdobeAcrobatPro9Update.download.recipe recipes
@timsutton
timsutton / autodmg-hdiutil-error.sh
Last active August 29, 2015 13:57
AutoDMG sudo CLI output, hdiutil 'invalid argument' error
sudo /Applications/AutoDMG.app/Contents/MacOS/AutoDMG -r -L 7 -l - build --updates --output imagebuild/base-10.9.2-13C64.dmg ~/InstallESD.dmg
Password:
March 24, 2014 at 11:47:12 AM EDT Running as root, using /var/root/Library/Application Support/AutoDMG
March 24, 2014 at 11:47:12 AM EDT AutoDMG v1.3 build 235
March 24, 2014 at 11:47:12 AM EDT Mac OS X 10.9.2 13C64
March 24, 2014 at 11:47:12 AM EDT CPython 2.7.5 (GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68))
March 24, 2014 at 11:47:12 AM EDT PyObjC 2.3.2a0
March 24, 2014 at 11:47:12 AM EDT Setting source path to '/Users/tsutton/InstallESD.dmg'
March 24, 2014 at 11:47:12 AM EDT Setting output path to 'imagebuild/base-10.9.2-13C64.dmg'
March 24, 2014 at 11:47:12 AM EDT Setting apply updates to '1'
<metadataResponse>
<version>3.5</version>
<bundledBuildNumber>1887983</bundledBuildNumber>
<timeStamp>2014-06-09T23:26:13.831467-07:00</timeStamp>
<bulletin>
<id>75c21499-d416-4688-a162-05cdfd148611</id>
<summary default="en" datatype="plaintext">
<en>McAfee AntiVirus Plus</en>
<de>McAfee AntiVirus Plus</de>
<es>McAfee AntiVirus Plus</es>
➜ autopkg git:(master) ✗ Code/autopkg search google
Name Repo Path
---- ---- ----
GoogleDrive.munki.recipe dankeller-recipes GoogleDrive/GoogleDrive.munki.recipe
GoogleDrive.download.recipe dankeller-recipes GoogleDrive/GoogleDrive.download.recipe
GoogleDrive.munki.recipe derak-recipes Google/GoogleDrive.munki.recipe
GoogleDrive.download.recipe derak-recipes Google/GoogleDrive.download.recipe
GoogleVoiceAndVideo.download.recipe hansen-m-recipes Google/GoogleVoiceAndVideo.download.recipe
Picasa.download.recipe hansen-m-recipes Google/Picasa.download.recipe
@timsutton
timsutton / xcode_postinstall.sh
Created August 1, 2014 13:21
Xcode postinstall script
#!/bin/sh
# Adjust security policies to allow debugging by memebers of admin and _developer groups
/usr/sbin/DevToolsSecurity -enable
# Add everyone to _developer
/usr/sbin/dseditgroup -o edit -t group -a everyone _developer
# Accept the Xcode EULA
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept