Mounting DMGs w/ HFS partitions:
http://linuxforums.org.uk/index.php?topic=1072.0
apt-get install hfsplus hfsutils hfsprogs dmg2img
<?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>Label</key> | |
<string>org.my.logoutwatcher</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/myorg/logoutwatcher.sh</string> | |
</array> |
Mounting DMGs w/ HFS partitions:
http://linuxforums.org.uk/index.php?topic=1072.0
apt-get install hfsplus hfsutils hfsprogs dmg2img
onLogout() { | |
# Insert whatever script you need to run at logout | |
exit | |
} | |
echo "INFO - Watching ${HOME}" >> /var/log/org.my.log | |
trap 'onLogout' SIGINT SIGHUP SIGTERM | |
while true; do |
#!/usr/bin/python | |
# pylint: disable=fixme, line-too-long, missing-docstring, C0103 | |
# Many parts of this were taken from Greg Neagle's COSXIP (https://github.com/munki/createOSXinstallPkg) | |
# No parsing of 'BannedRegexMatchVersion' keys currently because regex is hard. | |
# | |
# Output prints a list of incompatible apps for each major OS X version | |
# with its version and optional file listing of the target app. | |
import plistlib |
#!/usr/bin/python | |
from macholib import MachO | |
import macholib | |
import os | |
import sys | |
path = sys.argv[1] | |
for root, dirs, files in os.walk(path): |
// | |
// main.c | |
// pbzx | |
// | |
// Created by PHPdev32 on 6/20/14. | |
// Licensed under GPLv3, full text at http://www.gnu.org/licenses/gpl-3.0.txt | |
// | |
#include <stdint.h> | |
#include <stdio.h> |
#!/usr/bin/python | |
import xml.etree.ElementTree as ET | |
import requests | |
import uuid | |
params = {'cup2hreq': 'foo', 'cup2key': 'bar'} | |
platform = 'mac' | |
os_version = '10.12' |
<?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>Label</key> | |
<string>myorg.pf.plist</string> | |
<key>Program</key> | |
<string>/usr/local/bin/pfstart.sh</string> | |
<key>ProgramArguments</key> | |
<array> |
#!/bin/bash -x | |
# Wait for networking to be up, just in case | |
/usr/sbin/ipconfig waitall | |
# Loop on the presence of the standard Apple ruleset before proceeding | |
# This way we don't accidentally get overruled (SWIDT) if com.apple.pfctl | |
# happens to be loaded after myorg.pf. | |
count=0 | |
while [[ $(pfctl -sr 2>&1 | egrep "apple" | wc -l) -eq 0 && $count -lt 12 ]]; do |
#!/usr/bin/python | |
# | |
# getosversionfromdmg.py | |
# | |
# Copyright (c) 2014 The Regents of the University of Michigan | |
# | |
# Retrieves the OS version and build from the InstallESD.dmg contained in | |
# a typical "Install (Mac) OS X <Name>.app" bundle. | |
# | |
# To run: |