Skip to content

Instantly share code, notes, and snippets.

Timothy Sutton timsutton

View GitHub Profile
@timsutton
timsutton / join_zoom.sh
Created Jun 7, 2019
shell alias to join the currently-scheduled Zoom meeting on my calendar
View join_zoom.sh
join_zoom() {
# Joins the first Zoom meeting URL found in events happening now on
# your calendar, by searching their descriptions/locations info for
# "zoom.us" URLs, and opening them using `open`
#
# Another option for launching Zoom is directly, via its own URL handler like
# zoommtg://zoom.us/join?confno=123456789, but not sure how this works
# with static meeting URLs like zoom.us/my/myusername, and seems it
# could change in Zoom app updates, whereas the web URLs will always know
# what to do.
@timsutton
timsutton / mv1Password.sh
Created May 27, 2018
1P 'mv1Password' script
View mv1Password.sh
#!/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 Dec 5, 2017
Installing Rogue Amoeba Loopback automatically
View install_loopback.sh
#!/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 Dec 20, 2017
Repro script for 'no window found' and 'element not visible' errors with SafariDriver
View safari_window_element_repro.py
#!/usr/bin/env python
import os
import plistlib
import sys
from selenium import webdriver
from time import sleep
View ARIA_Engine_Update-1.9.1.6.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>_metadata</key>
<dict>
<key>created_by</key>
<string>tsutton</string>
<key>creation_date</key>
<date>2017-05-30T16:07:46Z</date>
View Sibelius8-8.6.0.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>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
<string>production</string>
@timsutton
timsutton / LoginDialog.xml
Last active Nov 27, 2019
Vectorworks 2017 deployment stuff - Munki pkginfos and a Luggage project for network licensing
View LoginDialog.xml
<?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 Jun 29, 2017
F-ing Autodesk Maya/Mudbox 2017 pkginfos
View Maya2017-Update3.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>_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 Apr 27, 2017
Two examples of launching an application and quitting it using `NSRunningApplication.terminate()`
View Popen_quit_by_pid.py
#!/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 Apr 11, 2017
pkginfo for Pro Tools 12.5.2
View ProTools12-12.5.2.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>_metadata</key>
<dict>
<key>created_by</key>
<string>tsutton</string>
<key>creation_date</key>
<date>2016-07-04T18:46:13Z</date>
You can’t perform that action at this time.