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 | |
from M2Crypto import X509, BIO, m2 | |
import os | |
from ctypes import CDLL | |
from ctypes import * | |
from ctypes.util import find_library | |
class PKCS7_SIGNED(Structure): |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"github.com/boltdb/bolt" | |
"github.com/micromdm/micromdm/platform/pubsub/inmem" |
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 | |
# Remove *all* components of iLife '11 as installed by the "DVD" installer | |
rm -rf \ | |
"/Applications/iWeb.app" \ | |
"/Library/Audio/Apple Loops/Apple/iLife Sound Effects" \ | |
"/Applications/GarageBand.app" \ | |
"/Library/Audio/Apple Loops/Apple/Apple Loops for GarageBand" \ | |
"/Applications/iDVD.app" \ |
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 | |
if [ $# -lt 5 ]; then | |
echo "$0 <host> <user> <datastore> <folder> <filepath>" | |
echo | |
echo " examples:" | |
echo " $0 10.0.0.1 root datastore1 ISOs /tmp/Linux.iso" | |
exit 1 | |
fi |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/groob/plist" | |
) | |
const cmdPlist = `C "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
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 | |
# create a "wireless manifest" for Apple pkg installers. for details | |
# on the manifest see: http://help.apple.com/deployment/osx/#/ior5df10f73a | |
import subprocess | |
from tempfile import mkdtemp | |
import os | |
from xml.dom.minidom import parse, parseString | |
from hashlib import md5 |
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
/*.status.json |
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
<?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>PayloadDisplayName</key> | |
<string>Dock</string> | |
<key>PayloadIdentifier</key> |
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
/* re-implementation of the behaviour that the /usr/bin/defaults application | |
* uses to read sandboxed preference data */ | |
#include <CoreFoundation/CoreFoundation.h> | |
#define EX_BUNDLE_ID "com.apple.mail" | |
#define EX_KEY "JunkMailBehavior" | |
// undocumented, internal CFPreferences API call | |
extern CFDictionaryRef _CFPreferencesCopyApplicationMap(CFStringRef userName, CFStringRef hostName); |