Skip to content

Instantly share code, notes, and snippets.

View arubdesu's full-sized avatar
📛

Allister Banks arubdesu

📛
View GitHub Profile
@arubdesu
arubdesu / loginwindow.plist
Created May 1, 2015 16:12
For every vendor that doesn't care enough to do their Mac packages correctly
<?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>AutoLaunchedApplicationDictionary</key>
<array>
<dict>
<key>Hide</key>
<true/>
<key>Path</key>
@arubdesu
arubdesu / Makefile
Created May 8, 2015 18:31
makefile for github.com/moretension/duti
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
PACKAGE_VERSION=1.5.3
TITLE=duti
REVERSE_DOMAIN=com.github.moretension.duti
PAYLOAD= \
pack-usr-local-bin-duti \
pack-duti-man
l_usr_local_share_man_man1: l_usr_local_share
@arubdesu
arubdesu / Makefile
Created June 19, 2015 19:11
luggage makefile for applying @pudquick's types-based 'fix' for 10.10 VM graphics, for use with @chilcote's outset
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=beamSyncOutset
REVERSE_DOMAIN=org.yours
PACKAGE_VERSION=0.1
PAYLOAD=pack-usr-local-outset-everyboot-scripts-beamSync.py
l_usr_local_outset: l_usr_local
@sudo mkdir -p ${WORK_D}/usr/local/outset/everyboot-scripts
@sudo chown -R root:wheel ${WORK_D}/usr/local/outset
@arubdesu
arubdesu / fixed.xml
Created July 13, 2015 21:00
sonicpi
<?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>Description</key>
<string>Download recipe for SonicPi</string>
<key>Identifier</key>
<string>com.github.aanklewicz.download.sonicpi</string>
<key>Input</key>
<dict>
@arubdesu
arubdesu / Verification Notes.txt
Last active August 29, 2015 14:24
firmware patched with 10.10.4, as per Maurits(http://www.lai.nl/apple/) in the AFP548 comments
As per the dist in 031-25233, this is the relevant stanza with I'm assuming the board ID's as each dicts key:
var EFIDict = {
"Mac-942459F5819B171B" : {
"efi-version" : "MBP81.88Z.0047.B2A.1506082203"
},
"Mac-FC02E91DDD3FA6A4" : {
"efi-version" : "IM131.88Z.010A.B08.1506081728"
},
"Mac-42FD25EABCABB274" : {
"efi-version" : "IM151.88Z.0207.B03.1506050728"
@arubdesu
arubdesu / pyWiFi.py
Created August 21, 2015 18:02 — forked from chilcote/gist:10010307
Fun with CoreWLAN and python
#!/usr/bin/python
'''
Playing around with CoreWLAN to return information about the wi-fi connection
Documentation:
https://developer.apple.com/library/mac/documentation/CoreWLAN/Reference/CWInterface_reference/translated_content/CWInterface.html
'''
import objc
@arubdesu
arubdesu / check_ad.py
Last active August 28, 2016 16:37
workflow step in DeployStudio to stop setting up for binding with hostname in a 'bad' (read= already used on a pc or some other mistakenly chosen) AD OU/container
#!/usr/bin/python
"""Checks if a computername already exists in a container we can't write to,
to prevent errors binding."""
import os
import subprocess
import sys
@arubdesu
arubdesu / AddCodeSigVerificationToRecipeWiki.md
Last active September 24, 2015 20:33
New page for under the Autopkg->Recipes wiki heading

###Using CodeSignatureVerification in your recipe

The CodeSignatureVerifier processor was added to allow signature verification for both:

  1. Installer packages (.pkg or .mpkg).

  2. Application bundles (.app). This option is necessary since not all software is supplied as packages. Instead, software is commonly released for download 'bare' at the root of a zip archive. CodeSignatureVerifier can look inside a DMG mount, but zip's must use the Unarchiver processor first.

Take into account the fact that both the computer running autopkg and the one that genrates the required configuration settings should have the default spctl settings, meaning Gatekeeper allows apps from the App Store and those signed with an Apple-recognized Developer ID. ####Adding Application bundle (.app) verification to your recipe

@arubdesu
arubdesu / garagebandLauncher.plist
Created September 21, 2015 20:42
example OnDemand item
<?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>_metadata</key>
<dict>
<key>created_by</key>
<string>abanks</string>
<key>creation_date</key>
<date>2015-03-23T21:32:29Z</date>
@arubdesu
arubdesu / Info.plist
Last active September 23, 2015 15:15
data to cross-correlate between App Store JSON response and caching server debug log
<?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>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>