| date created | 2026-01-19 |
|---|---|
| date modified | 2026-03-31 |
AI 编程实战分享 2026.03.31
云谦
| #!/usr/bin/env bun | |
| /** | |
| * Axios Supply Chain Attack Detector | |
| * Detects compromise from axios@1.14.1 / axios@0.30.4 (2026-03-31) | |
| * | |
| * Malicious versions inject plain-crypto-js@4.2.1 which deploys a | |
| * cross-platform RAT (Remote Access Trojan) via postinstall hook. | |
| * | |
| * Usage: bun run check-axios-attack.ts [--scan-dir /path/to/projects] | |
| * |
| #!/usr/bin/env bun | |
| /** | |
| * Download a specific version of Claude Code from npm, | |
| * then extract the original TypeScript source from its source map. | |
| * | |
| * Usage: | |
| * bun extract-claude-code.mjs [version] | |
| * | |
| * Example: |
| #!/usr/bin/env node | |
| /** | |
| * Extract original source code from a JavaScript source map file. | |
| * | |
| * Usage: | |
| * node extract-sourcemap.mjs <path-to-.map-file> [output-dir] | |
| * | |
| * Example: | |
| * node extract-sourcemap.mjs cli.js.map ./src-extracted |
| #!/bin/bash | |
| set -euo pipefail | |
| GCS_BUCKET="https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases" | |
| GCS_API="https://storage.googleapis.com/storage/v1/b/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/o" | |
| VERSIONS_DIR="$HOME/.local/share/claude/versions" | |
| # Colors | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
| #!/bin/bash | |
| # LiteLLM Supply Chain Attack Detector | |
| # Checks for compromised litellm versions (1.82.7 / 1.82.8) and related IoCs | |
| # Reference: https://github.com/BerriAI/litellm/issues/24512 | |
| # Date: 2026-03-24 | |
| set -euo pipefail | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
/btw is a slash command that lets users ask a quick side question without interrupting the main conversation flow. It forks a lightweight, single-turn API call using the existing conversation context but with no tools available.
The response is displayed inline and can be dismissed with Space/Enter/Escape to resume the main conversation.
| /loop — Detailed Implementation in versions/2.1.71/cli.js | |
| Overview | |
| /loop is a slash command (skill) that schedules a prompt to run on a recurring | |
| interval. It is syntactic sugar over the internal Kairos Cron scheduling | |
| system (CronCreate / CronDelete / CronList tools). | |
| --- |
| // ==UserScript== | |
| // @name 语雀文档导出工具 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1.0 | |
| // @description 导出语雀文档为 Markdown 文件 | |
| // @author sorrycc | |
| // @match https://www.yuque.com/* | |
| // @match https://yuque.antfin.com/* | |
| // @require https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js@v2.0.4/dist/FileSaver.min.js | |
| // @require https://cdn.jsdelivr.net/gh/Stuk/jszip@v3.0.0/dist/jszip.min.js |
| { | |
| "description": "Change right_command to hyper key (f19 when alone). Change right_option to fn.", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "right_option", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] |