Skip to content

Instantly share code, notes, and snippets.

Avatar
🍁

Timothy Sutton timsutton

🍁
View GitHub Profile
@timsutton
timsutton / com.adobe.Acrobat.Pro.plist
Created Jun 17, 2012
Suppress updates, offer to associate PDFs with Acrobat, EULA
View com.adobe.Acrobat.Pro.plist
<?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>10</key>
<dict>
<key>AVAlert</key>
<dict>
<key>Checkbox</key>
<array>
@timsutton
timsutton / freenode_osx_server_log_aliases.sh
Last active Oct 12, 2015
Couple simple aliases to fetch the latest ##osx-server freenode channel logs.
View freenode_osx_server_log_aliases.sh
alias osx_server_today="open http://osx.michaellynn.org/freenode-osx-server/freenode-osx-server_\$(date +%Y-%m-%d).html"
alias osx_server_yest="open http://osx.michaellynn.org/freenode-osx-server/freenode-osx-server_\$(date -v-1d +%Y-%m-%d).html"
function osx_server_search {
open http://osx.michaellynn.org/freenode-osx-server/search.php\?keyword\=${1}
}
@timsutton
timsutton / a.xml
Created Nov 9, 2012
Xcode DVT index for 4.5.2
View a.xml
<?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>downloadables</key>
<array>
<dict>
<key>fileSize</key>
<integer>180040642</integer>
<key>identifier</key>
View jenkins_build_instaup2date.sh
# assumes jenkins user is in sudoers
# assumes you have some InstallerDiscs available in /var/jenkins/discs
# assumes you'll clean up the workspace before the job starts, so that the svn checkout won't complain about a symlink where it expects a directory
# provide a TERM to satisfy instaUp2Date
export TERM=xterm
# get InstaDMG source
svn checkout http://instadmg.googlecode.com/svn/trunk instadmg-svn
@timsutton
timsutton / adobe_air_suppress_crap.sh.sh
Created Dec 20, 2012
Adobe AIR user login script to make sure EULA is accepted and updates are disabled.
View adobe_air_suppress_crap.sh.sh
#!/bin/sh
AIRPATH="$HOME/Library/Application Support/Adobe/AIR"
if [[ ! -d "$AIRPATH" ]]; then
mkdir -p "$AIRPATH"
fi
echo 99 > "$AIRPATH/eulaAccepted"
echo 1 > "$AIRPATH/updateDisabled"
@timsutton
timsutton / getBoardIds.py
Last active Dec 12, 2015
Scrape board IDs from munkiwebadmin reports, given that clients are using an admin-provided condition: 'machine_board_id'.
View getBoardIds.py
#!/usr/bin/env python
# run from the same directory that contains the munkiwebadmin database,
# with the app's virtualenv activated (ie. 'source /paht/to/env/bin/activate')
import sqlite3
import plistlib
import sys
from django.utils.encoding import smart_str
from pprint import pprint
View adobe_air_suppress_crap.sh
#!/bin/sh
AIRPATH="$HOME/Library/Application Support/Adobe/AIR"
if [[ ! -d "$AIRPATH" ]]; then
mkdir -p "$AIRPATH"
fi
echo 99 > "$AIRPATH/eulaAccepted"
echo 1 > "$AIRPATH/updateDisabled"
@timsutton
timsutton / Java7_Oracle_u13.xml
Created Feb 14, 2013
Oracle 7 pkginfo using LaunchDaemon/Agent unload and symlink removal
View Java7_Oracle_u13.xml
<?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>testing</string>
<string>production</string>
@timsutton
timsutton / Java7_manifest_condition.xml
Created Feb 14, 2013
Oracle 7 manifest condition
View Java7_manifest_condition.xml
<dict>
<key>condition</key>
<string>(os_vers_minor &gt;= 7 AND os_vers_patch &gt;= 3) OR (os_vers_minor &gt;= 8)</string>
<key>optional_installs</key>
<array>
<string>Java7_Oracle</string>
</array>
</dict>
@timsutton
timsutton / Profile_AdobeAcrobatProAndReader_Settings.mobileconfig
Last active Dec 13, 2015
Configuration profile for Acrobat Pro 9/X/XI and Reader X/XI, "managed often", to automatically accept the EULA and disable the prompt to associate with .pdf files, made with mcxToProfile. For Pro 9, it also disables the update check.
View Profile_AdobeAcrobatProAndReader_Settings.mobileconfig
<?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>PayloadContent</key>
<dict>
<key>com.adobe.Reader</key>