Skip to content

Instantly share code, notes, and snippets.

View Aaron-212's full-sized avatar

Aaron Ruan Aaron-212

View GitHub Profile

替换GitHub访问的Request Header中的Accept Language来绕过限制

Quantumult X

^https?://([a-zA-Z0-9]+\.)*(github.*(\.com|\.io)|ghcr\.io) url request-header (\r\n)Accept-Language:.+(\r\n) request-header $1Accept-Language:en;q=0.9$2
@Aaron-212
Aaron-212 / config.nu
Created December 25, 2024 09:15
Nushell config for homebrew/homebrew-command-not-found
$env.config = {
# ...other config...
hooks: {
# ...other hooks...
command_not_found: {
|cmd_name| (
try {
let cmds = (brew which-formula $cmd_name)
@Aaron-212
Aaron-212 / gist:5acce891498ae2b5b0e1bfe6ad045795
Last active December 17, 2023 14:16
Mac被中文输入法卡死了?用这个(不需要了,macOS14.3修复)
pgrep -f "/System/Library/Input Methods/SCIM.app/Contents/PlugIn" | xargs kill -HUP