Skip to content

Instantly share code, notes, and snippets.

View timsutton's full-sized avatar
🍁

Timothy Sutton timsutton

🍁
View GitHub Profile
@timsutton
timsutton / mv1Password.sh
Created May 27, 2018 19:52
1P 'mv1Password' script
#!/bin/sh
# this script removes the binary before we install it to ensure that we don't end up with a hybrid of what was there and what we're installing
echo "Removing legacy helper startup items"
loggedInUser=$(stat -f%Su /dev/console)
bundleIds=( "2BUA8C4S2C.com.agilebits.onepassword4-helper"
"2BUA8C4S2C.com.agilebits.onepassword-osx-helper"
"com.agilebits.onepassword-osx-helper"
"ws.agile.1PasswordAgent"
@timsutton
timsutton / install_loopback.sh
Last active December 5, 2017 15:49
Installing Rogue Amoeba Loopback automatically
#!/bin/bash
# This has only been tested by calling via `sudo` as the user who we want to configure it for, so there _may_ be some
APP_PATH=/Applications/Loopback.app
# this is normally called via a privileged helper tool, so user security context isn't quite so simple
# as what we're trying here with sudo. Note that we immediately get a segfault if we run this at the CLI
# using our regular user.
"${APP_PATH}/Contents/Frameworks/ExtrasInstaller.framework/Resources/EchelonInstaller" \
install \
@timsutton
timsutton / safari_window_element_repro.py
Last active December 20, 2017 14:47
Repro script for 'no window found' and 'element not visible' errors with SafariDriver
#!/usr/bin/env python
import os
import plistlib
import sys
from selenium import webdriver
from time import sleep
@timsutton
timsutton / ARIA_Engine_Update-1.9.1.6.plist
Last active August 2, 2017 20:46
Finale 25 pkginfos
<?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>tsutton</string>
<key>creation_date</key>
<date>2017-05-30T16:07:46Z</date>
@timsutton
timsutton / Sibelius8-8.6.0.plist
Last active August 2, 2017 20:46
Sibelius 8 pkginfos
<?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 / LoginDialog.xml
Last active November 27, 2019 09:07
Vectorworks 2017 deployment stuff - Munki pkginfos and a Luggage project for network licensing
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<LoginDialog>
<Days>1</Days>
<AutoFindServer>0</AutoFindServer>
<AutoFindMaxTime>1</AutoFindMaxTime>
<DontShowAtStartup>1</DontShowAtStartup>
<Servers>
<Server>license-server.org.my:5053</Server>
</Servers>
<Modules>
@timsutton
timsutton / Maya2017-Update3.plist
Last active June 29, 2017 14:05
F-ing Autodesk Maya/Mudbox 2017 pkginfos
<?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>tsutton</string>
<key>creation_date</key>
<date>2016-07-05T16:21:45Z</date>
@timsutton
timsutton / Popen_quit_by_pid.py
Last active July 15, 2021 11:14
Two examples of launching an application and quitting it using `NSRunningApplication.terminate()`
#!/usr/bin/python
# Alternate example using subprocess.Popen and finding the NSRunningApplication by PID
import AppKit
from time import sleep
from Foundation import NSURL
proc = subprocess.Popen(['/Applications/Xcode.app/Contents/MacOS/Xcode'])
@timsutton
timsutton / ProTools12-12.5.2.plist
Last active February 7, 2022 19:47
pkginfo for Pro Tools 12.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>_metadata</key>
<dict>
<key>created_by</key>
<string>tsutton</string>
<key>creation_date</key>
<date>2016-07-04T18:46:13Z</date>
@timsutton
timsutton / fetch-install-vmware-tools.sh
Created April 9, 2017 23:38
Use AutoPkg and Rich Trouton's VMware Tools recipe to download and install the 'darwin' VMware guest tools on a macOS system
#!/bin/sh -e
# Downloading VMware Tools within guest automatically using AutoPkg and Rich Trouton's
# VMware Tools recipe - used within ESXi build to workaround complicated tools
# upload issues (https://github.com/timsutton/osx-vm-templates/pull/30)
tmpdir=$(mktemp -d /tmp/vmware-tools-XXXXXX)
(
cd "${tmpdir}"