Skip to content

Instantly share code, notes, and snippets.

@u1-liquid
u1-liquid / AGENTS.md
Last active October 28, 2025 07:02
今使ってるAGENTS.md、spec-workflow MCP + Taskwarrior CLI + VSCode/Codex内蔵のTodoツールでコンテキスト・タスクを管理するように

AGENTS.md

1) Operating Model

Purpose

Turn intent into shipped outcomes with three synchronized tiers.

Principles

// Bindings required:
// - R2: R2 bucket
// - KV: KV namespace
// - MONITOR_URL: e.g. "https://example.com/test.json"
const MONITOR_URL = 'https://example.com/test.json'
export default {
async scheduled(event, env, ctx) {
ctx.waitUntil(run(env));
// ==UserScript==
// @name YouTube Live Chat Show Only Specific Author
// @namespace https://github.com/u1-liquid
// @version 1.0.1
// @description YouTubeのライブチャット上で特定ユーザー以外のメッセージを非表示
// @grant none
// @author u1-liquid
// @source https://gist.github.com/u1-liquid/97c9a7c97d1712c3f9d7e5118a6254a9
// @include https://www.youtube.com/live_chat?*
// @run-at document-idle
// ==UserScript==
// @name YouTube Custom CSS
// @namespace https://github.com/u1-liquid
// @version 1.0.1
// @description YouTube上で特定要素を非表示/スタイルを調整
// @grant GM_addStyle
// @author u1-liquid
// @source https://gist.github.com/u1-liquid/6e768d1761ec4abed9815268fabcae43
// @match https://www.youtube.com/*
// @run-at document-idle
@u1-liquid
u1-liquid / meet-voicevox-tts.user.js
Last active September 25, 2025 10:04
VOICEVOX TTS for Google Meet
// ==UserScript==
// @name VOICEVOX TTS for Google Meet
// @namespace https://github.com/u1-liquid
// @version 1.0.12
// @description Google Meetのチャット送信メッセージをローカルのVOICEVOXで読み上げる
// @grant GM_xmlhttpRequest
// @author u1-liquid
// @source https://gist.github.com/u1-liquid/da1a04abf7a69f7229d107b03655b751
// @match https://meet.google.com/*
// @run-at document-body
@u1-liquid
u1-liquid / gather-voicevox-tts.user.js
Last active September 12, 2025 13:29
VOICEVOX TTS for Gather.Town
// ==UserScript==
// @name VOICEVOX TTS for Gather.Town
// @namespace https://github.com/u1-liquid
// @version 1.0.9
// @description Gather.Townのチャット送信メッセージをローカルのVOICEVOXで読み上げる
// @grant GM_xmlhttpRequest
// @author u1-liquid
// @source https://gist.github.com/u1-liquid/088e54bdc31a1b5845e5dd3b8961fac6
// @match https://app.gather.town/*
// @run-at document-body
CREATE OR REPLACE FUNCTION base36_decode(IN base36 text)
RETURNS bigint AS $$
DECLARE
chars text := '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
acc bigint := 0;
digit int;
c text;
i int;
len int;
BEGIN
@u1-liquid
u1-liquid / gist:d0e420cf8c8684ed95f6406d4683172f
Created December 25, 2023 21:06
Find IPv4 from Filesystem
#!/bin/sh
# https://unix.stackexchange.com/a/522127
cat /proc/net/fib_trie | awk '/32 host/ { print f } {f=$2}' | sort | uniq | grep -v 127.0.0.1
@u1-liquid
u1-liquid / Set-DNS-DoH.ps1
Last active December 22, 2023 01:16
Set DNS servers
#Requires -RunAsAdministrator
Write-Output "Update DoH settings ..."
$baseRegistryPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters"
if (Test-Path $baseRegistryPath) {
Remove-Item -Path $baseRegistryPath -Recurse -Force 2>&1 | Out-Null
}
$adapters = Get-NetAdapter -IncludeHidden | Where-Object {$_.Status -ne 'Not Present'}
#!/bin/bash
apt-get update
dpkg --get-selections | grep deinstall | awk '{print $1}' | xargs apt-get --yes purge
apt-get --yes --ignore-hold --with-new-pkgs --allow-change-held-packages upgrade
apt-get --yes --ignore-hold --allow-change-held-packages dist-upgrade
apt-get --yes --purge autoremove
dpkg --get-selections | grep deinstall | awk '{print $1}' | xargs apt-get --yes purge
# vmware-modconfig --console --install-all