Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name SonarCloud Review Helper - Safe/Fixed button
// @namespace https://github.com/u1-liquid
// @version 0.2
// @description Add Safe/Fixed buttons next to Review on SonarCloud
// @match https://sonarcloud.io/*
// @grant none
// @author u1-liquid
// @source https://gist.github.com/u1-liquid/d0f2cb4e10fc8d9fc60264846a4caa60
// @run-at document-idle
@u1-liquid
u1-liquid / mcp-stdio-jsonrpc-guard.mjs
Created November 12, 2025 22:30
fixup Codex MCP handling problem (connection closed: initialize response / transport closed)
#!/usr/bin/env node
'use strict';
import { spawn } from 'node:child_process';
import { createInterface } from 'node:readline';
if (process.argv.length < 3) {
console.error('Usage: mcp-stdio-jsonrpc-guard <command...>');
process.exit(1);
}
@u1-liquid
u1-liquid / AGENTS.md
Last active November 17, 2025 06:58
今使ってるAGENTS.md、spec-workflow MCP + Taskwarrior CLI + VSCode/Codex内蔵のTodoツールでコンテキスト・タスクを管理するように

<codex_agents_spec>

<operating_model_spec> Spec-first for any non-trivial work. Default canonical store for specs, tasks, and approvals: spec-workflow MCP. Use speckit (Specify CLI) only when the user explicitly requests CLI-based spec operations. For every non-trivial request, spec-workflow is the first tool: create or attach a spec before any other MCP, CLI, search, or code action. Do not start planning, searching, or coding for non-trivial work until a spec exists in spec-workflow for this request. Do not manually create or edit planning/spec files in the repo; only edit spec-workflow-guided files when spec-workflow or speckit explicitly instructs you to as part of their workflow. Decompose work into actionable items and maintain exactly one active now-task at a time.

// 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.2
// @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 November 18, 2025 10:40
VOICEVOX TTS for Google Meet
// ==UserScript==
// @name VOICEVOX TTS for Google Meet
// @namespace https://github.com/u1-liquid
// @version 1.0.14
// @description Google Meetのチャット送信メッセージをローカルのVOICEVOXで読み上げる
// @grant GM_xmlhttpRequest
// @author u1-liquid
// @source https://gist.github.com/u1-liquid/da1a04abf7a69f7229d107b03655b751
// @match https://meet.google.com/*
// @match https://chat.google.com/embed/*
@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