diff options
| -rw-r--r-- | blog/content/notes/interesting-articles.gmi | 3 | ||||
| -rw-r--r-- | scripts/p7s/google_meet.py | 30 | ||||
| -rw-r--r-- | scripts/pyproject.toml | 1 |
3 files changed, 32 insertions, 2 deletions
diff --git a/blog/content/notes/interesting-articles.gmi b/blog/content/notes/interesting-articles.gmi index 2d9d3261..5579a568 100644 --- a/blog/content/notes/interesting-articles.gmi +++ b/blog/content/notes/interesting-articles.gmi @@ -179,6 +179,9 @@ When two or more parties working towards a common goal all claim to be holding t => https://en.wikipedia.org/wiki/Slate_Star_Codex#Lizardman's_Constant Lizardman's constant The approximate percentage of responses to a poll, survey, or quiz that are not sincere +=> https://en.wikipedia.org/wiki/Solomonoff%27s_theory_of_inductive_inference Solomonoff's theory of inductive inference +Under its common sense assumptions (axioms), the best possible scientific model is the shortest algorithm that generates the empirical data under consideration. Solomonoff's induction naturally formalizes Occam's razor. + See also: => greek-task-list Greek task list diff --git a/scripts/p7s/google_meet.py b/scripts/p7s/google_meet.py index 91c27728..a26dfeef 100644 --- a/scripts/p7s/google_meet.py +++ b/scripts/p7s/google_meet.py @@ -1,6 +1,32 @@ import subprocess -# Needs the https://github.com/ChrisRegado/streamdeck-googlemeet/releases/latest browser extension and websocat +from p7s import multiline_string as _ +from p7s import systemd + +""" +Needs: + +* https://github.com/ChrisRegado/streamdeck-googlemeet/releases/latest +* https://github.com/vi/wsbroad +* https://github.com/vi/websocat/ +""" + + +def install_stream_deck_google_meet_wsbroad_server(): + systemd.create_user_unit("stream-deck-google-meet-wsbroad.service", _(""" + [Unit] + Description=Server for streamdeck-googlemeet browser extension based on wsbroad + + [Service] + ExecStart=/home/alex/.local/bin/wsbroad 127.0.0.1:2394 + + [Install] + WantedBy=default.target + """)) + + systemd.reload() + systemd.enable_now("stream-deck-google-meet-wsbroad.service") + def toggle_mute(): subprocess.run([ @@ -8,5 +34,5 @@ def toggle_mute(): "--text", "--oneshot", 'literal:{"event":"toggleMic"}', - "ws-listen:127.0.0.1:2394" + "ws://127.0.0.1:2394" ], check=True) diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml index 132467bb..a20c7783 100644 --- a/scripts/pyproject.toml +++ b/scripts/pyproject.toml @@ -20,6 +20,7 @@ setup-x12 = 'p7s.x12:setup_x12' senpai = 'p7s.senpai:main' ledger = 'p7s.ledger:main' google-meet-toggle-mute = 'p7s.google_meet:toggle_mute' +google-meet-install-stream-deck-wsbroad-server = 'p7s.google_meet:install_stream_deck_google_meet_wsbroad_server' [tool.uv] package = true |
