Skip to content

Instantly share code, notes, and snippets.

View timsutton's full-sized avatar
🍁

Timothy Sutton timsutton

🍁
View GitHub Profile
@timsutton
timsutton / com.adobe.Acrobat.Pro.plist
Created June 17, 2012 01:45
Suppress updates, offer to associate PDFs with Acrobat, EULA
<?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 October 12, 2015 06:08
Couple simple aliases to fetch the latest ##osx-server freenode channel logs.
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 November 9, 2012 19:00
Xcode DVT index for 4.5.2
<?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>
# 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 December 20, 2012 16:22
Adobe AIR user login script to make sure EULA is accepted and updates are disabled.
#!/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 December 12, 2015 04:39
Scrape board IDs from munkiwebadmin reports, given that clients are using an admin-provided condition: 'machine_board_id'.
#!/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
#!/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 February 14, 2013 17:20
Oracle 7 pkginfo using LaunchDaemon/Agent unload and symlink removal
<?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 February 14, 2013 17:21
Oracle 7 manifest condition
<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 December 13, 2015 18:19
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.
<?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>