Skip to content

Instantly share code, notes, and snippets.

View hfike's full-sized avatar

Harry Fike hfike

  • Maryland, United States
View GitHub Profile
@hfike
hfike / gist:7128098
Created October 23, 2013 22:38
install profiles on boot
#!/bin/bash
# From Allister, modified by Harry Fike 9-27-13
# Will install the trust profile, even though it claims it won't
# This script will apply all CONFIGURATION/enrollment (not trust) profiles in the 'profiles' folder as if it's a payload-free package
# ASSUMPTIONS:
# 1. All .mobileconfig Payload Scope's are system and NOT TRUST PROFILES
# 2. Installation is by user with elevated privileges (admin/sudo is fine)
#!/bin/bash
# From Allister, modified by Harry Fike 9-27-13
# Will install the trust profile, even though it claims it won't
# This script will apply all CONFIGURATION/enrollment (not trust) profiles in the 'profiles' folder as if it's a payload-free package
# ASSUMPTIONS:
# 1. All .mobileconfig Payload Scope's are system and NOT TRUST PROFILES
# 2. Installation is by user with elevated privileges (admin/sudo is fine)
@hfike
hfike / gist:36332142eec75007c1b6
Created May 20, 2014 20:24
failed _appstore removals
Starting...
Performing preflight tasks...
preflight stdout: Preflight report submmitted for lt-86199.
Removing AppStore – GarageBand (1 of 3)...
select pkg_key from pkgs where pkgid = com.apple.pkg.GarageBand_AppStore
select pkg_key from pkgs where pkgname = com.apple.pkg.GarageBand_AppStore
ERROR: com.apple.pkg.GarageBand_AppStore not found in database.
pkgkeys: []
ERROR: Uninstall of AppStore – GarageBand failed.
Checking for skipped items that require iLife11AppStore_iPhoto
@hfike
hfike / gist:3e622ee48edd3b931a2f
Last active August 29, 2015 14:01
mwa errors
'Errors': ['com.apple.pkg.GarageBand_AppStore not found in database.',
u'Uninstall of AppStore \u2013 GarageBand failed.',
'com.apple.pkg.iPhoto_AppStore not found in database.',
u'Uninstall of AppStore \u2013 iPhoto failed.',
'com.apple.pkg.iMovie_AppStore not found in database.',
u'Uninstall of AppStore \u2013 iMovie failed.'],
'RemovalResults': [{'display_name': u'AppStore \u2013 GarageBand',
'name': 'iLife11AppStore_GarageBand',
@hfike
hfike / iLife11AppStore_iMovie-9.0.8.plist
Created May 20, 2014 21:09
iLife11AppStore_GarageBand-6.0.5.plist
<?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>autoremove</key>
<true/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
@hfike
hfike / .MASManifest
Last active August 29, 2015 14:01
new MAS madness
<?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">
<array>
<dict>
<key>adamID</key>
<string>682658836</string>
<key>bundleID</key>
<string>com.apple.garageband10</string>
<key>installerVersionID</key>
<?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>autoremove</key>
<true/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
@hfike
hfike / gist:422945cedad4ed94328e
Created January 15, 2015 14:19
spss22 pkginfo
<?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>
autopkg run MSOffice2011Updates.munki -v
Processing MSOffice2011Updates.munki...
MSOffice2011UpdateInfoProvider
MSOffice2011UpdateInfoProvider: Found URL http://download.microsoft.com/download/7/0/C/70C26EA7-EF6D-4521-9805-BE8403739785/Office2011-1449Update_EN-US.dmg
MSOffice2011UpdateInfoProvider: Got update: 'Office 2011 14.4.9 Update'
MSOffice2011UpdateInfoProvider: Update requires previous update version 14.1.0
MSOffice2011UpdateInfoProvider: Additional pkginfo: {'display_name': 'Office 2011 14.4.9 Update', 'description': '<html><p>This update fixes critical issues and also helps to improve security. It includes fixes for vulnerabilities that an attacker can use to overwrite the contents of your computer\'s memory with malicious code.</p>\n\n<p>For detailed information about this update, please visit the following Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=529192" target="_blank">http://go.microsoft.com/fwlink/?LinkID=529192</a></p>\n\n<p>For additional assistance, or to obtain a downloadab
<dict>
<key>CFBundleShortVersionString</key>
<string>9.0 (414)</string>
<key>CFBundleVersion</key>
<string>9.0.0f414</string>
<key>path</key>
<string>/Library/Application Support/Adobe/Plug-Ins/CC/File Formats/Camera Raw.plugin</string>
<key>type</key>
<string>bundle</string>
<key>version_comparison_key</key>