Skip to content

Instantly share code, notes, and snippets.

View xianghongai's full-sized avatar
🎯
Focusing

xianghongai

🎯
Focusing
View GitHub Profile
@xianghongai
xianghongai / claude-deepseek-flash.env
Last active October 26, 2026 09:13
Stone Soup 🪨 + 🥕 + 🥩 = 🍲✨
export ANTHROPIC_AUTH_TOKEN="$DEEPSEEK_API_KEY"
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_MODEL=deepseek-flash[1m]
export ANTHROPIC_DEFAULT_FABLE_MODEL=deepseek-flash[1m]
export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-flash[1m]
export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-flash[1m]
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-flash
export CLAUDE_CODE_SUBAGENT_MODEL=deepseek-flash
export CLAUDE_CODE_EFFORT_LEVEL=max
@xianghongai
xianghongai / 1、优化 Github 访问.md
Last active October 16, 2026 12:17
Windows 11 / Public🍒

安装 PowerShell 7:winget install --id Microsoft.PowerShell --source winget ,或者在 https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows?view=powershell-7.5 下载 MSI 文件安装。

将下面内容保存到 update_gh_hosts.ps1,管理员权限运行 PowerShell 7,进入到目录执行 .\update_gh_hosts.ps1。

# 必须以管理员身份运行

$currentPrincipal = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()
if (-not $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) {
    Write-Host "错误:请右键点击脚本并选择 '以管理员身份运行' (Run as Administrator)" -ForegroundColor Red
@xianghongai
xianghongai / Default%20%28Linux%29.sublime-keymap
Last active October 16, 2026 12:56
Sublime Text Sync Settings / Public🍒
[
// 命名为 snake_case 风格
{
"keys": ["ctrl+u","ctrl+s"],
"command": "convert_ident_case",
"args": {
"case": "lower",
"separator": "_"
}
},