This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 为数字加上单位:万或亿 | |
| * | |
| * 例如: | |
| * 1000.01 => 1000.01 | |
| * 10000 => 1万 | |
| * 99000 => 9.9万 | |
| * 566000 => 56.6万 | |
| * 5660000 => 566万 | |
| * 44440000 => 4444万 |