Skip to content

Instantly share code, notes, and snippets.

View vinciest's full-sized avatar

Vinci vinciest

  • I think, I am
View GitHub Profile
@vinciest
vinciest / extension.mjs
Created June 25, 2026 09:10
Copilot CLI + RTK, put at ~/.copilot/extensions/rtk-rewrite/extension.mjs
import { spawn } from "node:child_process";
import { approveAll } from "@github/copilot-sdk";
import { joinSession } from "@github/copilot-sdk/extension";
// Pipes bash onPreToolUse events through rtk hook copilot, which rewrites
// commands to their rtk-equivalent for token savings (e.g. git status → rtk git status).
// Safe no-op if rtk is not installed or returns no rewrite.
//
// Input shape: app.js calls extensions via FCs() which produces { toolName, toolArgs }
// per individual tool call. toolArgs may be a JSON string (OpenAI wire format) or
@vinciest
vinciest / ChinaDNS.yaml
Last active February 23, 2026 16:10
custom rulesets
# NAME: ChinaDNS
# AUTHOR:
# REPO:
# UPDATED:
# DOMAIN-SUFFIX: 5
# IP-CIDR: 16
# IP-CIDR6: 4
# TOTAL: 25
payload:
- DOMAIN-SUFFIX,dns.alidns.com
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.