Skip to content

Instantly share code, notes, and snippets.

@jannau
jannau / 10-asahi-browser-apple.conf
Last active December 8, 2025 07:15
Copy this file to /usr/share/drirc.d (on Fedora-Asahi-Remix) to workaround https://github.com/webcompat/web-bugs/issues/189524
<?xml version="1.0" standalone="yes"?>
<!--
============================================
Application bugs worked around in this file:
============================================
* web broswer OpenGL renderer override fo asahi
Several web sites (paypal.com, etsy.com) apparently block on "Apple" in
WebGL renderer strings when the UA reports Linux as OS.
@jannau
jannau / gist:a03cfbff7c1197c30abfb9f274d495a0
Created August 22, 2022 16:29
hv/trace_codecs.py log for Mac Studio M1 Ultra
# PT[39b040000:39b044000] -> ASYNC.RW I2CTracer@/arm-io/i2c0
# PT[39b044000:39b048000] -> ASYNC.RW I2CTracer@/arm-io/i2c1
# PT[39b048000:39b04c000] -> ASYNC.RW I2CTracer@/arm-io/i2c2
# PT[39b050000:39b054000] -> ASYNC.RW I2CTracer@/arm-io/i2c4
# PT[39b054000:39b058000] -> ASYNC.RW I2CTracer@/arm-io/i2c5
# PT[39b058000:39b05c000] -> ASYNC.RW I2CTracer@/arm-io/i2c6
# [I2CTracer@/arm-io/i2c5] Txn: S 32.w 24 02 00 02 S 32.r 1f 00 P
# [I2CTracer@/arm-io/i2c5] Txn: S 32.w 24 03 00 02 00 P
# [I2CTracer@/arm-io/i2c0] Txn: S 38.w 0f P
# [I2CTracer@/arm-io/i2c0] Txn: S 38.r 04 00 50 21 00 P
@jannau
jannau / eq3bt_gatt_dbus.py
Created December 13, 2016 07:59
bluez gatt dbus example for eQ-3 BT Smart Thermostat
#!/usr/bin/env python3
import sys
from datetime import datetime
import dbus
try:
from gi.repository import GObject
except ImportError:
import gobject as GObject