Skip to content

Instantly share code, notes, and snippets.

Avatar
🍁

Timothy Sutton timsutton

🍁
View GitHub Profile
@timsutton
timsutton / kickstart.pl
Created Sep 2, 2021
kickstart, macOS 11.5.2 (/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart)
View kickstart.pl
#!/usr/bin/perl
#
## Copyright © 2002-2014, 2018 Apple Inc. All Rights Reserved.
##
## IMPORTANT NOTE: This file is licensed only for use on Apple-branded
## computers and is subject to the terms and conditions of the Apple Software
## License Agreement accompanying the package this file is a part of.
## You may not port this file to another platform without Apple's written consent.
#
@timsutton
timsutton / gist:b97e5b6eebf505692be3435d78563ec9
Created Jun 3, 2021
Output of `system_profiler SPSmartCardsDataType -xml` from a vanilla 10.14.6 system
View gist:b97e5b6eebf505692be3435d78563ec9
<?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">
<array>
<dict>
<key>_SPCommandLineArguments</key>
<array>
<string>/usr/sbin/system_profiler</string>
<string>-nospawn</string>
<string>-xml</string>
@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>