Skip to content

Instantly share code, notes, and snippets.

View coldsmirk's full-sized avatar
💯
Though born an ant, aspire to soar like a swan

Venus coldsmirk

💯
Though born an ant, aspire to soar like a swan
View GitHub Profile
@coldsmirk
coldsmirk / kiro-auth-switch.sh
Last active May 14, 2026 01:36
kiro-auth-switch — Kiro CLI 多账号切换脚本 (macOS, Keychain + SQLite)
#!/usr/bin/env bash
#
# kiro-auth-switch — Kiro CLI account switcher (macOS)
#
# Switch between multiple Kiro CLI accounts without re-authenticating.
# Auth data is stored in three places on macOS:
# 1. macOS Keychain (kirocli:social:token)
# 2. SQLite auth_kv (~/Library/Application Support/kiro-cli/data.sqlite3)
# 3. SQLite state (same DB, auth-related keys)
# This script manages all three simultaneously.
@coldsmirk
coldsmirk / deploy-3xui.sh
Last active May 14, 2026 05:52
一键部署 3X-UI + VLESS Reality(无需域名)
#!/usr/bin/env bash
#
# deploy-3xui.sh — 一键部署 3X-UI + VLESS Reality(无需域名)
#
# 功能:
# 1. 安装 3X-UI 面板(非交互式)
# 2. 自动生成随机面板凭据(用户名/密码/端口/路径)
# 3. 生成自签名证书供面板 HTTPS 使用
# 4. 通过 API 自动创建 VLESS + Reality 入站
# 5. 输出完整的 VLESS 连接 URI(可直接导入客户端)