Skip to content

Instantly share code, notes, and snippets.

View timsutton's full-sized avatar
🍁

Timothy Sutton timsutton

🍁
View GitHub Profile
@timsutton
timsutton / idekit-strings.txt
Last active December 15, 2015 11:49
Some version comparison logic within /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit. To force always installing possible support pkgs, set: defaults write com.apple.dt.Xcode IDEAlwaysShowAllPackagesToInstall -bool YES
IDETimestampOfMobileDeviceDevelopmentPackage
IDETimestampOfMobileDeviceFrameworkPackage
IDESkipDownloadableInstallationDuringFLE
IDEAlwaysShowAllPackagesToInstall
--------
MobileDevicePkgAppsToQuit
AppsToQuitBundleIdentifiers
com.apple.dt.Xcode
<installation-check script='InstallationCheck()'/>
<volume-check script='VolumeCheck()'/>
<script>
var gCurrentiTunesVersion = '11.0.2';
var gPreviousiTunesVersion = '11.0.1'; // There is no patch for this release we will use the CurrentiTunesVersion value.
var gOSMinimumVersion = '10.6.8';
function installMobilitySupport()
{
if (system.files.fileExistsAtPath('/tmp/com.apple.mpkg.iTunes.noAMDS')){
@timsutton
timsutton / Settings_DisableIncomingBluetoothAudio.mobileconfig
Last active October 18, 2021 07:02
disable bluetooth incoming audio requests profile
<?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.apple.Bluetooth.ByHost</key>
@timsutton
timsutton / gist:5503214
Last active December 16, 2015 21:58 — forked from nmcspadden/AddWifi.sh
#!/bin/sh
# Set paths to our utilities
networksetup=/usr/sbin/networksetup
airport=/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
# Determines which OS the script is running on
osvers=$(sw_vers -productVersion | awk -F. '{print $2}')
# On 10.7 and higher, the Wi-Fi interface needs to be identified.
@timsutton
timsutton / make_spss_pkg.sh
Created May 3, 2013 16:00
repackaging script for SPSS 21 using FPM
#!/bin/sh
# Create a package for SPSS's silent installer using FPM. We do this because the "silent"
# installer requires a user to be logged in so that the Java installer will run. It
# has only been tested with version 21. FPM is just a convenience here - substituting
# pkgbuild will work if you create a pkg root structure yourself.
#
# It requires one argument, the path to the .bin silent installer.
#
# Configure VERSION, ID_PREFIX, INSTALL_DIR to your liking. We set INSTALL_DIR to its
@timsutton
timsutton / system.log
Last active December 17, 2015 04:28
system log output when Xcode DocSet logging enabled: defaults write com.apple.dt.Xcode DSMLoggingEnabled -bool TRUE
May 9 15:59:45 tim-imac. Xcode[30368]: DSMDocSetLoader: ...properties of SDK: <DVTSDK:0x4001b9820:'iphoneos6.1':iOS 6.1:<DVTFilePath:0x4001b93a0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk'>>.
May 9 15:59:45 tim-imac. Xcode[30368]: Creating DSAGroup for URL: http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone6_1.atom. Name: Apple iPhone OS 6.1.
May 9 15:59:45 tim-imac. Xcode[30368]: Group from SDK: <DSADocSetGroup: Apple iPhone OS 6.1> (null)
May 9 15:59:45 tim-imac. Xcode[30368]: DSMDocSetLoader: ...properties of SDK: <DVTSDK:0x4001b2d20:'iphonesimulator6.1':Simulator - iOS 6.1:<DVTFilePath:0x4001b21c0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk'>>.
May 9 15:59:45 tim-imac. Xcode[30368]: Creating DSAGroup for URL: http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone.atom. Name: Apple iPhone OS.
May 9 15:59:45 tim-imac. Xcode[30368]: Gro
@timsutton
timsutton / gist:5569932
Created May 13, 2013 17:24
Google Chrome Master Preferences
{
"bookmark_bar": {
"show_on_all_tabs": true
},
"browser": {
"check_default_browser": false,
"show_update_promotion_info_bar": false,
"show_home_button" : true
},
"distribution": {
@timsutton
timsutton / isBaroloOrLater.perl
Last active February 24, 2022 21:43
kickstart script from Apple Remote Desktop 3.5.3 update: http://support.apple.com/kb/DL1532. Path to kickstart: /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
#!/usr/bin/perl
# Copyright (c) 2002-2009, Apple, Inc. All Rights Reserved.
sub Usage1
{
qq{
kickstart -- Quickly uninstall, install, activate, configure, and/or restart
components of Apple Remote Desktop without a reboot.
kickstart -uninstall -files -settings -prefs
@timsutton
timsutton / profile_su_type.xml
Created May 26, 2013 16:43
Sample com.apple.SoftwareUpdate .mobileconfig
<key>PayloadContent</key>
<array>
<dict>
<key>CatalogURL</key>
<string>http://sus.my.org/index.sucatalog</string>
<key>PayloadDisplayName</key>
<string>Software Update</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
@timsutton
timsutton / profile_managedclient_type.xml
Created May 26, 2013 16:45
Sample com.apple.ManagedClient.preferences .mobileconfig
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.apple.SoftwareUpdate</key>
<dict>
<key>Forced</key>
<array>
<dict>