Skip to content

Instantly share code, notes, and snippets.

View zhuziyi1989's full-sized avatar
🍊
Running at top speed ( WeChat: zhuziyi )

zhuziyi zhuziyi1989

🍊
Running at top speed ( WeChat: zhuziyi )
View GitHub Profile
@zhuziyi1989
zhuziyi1989 / enable_gemini.sh
Last active March 1, 2026 03:10
强制开启 Gemini in Chrome 的脚本 2026.01.29
#!/bin/bash
# 定义 Chrome Local State 文件的路径
CHROME_STATE_FILE="$HOME/Library/Application Support/Google/Chrome/Local State"
echo "🚀 开始尝试强制开启 Chrome Gemini 功能..."
# 1. 安全检查:检测 Google Chrome 是否正在运行
# 如果 Chrome 没关,修改配置文件可能会被覆盖或导致错误
if pgrep "Google Chrome" > /dev/null; then
@Tamal
Tamal / git-ssh-error-fix.sh
Last active January 15, 2026 09:59
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@zmmbreeze
zmmbreeze / addChineseUnit.js
Last active December 31, 2021 02:45
为数字加上单位:万或亿
/**
* 为数字加上单位:万或亿
*
* 例如:
* 1000.01 => 1000.01
* 10000 => 1万
* 99000 => 9.9万
* 566000 => 56.6万
* 5660000 => 566万
* 44440000 => 4444万