Skip to content

Instantly share code, notes, and snippets.

View lixiangwuxian's full-sized avatar
🚮
Back to talent pool

Lxtend lixiangwuxian

🚮
Back to talent pool
View GitHub Profile
@lixiangwuxian
lixiangwuxian / no_ai_review.js
Created January 4, 2026 03:47
移除谷歌AI概览
// ==UserScript==
// @name 移除 Google AI 概览 (通过关键字定位)
// @namespace http://tampermonkey.net/
// @version 1.1
// @description 通过查找 “AI 概览” 关键字来定位并删除 Google 搜索页面上的 AI 概览 (AI Overview) 模块。
// @author Gemini
// @match https://www.google.com/search*
// @match https://www.google.com.hk/search*
// @match https://www.google.co.jp/search*
// @grant none
@lixiangwuxian
lixiangwuxian / update_claude.sh
Created March 30, 2026 02:29
Install claude code directly
#!/bin/bash
set -euo pipefail
INSTALL_DIR="/root/.local/share/claude/versions"
BIN_LINK="/root/.local/bin/claude"
ARCH="linux-x64"
# 1. 获取最新版本号
echo "正在获取最新版本..."
VERSION=$(curl -s https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest)
@lixiangwuxian
lixiangwuxian / cc_unlock_1m_cache_ttl.py
Created April 14, 2026 09:25
Unlock claude code 1h cache ttl
#!/usr/bin/env python3
"""
Claude Code 1h Cache Patch Tool
跨平台:macOS / Linux / Windows
安装类型:native binary / npm cli.js 自动识别
用法:
python3 claude-1h-cache.py # 打补丁 + 安装自动监听
python3 claude-1h-cache.py patch # 仅打补丁
python3 claude-1h-cache.py watch # 仅安装自动监听