Skip to content

Instantly share code, notes, and snippets.

View raku-cat's full-sized avatar
๐Ÿ•

Raku raku-cat

๐Ÿ•
View GitHub Profile
@raku-cat
raku-cat / ztnet-dns.py
Last active August 3, 2025 05:28
Python script to generate a DNS zone file for hickory-dns using the ztnet api. Mostly machine generated with AI.
#!/usr/bin/env python3
# ztnet-dns: Generate and update a Hickory DNS zone file from ZTNet API
import os
import sys
import re
import argparse
import json
import requests
from datetime import datetime
@raku-cat
raku-cat / measure_click_gtk.py
Last active July 22, 2025 22:54
Made quick and dirty using chatgpt
import gi
gi.require_version("Gtk", "4.0")
from gi.repository import Gtk, GLib, Gdk
import time
class MouseTimer(Gtk.Application):
def __init__(self):
super().__init__()
self.press_time = None
00:00:00.000 [INFO] [sway/main.c:321] Sway version 1.11
00:00:00.000 [INFO] [sway/main.c:322] wlroots version 0.19.0
00:00:00.001 [INFO] [sway/main.c:78] Linux partyvan 6.15.5-lqx1-1-lqx #1 ZEN SMP PREEMPT_DYNAMIC Sun, 06 Jul 2025 15:06:16 +0000 x86_64 GNU/Linux
00:00:00.001 [INFO] [sway/main.c:94] Contents of /etc/lsb-release:
00:00:00.001 [INFO] [sway/main.c:78] DISTRIB_ID="Arch"
00:00:00.001 [INFO] [sway/main.c:78] DISTRIB_RELEASE="rolling"
00:00:00.001 [INFO] [sway/main.c:78] DISTRIB_DESCRIPTION="Arch Linux"
00:00:00.001 [INFO] [sway/main.c:94] Contents of /etc/os-release:
00:00:00.001 [INFO] [sway/main.c:78] NAME="Arch Linux"
00:00:00.001 [INFO] [sway/main.c:78] PRETTY_NAME="Arch Linux"
00:00:00.000 [INFO] [sway/main.c:302] Sway version 1.12-dev-94c819cc1 (Jul 9 2025, branch 'master')
00:00:00.000 [INFO] [sway/main.c:303] wlroots version 0.20.0-dev
00:00:00.001 [INFO] [sway/main.c:78] Linux partyvan 6.15.5-lqx1-1-lqx #1 ZEN SMP PREEMPT_DYNAMIC Sun, 06 Jul 2025 15:06:16 +0000 x86_64 GNU/Linux
00:00:00.001 [INFO] [sway/main.c:94] Contents of /etc/lsb-release:
00:00:00.001 [INFO] [sway/main.c:78] DISTRIB_ID="Arch"
00:00:00.001 [INFO] [sway/main.c:78] DISTRIB_RELEASE="rolling"
00:00:00.001 [INFO] [sway/main.c:78] DISTRIB_DESCRIPTION="Arch Linux"
00:00:00.001 [INFO] [sway/main.c:94] Contents of /etc/os-release:
00:00:00.001 [INFO] [sway/main.c:78] NAME="Arch Linux"
00:00:00.001 [INFO] [sway/main.c:78] PRETTY_NAME="Arch Linux"
โ— bsapiratevan
State: degraded
Units: 398 loaded (incl. loaded aliases)
Jobs: 0 queued
Failed: 1 units
Since: Thu 2025-03-20 03:29:40 CDT; 3 months 22 days ago
systemd: 257.7-1-arch
CGroup: /
โ”œโ”€init.scope
โ”‚ โ””โ”€1 /usr/lib/systemd/systemd --system --deserialize=62 splash
โ— partyvan
State: running
Units: 481 loaded (incl. loaded aliases)
Jobs: 0 queued
Failed: 0 units
Since: Sat 2025-07-12 03:27:10 CDT; 30min ago
systemd: 257.7-1-arch
CGroup: /
โ”œโ”€6518 sway --unsupported-gpu
โ”œโ”€6537 waybar -b bar-0
โ— partyvan
State: running
Units: 481 loaded (incl. loaded aliases)
Jobs: 0 queued
Failed: 0 units
Since: Sat 2025-07-12 03:27:10 CDT; 25min ago
systemd: 257.7-1-arch
CGroup: /
โ”œโ”€init.scope
โ”‚ โ””โ”€1 /usr/lib/systemd/systemd --switched-root --system --deserialize=40
This file has been truncated, but you can view the full file.
======================
Proton: 1725481090 GE-Proton9-13
SteamGameId: 394690
Command: ['/home/glizzy/.local/share/ValveSteam/steamapps/common/Tower Unite/Tower.exe', '-vr']
Options: {'forcelgadd'}
depot: 0.20240820.99315
pressure-vessel: 0.20240820.0 scout
scripts: 0.20240820.0
sniper: 0.20240820.99315 sniper 0.20240820.99315
Kernel: Linux 6.10.10-lqx2-1-lqx #1 ZEN SMP PREEMPT Sun, 15 Sep 2024 19:59:39 +0000 x86_64
From e4dbc61b2a59eb84953f604269ede6549667b5ee Mon Sep 17 00:00:00 2001
From: Simon Ser <[email protected]>
Date: Fri, 10 May 2024 16:11:38 +0200
Subject: [PATCH] Add support for linux-drm-syncobj-v1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4262
---
sway/server.c | 6 ++++++
1 file changed, 6 insertions(+)
# Maintainer: raku_cat <raku at raku dot party>
# Based on PKGBUILD from: Keith Plant <kplantjr at gmail dot com>
pkgname="wlroots-explicitsync"
pkgver=0.18.0.r7094.1f163742
pkgrel=1
pkgdesc="Modular Wayland compositor library"
license=("MIT")
url="https://gitlab.freedesktop.org/emersion/wlroots"
arch=("x86_64")