Skip to content

Instantly share code, notes, and snippets.

View travismorton's full-sized avatar
🚐
💨

Travis Morton travismorton

🚐
💨
View GitHub Profile
@travismorton
travismorton / bridge.py
Last active March 7, 2024 02:15
Wayland mumble push-to-talk hack using libinput and dbus
import dbus
# This libinput is running from master, not what's in pip:
# git clone https://github.com/OzymandiasTheGreat/python-libinput.git
from libinput import LibInput, ContextType, EventType
from libinput.constant import ButtonState
# The CLI call that does the same "startTalking" dbus method
# gdbus call -e -d net.sourceforge.mumble.mumble -o / -m net.sourceforge.mumble.Mumble.startTalking
@travismorton
travismorton / whisper.exs
Last active December 15, 2022 06:22
Whisper Tokenizer with Elixir Tokenizers
languages = %{
en: "english",
zh: "chinese",
de: "german",
es: "spanish",
ru: "russian",
ko: "korean",
fr: "french",
ja: "japanese",
pt: "portuguese",