Skip to content

Instantly share code, notes, and snippets.

View BourgonLaurent's full-sized avatar

Laurent Bourgon BourgonLaurent

  • Montreal, Canada
View GitHub Profile
@BourgonLaurent
BourgonLaurent / APPro_LMC_change.applescript
Last active August 7, 2022 03:58
AirPods Pro Listening Mode Changer. Copy-Paste the contents of the file "AirPods Pro Listening Mode Changer.json" inside BTT. The two other files are the scripts used by the widget. The last file (APPro_LMC_diag.applescript) retrieves the necessary information to add a new device, or debug a current one.
-- Change the listening mode of AirPods Pro, Laurent Bourgon 2020
-- Works in the background using private APIs, thanks to @smithumble
-- Frameworks to connect with Bluetooth
use framework "IOBluetooth"
use scripting additions
-- Get AirPods Name
tell application "BetterTouchTool" to set AIRPODS_PRO_NAME to get_string_variable "AirPodsWg_DevceName"
@BourgonLaurent
BourgonLaurent / AQTGroupModifier.py
Last active July 17, 2020 22:28
Modify specific groups inside a .bttpreset. Tested on Python 3.8.4, (normally should work on 3.6+). groups_to_modify.json included.
## AQTGroupModifier.py: Modify specific groups inside a .bttpreset
# Laurent Bourgon 2020
## IMPORTS
# Librairies
import os
import sys
import json
import shutil
@BourgonLaurent
BourgonLaurent / 2019-11-10_13:30_SpringBoard.log
Created November 10, 2019 18:41
ColorFlow4 SpringBoard crash, iPadOS 13.2.2
Date: 2019-11-10 13:30
Process: SpringBoard
Bundle id: com.apple.springboard
Device: iPad Pro (10.5-inch), iOS 13.2.2
Exception type: NSInvalidArgumentException
Reason: -[MediaControlsTransportStackView _updateButtonImage:button:]: unrecognized selector sent to instance 0x14db2fbe0
Culprit: ColorFlow4.dylib
Call stack:
0 CoreFoundation 0x00000001ba417820 __exceptionPreprocess
@BourgonLaurent
BourgonLaurent / firefox-nightly-chocolatey-2019-07-15_cmder_dump.log
Last active July 16, 2019 00:26
Install log for chocolatey's firefox-nightly (2019-07-15)
λ choco install firefox-nightly --pre
Chocolatey v0.10.15
Installing the following packages:
firefox-nightly
By installing you accept licenses for the packages.
firefox-nightly v70.0.1.2019071509-alpha
firefox-nightly package files install completed. Performing other installation steps.
The package firefox-nightly wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.