This file contains 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
#!/bin/sh | |
#enable logging | |
defaults write /Library/Preferences/com.apple.MCXDebug debugOutput -2 | |
defaults write /Library/Preferences/com.apple.MCXDebug collateLogs 1 | |
touch /var/db/MDM_EnableDebug | |
#reset DEP | |
rm /var/db/.AppleSetupDone | |
rm -rf /var/db/ConfigurationProfiles/ | |
rm /Library/Keychains/apsd.keychain | |
# Remove JAMF Framework |
This file contains 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 | |
''' | |
reposado update notification: reports changed Apple products between repo_sync runs | |
Checks the current list of updates versus the previous list of updates and | |
reports on the changes. Run this script after your repo_sync run to see the | |
changes between syncs. You can then hand this report off in email if you wish. | |
For example: |
This file contains 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 ctypes, ctypes.util | |
# Import CoreGraphics as a C library, so we can call some private functions | |
c_CoreGraphics = ctypes.CDLL(ctypes.util.find_library('CoreGraphics')) | |
def disable_beam_sync(doDisable): | |
if doDisable: | |
# Disabling beam sync: | |
# 1st: Enable Quartz debug |
This file contains 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
# App Store playing | |
import urllib, urllib2, json, plistlib | |
### | |
# Utility function for performing an iTunes-style search | |
def perform_itunes_search(api_url, query_list=[]): | |
query_str = urllib.urlencode(query_list) | |
response_handle = urllib2.urlopen('https://itunes.apple.com/%s?%s' % (api_url, query_str)) |