Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
# Taken from https://www.reddit.com/r/MacOS/comments/i4czgu/big_sur_airpods_script/gck3gz3/ | |
# by https://github.com/smithumble | |
use framework "IOBluetooth" | |
use scripting additions | |
set AirPodsName to "AirPods" | |
on getFirstMatchingDevice(deviceName) | |
repeat with device in (current application's IOBluetoothDevice's pairedDevices() as list) |
(require-macros :lib.macros) | |
(require-macros :lib.advice.macros) | |
(local windows (require :windows)) | |
(local emacs (require :emacs)) | |
; (local slack (require :slack)) | |
(local vim (require :vim)) | |
(local {:concat concat | |
:logf logf} (require :lib.functional)) |