This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import plistlib | |
import sys | |
from selenium import webdriver | |
from time import sleep | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |