
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Gumc</title>
    <description>Here is Gu Mincong&apos;s Personal Blog, Life is nothing but an experience, To leave something behind.</description>
    <link>http://gumcstronger.github.io/</link>
    <atom:link href="http://gumcstronger.github.io/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Tue, 16 Jun 2026 09:29:15 +0000</pubDate>
    <lastBuildDate>Tue, 16 Jun 2026 09:29:15 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>Github Desktop无法打开</title>
        <description>&lt;p&gt;前几天突然无法打开Github Desktop了，查了下有人是安装了Antigravity也无法打开了。真是坑呀谷歌，又垃圾还搞坏环境。&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;使用powershell查询：&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c&quot;&gt;# 输入&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;icacls&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;nn&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;LOCALAPPDATA&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# 应该输出&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;C:\Users\xxxx\AppData\Local&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;NT&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;AUTHORITY\SYSTEM:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;BUILTIN\Administrators:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xxxx\xxx:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xxxx\CodexSandboxUsers:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RX&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;#实际输出&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;C:\Users\xxxx\AppData\Local&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;xxxx\CodexSandboxUsers:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RX&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S-1-15-2-4283406991-4294444083-2861539546-3594594304-3831838268-676399724-3246962861:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;S-1-15-2-4283406991-4294444083-2861539546-3594594304-3831838268-676399724-3246962861:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;IO&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;NT&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;AUTHORITY\SYSTEM:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;BUILTIN\Administrators:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                            &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xxxx\xxxx:&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;CI&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;F&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# S-1-15-2-*这段就是Antigravity留下的坑了&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;使用Powershell管理员模式运行&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c&quot;&gt;# 定义路径和 SID&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$path&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;nn&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;LOCALAPPDATA&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$sidString&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;S-1-15-2-4283406991-4294444083-2861539546-3594594304-3831838268-676399724-3246962861&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# 获取当前 ACL&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$acl&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Get-Acl&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$path&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# 将 SID 字符串转换为 SecurityIdentifier 对象&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$identity&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;System.Security.Principal.SecurityIdentifier&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$sidString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# 找出所有匹配该 SID 的访问规则&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$rulesToRemove&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$acl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;Access&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Where-Object&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;$_&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;IdentityReference&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-eq&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$identity&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kr&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$rulesToRemove&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;kr&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$rule&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kr&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$rulesToRemove&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# 移除该规则&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;$null&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$acl&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;RemoveAccessRule&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$rule&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Write-Host&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;移除了规则：&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$rule&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# 应用更改&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Set-Acl&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;-Path&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$path&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;-AclObject&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$acl&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Write-Host&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;权限已更新。&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kr&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Write-Host&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;未找到匹配该 SID 的权限规则。&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# 验证结果&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;icacls&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$path&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Tue, 16 Jun 2026 01:05:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/06/16/github-desktop/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/06/16/github-desktop/</guid>
        
        <category>System</category>
        
        
      </item>
    
      <item>
        <title>黑苹果</title>
        <description>&lt;p&gt;前阵子不小心误删了PC的系统内容导致无法开机，所以就考虑试试黑苹果，虽然手头的mac air和mini能用，但如何能统一使用苹果环境那就更好了。不过最后测试后能使用，N卡也有驱动。但Unity开发时Unity Editor的UI上的部分shader显示有问题，所以最终放弃,此处仅作记录。&lt;/p&gt;

&lt;p&gt;工具:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/lzhoang2801/OpCore-Simplify&quot;&gt;OpCore-Simplify&lt;/a&gt;
OpenCore-Simplify用于获取PC的硬件信息并生成EFI引导文件。&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/corpnewt/UnPlugged&quot;&gt;UnPlugged&lt;/a&gt;
UnPlugged构建和运行离线安装程序的 Bash 脚本&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;注意：&lt;/p&gt;

&lt;p&gt;独立显卡和集成显卡同时存在会出问题，所以我只保留了独立显卡，通过BIOS关闭集成显卡。
兼容模式也需要注意，是否要开启或关闭。
安装完再使用OpenCore-Legacy-Patcher更新驱动&lt;/p&gt;
</description>
        <pubDate>Thu, 09 Apr 2026 01:05:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/04/09/mac-hack/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/04/09/mac-hack/</guid>
        
        <category>System</category>
        
        
      </item>
    
      <item>
        <title>AI Cli</title>
        <description>&lt;p&gt;需求：使用v2rayN实现A走A代理，B走B代理。&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;v2rayN 真正的转发逻辑在底部的&lt;/strong&gt; &lt;strong&gt;“路由”&lt;/strong&gt; &lt;strong&gt;里。&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;点击上方菜单的&lt;/strong&gt; &lt;strong&gt;“设置”&lt;/strong&gt; &lt;strong&gt;-&amp;gt;&lt;/strong&gt; &lt;strong&gt;“路由设置”&lt;/strong&gt;。&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;点击&lt;/strong&gt;  &lt;strong&gt;-&amp;gt;&lt;/strong&gt; &lt;strong&gt;“添加”&lt;/strong&gt;。&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;起个名字（比如&lt;/strong&gt; &lt;strong&gt;A_B_Split&lt;/strong&gt;）。&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;添加第一条规则&lt;/strong&gt;：&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;outboundTag&lt;/strong&gt;：选 &lt;strong&gt;proxy&lt;/strong&gt;（这代表走你当前&lt;strong&gt;激活&lt;/strong&gt;的那个服务器）。&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Domain&lt;/strong&gt;：填入域名 A。&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;添加第二条规则&lt;/strong&gt;：&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;&lt;strong&gt;outboundTag&lt;/strong&gt;：选 &lt;strong&gt;direct&lt;/strong&gt; &lt;strong&gt;或者你定义的另一个出口。&lt;/strong&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;难点&lt;/strong&gt;：v2rayN 的 GUI 界面在处理“两个不同的远程代理”时非常笨拙。它默认只支持 &lt;strong&gt;proxy&lt;/strong&gt;（当前的）和 &lt;strong&gt;direct&lt;/strong&gt;（直连）。&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Thu, 09 Apr 2026 01:05:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/04/09/v2rayn-two-proxy/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/04/09/v2rayn-two-proxy/</guid>
        
        <category>System</category>
        
        
      </item>
    
      <item>
        <title>AI Cli</title>
        <description>&lt;ol&gt;
  &lt;li&gt;ds2api (&lt;a href=&quot;https://github.com/CJackHwang/ds2api&quot;&gt;https://github.com/CJackHwang/ds2api&lt;/a&gt;)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;{
  “env”: {
    “ANTHROPIC_BASE_URL”: “&lt;a href=&quot;http://localhost:5001&quot;&gt;http://localhost:5001&lt;/a&gt;”,
    “ANTHROPIC_AUTH_TOKEN”: “sk-xxx”,
    “ANTHROPIC_MODEL”: “claude-opus-4-6”,
    “CLAUDE_CODE_SUBAGENT_MODEL”: “claude-haiku-4-5”,
    “ANTHROPIC_DEFAULT_HAIKU_MODEL”: “claude-opus-4-6”,
    “ANTHROPIC_DEFAULT_SONNET_MODEL”: “claude-opus-4-6”,
    “ANTHROPIC_DEFAULT_OPUS_MODEL”: “claude-opus-4-6”
  },
  “model”: “claude-opus-4-6”,
  “autoUpdatesChannel”: “latest”,
  “theme”: “dark”,
  “hasCompletedOnboarding”: true
}&lt;/p&gt;

&lt;p&gt;// 模型映射
{
  “claude-3-5-haiku-20241022”: “deepseek-v4-flash”,
  “claude-3-5-haiku-latest”: “deepseek-v4-flash”,
  “claude-3-5-sonnet-20241022”: “deepseek-v4-flash”,
  “claude-3-7-sonnet-20250219”: “deepseek-v4-flash”,
  “claude-haiku-4-5”: “deepseek-v4-flash-nothinking”,
  “claude-haiku-4-5-20251001”: “deepseek-v4-flash-nothinking”,
  “claude-haiku-4-5-latest”: “deepseek-v4-flash-nothinking”,
  “claude-haiku-4-5-nothinking”: “deepseek-v4-flash-nothinking”,
  “claude-opus-4-5-20251124”: “deepseek-v4-pro”,
  “claude-opus-4-6”: “deepseek-v4-pro”,
  “claude-opus-4-6-20260205”: “deepseek-v4-pro”,
  “claude-opus-4-6-latest”: “deepseek-v4-pro”,
  “claude-opus-4-6-nothinking”: “deepseek-v4-pro-nothinking”,
  “claude-opus-4-6[1m]”: “deepseek-v4-pro”,
  “claude-opus-4-7”: “deepseek-v4-pro”,
  “claude-opus-4-7-20260416”: “deepseek-v4-pro”,
  “claude-sonnet-4-5-20250929”: “deepseek-v4-flash”,
  “claude-sonnet-4-6”: “deepseek-v4-flash”,
  “claude-sonnet-4-6-20260217”: “deepseek-v4-flash”,
  “claude-sonnet-4-6-latest”: “deepseek-v4-flash”,
  “claude-sonnet-4-6-nothinking”: “deepseek-v4-flash-nothinking”,
  “claude-sonnet-4-6[1m]”: “deepseek-v4-flash”,
  “gpt-4o”: “deepseek-v4-flash”,
  “gpt-5.3-codex”: “deepseek-v4-pro”,
  “gpt-5.5”: “deepseek-v4-flash”,
  “o3”: “deepseek-v4-pro”
}&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;qwen2api(&lt;a href=&quot;https://github.com/YuJunZhiXue/qwen2API&quot;&gt;https://github.com/YuJunZhiXue/qwen2API&lt;/a&gt;)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;{
  “env”: {
    “ANTHROPIC_BASE_URL”: “&lt;a href=&quot;http://127.0.0.1:7860&quot;&gt;http://127.0.0.1:7860&lt;/a&gt;”,
    “ANTHROPIC_AUTH_TOKEN”: “sk-xxx”,
    “ANTHROPIC_MODEL”: “claude-opus-4-6”,
    “CLAUDE_CODE_SUBAGENT_MODEL”: “claude-opus-4-6”,
    “ANTHROPIC_DEFAULT_HAIKU_MODEL”: “claude-opus-4-6”,
    “ANTHROPIC_DEFAULT_SONNET_MODEL”: “claude-opus-4-6”,
    “ANTHROPIC_DEFAULT_OPUS_MODEL”: “claude-opus-4-6”,
    “DISABLE_TELEMETRY”: “1”,
    “CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC”: “1”,
    “CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL”: “0”
  },
  “model”: “claude-opus-4-6”,
  “autoUpdatesChannel”: “latest”,
  “theme”: “dark”,
  “hasCompletedOnboarding”: true
}&lt;/p&gt;

&lt;p&gt;模型映射
{
“claude-3-5-haiku-20241022”: “qwen3.5-flash”,
  “claude-3-5-haiku-latest”: “qwen3.5-flash”,
  “claude-3-5-sonnet-20241022”: “qwen3.5-flash”,
  “claude-3-7-sonnet-20250219”: “qwen3.5-flash”,
  “claude-haiku-4-5”: “qwen3.5-flash”,
  “claude-haiku-4-5-20251001”: “qwen3.5-flash”,
  “claude-haiku-4-5-latest”: “qwen3.5-flash”,
  “claude-haiku-4-5-nothinking”: “qwen3.5-flash”,
  “claude-opus-4-5-20251124”: “qwen3.6-plus”,
  “claude-opus-4-6”: “qwen3.6-plus”,
  “claude-opus-4-6-20260205”: “qwen3.6-plus”,
  “claude-opus-4-6-latest”: “qwen3.6-plus”,
  “claude-opus-4-6-nothinking”: “qwen3.6-plus”,
  “claude-opus-4-7”: “qwen3.6-plus”,
  “claude-opus-4-7-20260416”: “qwen3.6-plus”,
  “claude-opus-4-6-20250929”: “qwen3.5-flash”,
  “claude-sonnet-4-6”: “qwen3.5-flash”,
  “claude-sonnet-4-6-20260217”: “qwen3.5-flash”,
  “claude-sonnet-4-6-latest”: “qwen3.5-flash”,
  “claude-sonnet-4-6-nothinking”: “qwen3.5-flash”,
}&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;❌ chat2api
我以为是9router或claude code router将Anthropic格式转化为OpenAI Chat/Completion格式导致工具调用出问题，后面改用cline直接使用Chat/Completion格式，还是无法进行工具调用，确认Chat2api无法使用工具。&lt;/li&gt;
&lt;/ol&gt;
</description>
        <pubDate>Thu, 09 Apr 2026 01:05:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/04/09/ai-cli/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/04/09/ai-cli/</guid>
        
        <category>AI</category>
        
        
      </item>
    
      <item>
        <title>AI Code助手配置</title>
        <description>&lt;h2 id=&quot;ai-coding-必备&quot;&gt;AI Coding 必备&lt;/h2&gt;

&lt;h3 id=&quot;powershell-7&quot;&gt;&lt;a href=&quot;https://learn.microsoft.com/zh-cn/powershell/scripting/install/install-powershell-on-windows&quot;&gt;PowerShell 7&lt;/a&gt;&lt;/h3&gt;

&lt;h3 id=&quot;cockpit-tools&quot;&gt;&lt;a href=&quot;https://github.com/jlcodes99/cockpit-tools&quot;&gt;cockpit-tools&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;通用 AI IDE 账号管理工具，用于切换不同账号Auth&lt;/p&gt;

&lt;h3 id=&quot;cc-switch&quot;&gt;&lt;a href=&quot;https://github.com/farion1231/cc-switch&quot;&gt;CC Switch&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;用于：&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;切换第三方API&lt;/li&gt;
  &lt;li&gt;添加管理MCP服务器&lt;/li&gt;
  &lt;li&gt;添加管理Skill&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;jq&quot;&gt;&lt;a href=&quot;https://jqlang.org/download/&quot;&gt;jq&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;下载后添加到PATH&lt;/p&gt;

&lt;h3 id=&quot;rtk&quot;&gt;&lt;a href=&quot;https://github.com/rtk-ai/rtk&quot;&gt;rtk&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;降低token&lt;/p&gt;

&lt;h3 id=&quot;ripgrep&quot;&gt;&lt;a href=&quot;https://github.com/burntsushi/ripgrep&quot;&gt;Ripgrep&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;似乎AI助手的grep底层使用的都是ripgrep。但如果我们配置了通过vscode进行shell绕过权限，这时候需要支持rg所以这里手动安装。&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;winget &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;BurntSushi.ripgrep.MSVC
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;cc-connectfor-discordwechat等&quot;&gt;cc-connect(for Discord/Wechat等)&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;安装&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c&quot;&gt;# 安装cc-connect（wechat需要使用beta版本cc-connect@beta)&lt;/span&gt;
npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-g&lt;/span&gt; cc-connect
&lt;span class=&quot;c&quot;&gt;# 创建配置文件&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 创建C:\Users\Gumc\.cc-connect&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 将官方的config.example.toml复制到.cc-connect/config.toml&lt;/span&gt;


&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;[cc-connect配置文件]&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-conf highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;  &lt;span class=&quot;c&quot;&gt;# 配置config.toml，以下是我的配置(从discord获取token)
&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;data_dir&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;language&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;zh&quot;&lt;/span&gt;

  [[&lt;span class=&quot;n&quot;&gt;projects&lt;/span&gt;]]
    &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;framework&quot;&lt;/span&gt;
    [&lt;span class=&quot;n&quot;&gt;projects&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;agent&lt;/span&gt;]
      &lt;span class=&quot;n&quot;&gt;type&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;gemini&quot;&lt;/span&gt;
      [&lt;span class=&quot;n&quot;&gt;projects&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;agent&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;options&lt;/span&gt;]
        &lt;span class=&quot;n&quot;&gt;mode&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;yolo&quot;&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;model&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;gemini-3.1-flash-lite-preview&quot;&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;work_dir&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;C:\\Users\\Gumc\\Desktop\\WorkSpace\\framework&quot;&lt;/span&gt;

    [[&lt;span class=&quot;n&quot;&gt;projects&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;platforms&lt;/span&gt;]]
      &lt;span class=&quot;n&quot;&gt;type&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;discord&quot;&lt;/span&gt;
      [&lt;span class=&quot;n&quot;&gt;projects&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;platforms&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;options&lt;/span&gt;]
        &lt;span class=&quot;n&quot;&gt;token&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;token&quot;&lt;/span&gt;

  [&lt;span class=&quot;n&quot;&gt;log&lt;/span&gt;]
    &lt;span class=&quot;n&quot;&gt;level&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;info&quot;&lt;/span&gt;

  [&lt;span class=&quot;n&quot;&gt;speech&lt;/span&gt;]
    &lt;span class=&quot;n&quot;&gt;enabled&lt;/span&gt; = &lt;span class=&quot;n&quot;&gt;false&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;provider&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;language&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
    [&lt;span class=&quot;n&quot;&gt;speech&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;openai&lt;/span&gt;]
      &lt;span class=&quot;n&quot;&gt;api_key&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;base_url&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;model&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
    [&lt;span class=&quot;n&quot;&gt;speech&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;groq&lt;/span&gt;]
      &lt;span class=&quot;n&quot;&gt;api_key&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;model&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
    [&lt;span class=&quot;n&quot;&gt;speech&lt;/span&gt;.&lt;span class=&quot;n&quot;&gt;qwen&lt;/span&gt;]
      &lt;span class=&quot;n&quot;&gt;api_key&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;base_url&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;model&lt;/span&gt; = &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;

  [&lt;span class=&quot;n&quot;&gt;display&lt;/span&gt;]
  &lt;span class=&quot;n&quot;&gt;thinking_messages&lt;/span&gt; = &lt;span class=&quot;n&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# Show/hide thinking messages (default: true) / 是否显示思考消息（默认 true）
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;thinking_max_len&lt;/span&gt; = &lt;span class=&quot;m&quot;&gt;1000&lt;/span&gt;   &lt;span class=&quot;c&quot;&gt;# Max chars for thinking messages (default: 300) / 思考消息最大字符数（默认 300）
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;tool_max_len&lt;/span&gt; = &lt;span class=&quot;m&quot;&gt;1000&lt;/span&gt;       &lt;span class=&quot;c&quot;&gt;# Max chars for tool use messages (default: 500) / 工具调用消息最大字符数（默认 500）
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;tool_messages&lt;/span&gt; = &lt;span class=&quot;n&quot;&gt;true&lt;/span&gt;     &lt;span class=&quot;c&quot;&gt;# Show/hide tool progress messages (default: true) / 是否显示工具进度消息（默认 true）
&lt;/span&gt;
  [&lt;span class=&quot;n&quot;&gt;stream_preview&lt;/span&gt;]
  &lt;span class=&quot;n&quot;&gt;enabled&lt;/span&gt; = &lt;span class=&quot;n&quot;&gt;true&lt;/span&gt;            &lt;span class=&quot;c&quot;&gt;# Enable/disable streaming preview (default: true) / 启用/禁用流式预览（默认 true）
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;interval_ms&lt;/span&gt; = &lt;span class=&quot;m&quot;&gt;1500&lt;/span&gt;        &lt;span class=&quot;c&quot;&gt;# Min ms between updates (default: 1500) / 更新最小间隔毫秒数（默认 1500）
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;min_delta_chars&lt;/span&gt; = &lt;span class=&quot;m&quot;&gt;30&lt;/span&gt;      &lt;span class=&quot;c&quot;&gt;# Min new chars before sending update (default: 30) / 发送更新前最少新增字符数（默认 30）
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;max_chars&lt;/span&gt; = &lt;span class=&quot;m&quot;&gt;2000&lt;/span&gt;          &lt;span class=&quot;c&quot;&gt;# Max preview length (default: 2000) / 预览最大长度（默认 2000）
&lt;/span&gt;

  [&lt;span class=&quot;n&quot;&gt;rate_limit&lt;/span&gt;]
  &lt;span class=&quot;n&quot;&gt;max_messages&lt;/span&gt; = &lt;span class=&quot;m&quot;&gt;5&lt;/span&gt;         &lt;span class=&quot;c&quot;&gt;# Max messages per window; 0 = disabled (default: 20) / 窗口内最大消息数；0 = 禁用（默认 20）
&lt;/span&gt;  &lt;span class=&quot;c&quot;&gt;# window_secs = 60          # Window size in seconds (default: 60) / 窗口时间秒数（默认 60）
&lt;/span&gt;
  [&lt;span class=&quot;n&quot;&gt;cron&lt;/span&gt;]
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/chenhg5/cc-connect/blob/main/docs/usage.zh-CN.md&quot;&gt;cc-connect使用指南&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;配置开机启动&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;h2 id=&quot;gemini&quot;&gt;Gemini&lt;/h2&gt;

&lt;h3 id=&quot;安装&quot;&gt;安装&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Gemini Code Assist(VSCode插件) 用处不大，仅在头脑风暴时进行。&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;只要开启Agent就会显示：There was a problem getting a response.猜测是免费用户会被限制在 Flash 模型中，而Flash 用不来 Agent。&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;vscode&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;配置&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;geminicodeassist.enableTelemetry&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;geminicodeassist.chat.changeView&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Default diff view&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;geminicodeassist.inlineSuggestions.enableAuto&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;geminicodeassist.project&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;xxxx&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;free&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;无效&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;geminicodeassist.agentYoloMode&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;             &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;开启&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;Yolo&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;模式，自动执行&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;不要停下来请求权限&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Gemini Cli （npm安装）&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://geminicli.com/docs/reference/configuration/&quot;&gt;所有配置链接&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;skill--mcp&quot;&gt;Skill &amp;amp; MCP&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;superpowers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;复制superpowers的skill到项目.agents/skills下（brainstorming、dispatching-parallel-agents、executing-plans、receiving-code-review、requesting-code-review、subagent-driven-development、using-superpowers、writing-plans、writing-skills）&lt;/p&gt;

&lt;!-- * (弃用) 通过CC Switch 安装[vscode-mcp](https://github.com/tjx666/vscode-mcp)

```
{
    &quot;vscode-mcp&quot;: {
      &quot;command&quot;: &quot;npx&quot;,
      &quot;args&quot;: [&quot;-y&quot;, &quot;@vscode-mcp/vscode-mcp-server@latest&quot;],
      &quot;env&quot;: {},
      &quot;includeTools&quot;: [
        &quot;get_symbol_lsp_info&quot;,
        &quot;get_diagnostics&quot;,
        &quot;get_references&quot;,
        &quot;health_check&quot;,
        &quot;rename_symbol&quot;
      ]
    }
}
``` --&gt;

&lt;ul&gt;
  &lt;li&gt;通过CC Switch 安装&lt;a href=&quot;https://github.com/guillehr2/Excel-MCP-Server-Master&quot;&gt;excel-master&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;excel-master&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;command&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;npx&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;args&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;-y&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
          &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;@guillehr2/excel-mcp-server@latest&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;timeout&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;60000&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;通过CC Switch 安装&lt;a href=&quot;https://marketplace.visualstudio.com/items?itemName=JuehangQin.vscode-mcp-server&quot;&gt;vscode-mcp-servr&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;vscode-mcp-server&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;command&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;npx&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;args&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;mcp-remote@next&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;http://localhost:3000/mcp&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;

&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/CoplayDev/unity-mcp&quot;&gt;Unity MCP&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c&quot;&gt;# unity通过github安装：https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 进入unity - window - mcp for unity - toggle mcp window&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 进入connect，选择传递方式为stdio, 复制configuratioon到项目目录配置文件，工具只开启execute_menu_item和read_console和manage_prefabs&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 可以禁用手机数据&lt;/span&gt;
&lt;span class=&quot;s2&quot;&gt;&quot;unityMCP&quot;&lt;/span&gt;: &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;s2&quot;&gt;&quot;command&quot;&lt;/span&gt;: &lt;span class=&quot;s2&quot;&gt;&quot;uvx&quot;&lt;/span&gt;,
      &lt;span class=&quot;s2&quot;&gt;&quot;args&quot;&lt;/span&gt;: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;
        &lt;span class=&quot;s2&quot;&gt;&quot;--from&quot;&lt;/span&gt;,
        &lt;span class=&quot;s2&quot;&gt;&quot;mcpforunityserver==9.6.6&quot;&lt;/span&gt;,
        &lt;span class=&quot;s2&quot;&gt;&quot;mcp-for-unity&quot;&lt;/span&gt;,
        &lt;span class=&quot;s2&quot;&gt;&quot;--transport&quot;&lt;/span&gt;,
        &lt;span class=&quot;s2&quot;&gt;&quot;stdio&quot;&lt;/span&gt;
      &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;,
      &lt;span class=&quot;s2&quot;&gt;&quot;type&quot;&lt;/span&gt;: &lt;span class=&quot;s2&quot;&gt;&quot;stdio&quot;&lt;/span&gt;,
      &lt;span class=&quot;s2&quot;&gt;&quot;env&quot;&lt;/span&gt;: &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;s2&quot;&gt;&quot;DISABLE_TELEMETRY&quot;&lt;/span&gt;: &lt;span class=&quot;s2&quot;&gt;&quot;true&quot;&lt;/span&gt;
      &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 让AI自己写markdown,工具的参数见源码：https://github.com/CoplayDev/unity-mcp/tree/beta/Server/src/services/tools&lt;/span&gt;

&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/AnkleBreaker-Studio/unity-mcp-server&quot;&gt;unity-mcp-server&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/MinishLab/semble&quot;&gt;semble&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://github.com/johnhuang316/code-index-mcp/&quot;&gt;code-index-mcp&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/0xmariowu/AgentLint&quot;&gt;AgentLint&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/leighstillard/poormansadvisor&quot;&gt;poormansadvisor&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/ndpvt-web/prompt-improver&quot;&gt;prompt-improver&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;!-- ### (已弃用)clibot(for Discord/Wechat)

消息会被截断，所以已弃用

  * 安装[Go](https://go.dev/dl/)
  * 安装clibot

```bash
git clone https://github.com/keepmind9/clibot.git
cd clibot
go build -o clibot.exe ./cmd/clibot
# 复制config.yaml
cp configs/config.mini.yaml configs\config.yaml
# 配置具体的信息
# 可以启动
clibot serve --config configs\config.yaml
# 设置开机启动
# 第一步：打开启动文件夹,按下键盘上的 Win + R 键。在弹出的对话框中输入 shell:startup 并按回车。这会打开一个名为“启动”的文件夹。
# 第二步：创建快捷方式,在文件夹空白处点击 右键 -&gt; 新建 -&gt; 快捷方式。在“请键入对象的位置”框中，直接复制并粘贴以下完整命令：(如没有安装pwsh则使用powershell.exe)
pwsh.exe -NoExit -Command &quot;cd &apos;D:\Pack\AI\clibot&apos;; clibot serve --config  .\configs\config.yaml&quot;
=# 具体命令
slist                              # 列出所有会话
suse &lt;session&gt;                     # 切换到指定会话
snew &lt;name&gt; &lt;type&gt; &lt;dir&gt; [cmd]     # 创建新会话（仅管理员）
sdel &lt;name&gt;                        # 删除会话（仅管理员）
sclose [name]                      # 关闭会话
sstatus [name]                     # 显示会话状态
whoami                             # 显示你的信息
status                             # 显示所有会话状态
echo                               # 显示你的 IM 信息
help                               # 显示帮助
``` --&gt;

&lt;h2 id=&quot;codex&quot;&gt;Codex&lt;/h2&gt;

&lt;h3 id=&quot;安装-1&quot;&gt;安装&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Codex Cli&lt;/li&gt;
  &lt;li&gt;&lt;del&gt;Codex桌面版&lt;/del&gt;&lt;/li&gt;
  &lt;li&gt;&lt;del&gt;VSCode Codex插件&lt;/del&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;vscode codex插件如果开启WSL就会使用WSL的配置，需要进入/home/xx/.condex中修改配置，所以不开启WSL&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.openai.com/codex/config-sample&quot;&gt;codex全部配置&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;skill--mcp-1&quot;&gt;Skill &amp;amp; MCP&lt;/h3&gt;

&lt;p&gt;同Gemini Cli&lt;/p&gt;

&lt;!-- * [VSCode MCP](https://github.com/tjx666/vscode-mcp)

不支持partial class，但能获取诊断信息，用于获取诊断信息并修复。

MCP（模型上下文协议）客户端能够实时访问丰富的 VSCode 上下文信息

```bash
# vscode安装vsc-lsp-mcp插件
# .condex/config.toml添加配置：
[mcp_servers.vscode-mcp]
command = &quot;bunx&quot;
args = [&quot;-y&quot;, &quot;@vscode-mcp/vscode-mcp-server@latest&quot;]
env = { &quot;VSCODE_MCP_DISABLED_TOOLS&quot; = &quot;health_check,list_workspaces,open_files&quot; }
startup_timeout_ms = 16_000
``` --&gt;

&lt;hr /&gt;

&lt;h2 id=&quot;claude-code&quot;&gt;Claude Code&lt;/h2&gt;

&lt;h3 id=&quot;安装-2&quot;&gt;安装&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;安装&lt;a href=&quot;https://github.com/anthropics/claude-code&quot;&gt;Claude Code&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;  &lt;span class=&quot;c&quot;&gt;# 管理员权限运行powershell (备注：旧的npm安装方式已弃用)&lt;/span&gt;
  irm https://claude.ai/install.ps1 | iex
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;del&gt;安装&lt;a href=&quot;vscode:extension/anthropic.claude-code&quot;&gt;Claude Code for VS Code&lt;/a&gt;&lt;/del&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;del&gt;VS Code插件&lt;/del&gt;&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;VSCode的Setting.json必须显性禁用所有非核心功能的网络请求，包括遥测上报和自动更新检查。不然会一直等待遥感失败，导致等到几分钟才能进入AI的请求。&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;claudeCode.environmentVariables&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;value&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;DISABLE_TELEMETRY&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;value&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;caludemd&quot;&gt;CALUDE.md&lt;/h3&gt;

&lt;h3 id=&quot;skill--mcp-2&quot;&gt;Skill &amp;amp; MCP&lt;/h3&gt;

&lt;p&gt;同Gemini Cli&lt;/p&gt;

&lt;!-- * [codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp)

```bash
# 安装
irm https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/scripts/setup-windows.ps1 | iex
# 启用 MCP 会话启动时的自动索引
codebase-memory-mcp config set auto_index true
# 保持最新状态
codebase-memory-mcp update
# 告诉claude测试codebase-memory-mcp的使用会进行项目索引
```

  * (弃用)[~~Superpowers~~](https://github.com/obra/superpowers)
  * (弃用)~~claude-md-management~~
  * (弃用)~~planning-with-files~~
  * (弃用)~~Remember~~
  * (弃用)LSP

  放弃LSP方案，因为C# LSP无法正确处理partial。
  * (弃用) LSP- [VSC-LSP-MCP](https://github.com/beixiyo/vsc-lsp-mcp)

使用VSCode LSP的MCP，MCP（模型上下文协议）客户端能够实时访问丰富的 VSCode 上下文信息

```md
  1. vscode安装vsc-lsp-mcp插件
  2. 通过CC Switch给Claude添加MCP：
  &quot;lsp-mcp&quot;: {
    &quot;type&quot;: &quot;http&quot;,
    &quot;url&quot;: &quot;http://127.0.0.1:9527/mcp&quot;
  },
  3. .claude/rules/TOOLS.LSP.md要求Claude Code生成对VSCode-MCP的使用。
```

  * [LSP-VSCode MCP](https://github.com/tjx666/vscode-mcp)

不支持partial class，但能获取诊断信息，用于获取诊断信息并修复。

MCP（模型上下文协议）客户端能够实时访问丰富的 VSCode 上下文信息

```md
  1. vscode安装vsc-lsp-mcp插件
  2. 通过CC Switch给Claude添加MCP：
  &quot;vscode-mcp&quot;: {
    &quot;args&quot;: [
      &quot;/c&quot;,
      &quot;npx&quot;,
      &quot;-y&quot;,
      &quot;@vscode-mcp/vscode-mcp-server@latest&quot;
    ],
    &quot;command&quot;: &quot;cmd&quot;,
    &quot;type&quot;: &quot;stdio&quot;
  }
  3. .claude/rules/TOOLS.md要求Claude Code生成对VSCode-MCP的使用。
```

  * [弃用]LSP-Claude Code官方CSharp-lsp

dotnet安装[csharp-ls](https://github.com/razzmatazz/csharp-language-server)
Claude Code VS Code插件市场安装csharp-ls Plugin

  * (弃用)LSP-[VSCode LSP MCP Server](https://marketplace.visualstudio.com/items?itemName=trademe.vscode-lsp-mcp)(作者：Trad Me)

这个最简单，安装vscode插件。
运行VSCode命令: &quot;LSP MCP: Install for Claude Code&quot;
需要运行

```bash
# 确保mcp-proxy安装
uv tool install mcp-proxy
# 确保加入PATH，可能会输出Executable directory C:\Users\Gumc\.local\bin is already in PATH
uv tool update-shell
```

```json
{
  &quot;mcpServers&quot;: {
    &quot;vscode-lsp&quot;: {
      &quot;type&quot;: &quot;http&quot;,
      &quot;url&quot;: &quot;http://localhost:37140/mcp&quot;
    }
  }
}
```

  * (弃用)LSP-roslyn-refactor

感觉很慢 --&gt;

&lt;h3 id=&quot;opencode&quot;&gt;OpenCode&lt;/h3&gt;

&lt;h2 id=&quot;antigravity&quot;&gt;Antigravity&lt;/h2&gt;

&lt;p&gt;复杂功能特别是需要分析现有的代码且使用Gemini 3 Pro时，则使用Antigravity。&lt;/p&gt;

&lt;h2 id=&quot;vscode插件暂时不使用&quot;&gt;VSCode插件(暂时不使用)&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Copilot&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Copilot Pro无限使用GPT-5 Mini是不错的，可惜只有首月免费。&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Codex插件&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;某鱼某淘可购买business或Plus也有25元，可能有风险。
免费额度也很慷慨。&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Gemini Code Assist&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;复杂问题使用，Gemini 3的思考和代码能力最强。当然Geimin Code Assist经常会自动切换到Gemini Pro 2.5会降智的。
一般遇到复杂功能、不确定如何实现的需求或找Bug，则在aistudio使用Gemini 3讨论。如需要与代码交互(如找Bug)则使用Gemini Code Assist或Antigravity。&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Trae&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;基本废了，基本作为补全使用，不会用来写代码。
trae使用梯子通过trae.ai登录海外账号，似乎可以无限使用Gemini 2.5,不过现在经常出错，似乎海外账号不支持vscode插件了。
目前使用起来很慢，估计很快就可以弃用了。&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Code Web Chat&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;相当于合法通过vscode将上下文发送到web页面，然后获取web页面结果返回到vscode，自动进行editor等操作。
相比于很多逆向API(违规），这个合规的，自动帮忙提交上下文到网页版后并自动获取结果来对比。
但是，”codeWebChat.reuseLastTab”: true,这个配置似乎不生效，每次都重开一个标签，有毛病。&lt;/p&gt;

&lt;p&gt;备注：与Code Web Chat类似的有个：&lt;a href=&quot;https://github.com/afumu/openlink&quot;&gt;openlink&lt;/a&gt;(&lt;a href=&quot;https://www.bilibili.com/video/BV17Yw3z7EJd/?spm_id_from=333.1391.0.0&amp;amp;vd_source=f355063fe070b37905b1cec42ccf5c6c&quot;&gt;视频&lt;/a&gt;)，但还需要自己解决gemini外的前端适配和skill。&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Claude Code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;除非用Claude官方模型，不然第三方其他AI支持很差。&lt;/p&gt;

&lt;h2 id=&quot;ai思考&quot;&gt;AI思考&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;经常只改动他知道的，不理解上下文和改动的代码的涉及意图：
 例如：原本代码逻辑是A, AI加了个逻辑if判断后跳转到B，后面觉得B并不合适需要去掉，AI会基于B的判断去改为判断后走A逻辑。而不是按原来那样，直接就走A逻辑了。
 例如：Tween动画，需要调用OnComplete，原本的逻辑是加了个包装器在OnComplete后也进行RemoveTween。但如果不需要RemoveTween,AI只会删掉RemoveTween，而不会理解到包装器也是为了OnComplete而存在的。需要把包装器也删掉。
 我加了文档，不确定最后是否会按文档来，慢慢等待测试情况。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;✅ AI的大部分时间花费在找代码,要通过read去读取。想想我们自己是如何理解代码的，1个是整套代码框架有基本理解。2是vscode直接搜索能很快匹配大部分代码信息。但AI这个过程会很慢，特别遇到高峰期基本30分钟干不了人10分钟的事情。
 测试&lt;a href=&quot;https://github.com/MinishLab/semble&quot;&gt;https://github.com/MinishLab/semble&lt;/a&gt; 和 &lt;a href=&quot;https://github.com/johnhuang316/code-index-mcp&quot;&gt;https://github.com/johnhuang316/code-index-mcp&lt;/a&gt;, 结合用感觉还可以，似乎理解变快，但经常回退到Grep。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;cli无法自动匹配任务去使用模型，例如简单的模型和复杂的模型
 skill可以设定模型。
   子代理模式，但目前似乎还没发挥子代理的优势，因为spec和plan还是使用haiku，而且superpowers作用不大，头脑风暴似乎没什么意义。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;花很多时间在决策和修正AI，AI的方案总是不理想，需要给它提供正确的信息和方案。所以所有时间都在给AI做决策和修正Ai的错误方案上。
   我觉得有几个问题，1是弱AI会有很大问题，得不断加无穷无尽的限制，还是不够聪明。2.即使聪明的，也还是会给出错误决策。就像重建新的Tutorial系统，说了旧系统会删掉，他还是用了旧系统的功能。说了需要跑完全部测试才能停下来，还是跑不完测的（是否没有测试的规矩）
    &lt;ul&gt;
      &lt;li&gt;✅ 或者能否不要把AI当做一次性完成的工具，他就是新人，需要不断纠正。而你的工作就是让AI新人帮你干活。不要期待他在没有约束和纠正的情况下干好。你的工作就是约束和纠正AI新人。不要为此生气，气坏了没得赔。&lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;⬜️ Unity似乎没有正确的测试方法。&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;我觉得应该Antigravity给计划，讲这个计划落盘。
我审核通过后没问题再让gpt-5.4-mini进行落盘。&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;没有免费AI
 想法1：使用Gemma 31B + ds2API测试效果解决5
 想法2：使用Gemma 31B + GPT5.4-mini合作检查方案并且一个执行一个审查看效果解决4
 目前使用 gpt-5.4-mini然后用coder-spark做审查，还行但是还是用不到coder-spark的能力，推理思考还是很弱。还可以使用gemma31b做审查。&lt;/p&gt;

    &lt;p&gt;想法3: 使用类似&lt;a href=&quot;https://github.com/ypollak2/llm-router的功能来做匹配模型，解决3&quot;&gt;https://github.com/ypollak2/llm-router的功能来做匹配模型，解决3&lt;/a&gt;
 想法4：RAG本地向量索引是否能优化2。解决2。trae是如何实现的？
 想法5： 如何解决1？C# .Net是否有好的方案。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;AI还是不够聪明，我让他重新做一个系统，他确在做一个系统去引用旧系统，或者把旧系统作为入口引导到新系统。&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;备用：
改进Todo：
&lt;a href=&quot;https://github.com/lethain/library-mcp/tree/main&quot;&gt;https://github.com/lethain/library-mcp/tree/main&lt;/a&gt;
以下两个不确定是否有作用：
&lt;a href=&quot;https://github.com/Horilla/claudectx&quot;&gt;https://github.com/Horilla/claudectx&lt;/a&gt;
&lt;a href=&quot;https://github.com/azkhh/cchubber&quot;&gt;https://github.com/azkhh/cchubber&lt;/a&gt; 可以作为开启启动&lt;/p&gt;
</description>
        <pubDate>Thu, 09 Apr 2026 01:05:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/04/09/ai-code-helper-config/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/04/09/ai-code-helper-config/</guid>
        
        <category>AI</category>
        
        
      </item>
    
      <item>
        <title>Free AI</title>
        <description>&lt;h2 id=&quot;gemini&quot;&gt;Gemini&lt;/h2&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;入口&lt;/th&gt;
      &lt;th&gt;额度&lt;/th&gt;
      &lt;th&gt;是否值得试用&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;VS Code 插件 (OAuth 登录)&lt;/td&gt;
      &lt;td&gt;Gemini 3 Flash 1,000 次&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Gemini CLI (OAuth 登录)&lt;/td&gt;
      &lt;td&gt;Gemini 3 Flash 1,000 次&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Antigravity&lt;/td&gt;
      &lt;td&gt;信用点，&lt;a href=&quot;https://gemini.google/subscriptions/&quot;&gt;每日50点&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;codexclaude-使用9router接入所有ai效果并不好&quot;&gt;Codex/Claude (使用9Router接入所有AI，效果并不好)&lt;/h2&gt;

&lt;p&gt;备注：效果并不好，Claude、OpenAI和Gemini还有其他大模型之间的虽然能进行格式转化，但无法配合工具调用，例如claude code如果使用其他模型，会经常出现tool不存在。
有个大胆的想法，如果为Claude配置足够多的MCP作为tool，是否就可以使用第三方API了。待实现…&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;类型&lt;/th&gt;
      &lt;th&gt;名称&lt;/th&gt;
      &lt;th&gt;是否接入&lt;/th&gt;
      &lt;th&gt;Advance&lt;/th&gt;
      &lt;th&gt;Daily(稳定)&lt;/th&gt;
      &lt;th&gt;Weekly&lt;/th&gt;
      &lt;th&gt;Monthly&lt;/th&gt;
      &lt;th&gt;Free(不稳定)&lt;/th&gt;
      &lt;th&gt;免费额度说明&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;OAuth&lt;/td&gt;
      &lt;td&gt;&lt;del&gt;claude code&lt;/del&gt;&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;基本无，需要海外手机，不使用&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;&lt;del&gt;Antigravity&lt;/del&gt;&lt;/td&gt;
      &lt;td&gt;❌不合规&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;不符合谷歌要求，避免封号，不使用&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;OpenAI Codex&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt;✅ cx/gpt-5.3-codex&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;&lt;del&gt;cx/gpt-5.1-codex-mini&lt;/del&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://chatgpt.com/zh-Hans-CN/pricing/&quot;&gt;有限额度 GPT-5.3&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Github Copilot&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅gh/gpt-5-mini&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://docs.github.com/en/copilot/get-started/plans&quot;&gt;每月50次GPT-5 Mini&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Cursor&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅ cu/default&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://cursor.com/docs/models-and-pricing&quot;&gt;Premium模型请求每月50次&lt;br /&gt;Cursor-small模型每月200次&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Kilo&lt;/td&gt;
      &lt;td&gt;❌Grep挂起&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;del&gt;kc/kilo-auto/free&lt;/del&gt;&lt;/td&gt;
      &lt;td&gt;免费模型都报错导致挂起&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;cline&lt;/td&gt;
      &lt;td&gt;❌Grep挂起&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;del&gt;cl/minimax/minimax-m2.5:free&lt;/del&gt;&lt;/td&gt;
      &lt;td&gt;Qwen免费是因为用Qwen Code Cli&lt;br /&gt;官方能选择2.5free但无法测试通过且&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Free/Free试用&lt;/td&gt;
      &lt;td&gt;Kiro（AWS亚马逊）&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt;✅kr/claude-sonnet-4.5&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅kr/claude-sonnet-4.5&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;新用户送500个credits,首月可用Claude Opus 4.6&lt;br /&gt;&lt;a href=&quot;https://kiro.dev/pricing/&quot;&gt;每月50 个 credits&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Qwen Code&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;&lt;del&gt;每日2000次请求 （中国大陆用户）&lt;/del&gt;&lt;a href=&quot;https://qwen-ai.com/qwen-code/#free-tier&quot;&gt;&lt;del&gt;每日1000次（海外用户）&lt;/del&gt;&lt;/a&gt;免费额度100次每天&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Open Code&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅&lt;br /&gt;oc/minimax-m2.5-free&lt;br /&gt;&lt;del&gt;oc/nemotron-3-super-free&lt;/del&gt; 会挂起&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;内置免费模型&lt;br /&gt;不确定重置时间&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Gemini CLI&lt;/td&gt;
      &lt;td&gt;❌可能不合规&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;iFlow&lt;/td&gt;
      &lt;td&gt;❌即将关闭&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Open Router&lt;/td&gt;
      &lt;td&gt;❌openrouter/free&lt;br /&gt;但claude code使用会挂起&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;❌&lt;/td&gt;
      &lt;td&gt;似乎在Claude Code中不能正确使用&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Nvidia NIM&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt;-&lt;/td&gt;
      &lt;td&gt;-&lt;/td&gt;
      &lt;td&gt;-&lt;/td&gt;
      &lt;td&gt;-&lt;/td&gt;
      &lt;td&gt;✅&lt;br /&gt;nvidia/&lt;strong&gt;minimaxai/minimax-m2.7&lt;/strong&gt;&lt;br /&gt;nvidia/z-ai/glm5&lt;br /&gt;nvidia/&lt;strong&gt;qwen/qwen3.5-122b-a10b&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;没有额度限制，缺点是慢。&lt;br /&gt;添加3个避免有的模型挂掉&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Ollama Cloud&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅ollama/glm-5&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;每5小时重置一次&lt;br /&gt;一周重置一次&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Gemini&lt;/td&gt;
      &lt;td&gt;❌Key只能在Gemini Cli中用&lt;/td&gt;
      &lt;td&gt;&lt;del&gt;gemini/gemini-3-flash-preview&lt;/del&gt;&lt;/td&gt;
      &lt;td&gt;&lt;del&gt;gemini/gemini-3-flash-preview&lt;/del&gt;&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;&lt;del&gt;AI Studio后台显示:&lt;br /&gt;Gemini 3 Flash 每日20次&lt;br /&gt;Gemini 3 Flash Lite 每日500次&lt;/del&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;API&lt;/td&gt;
      &lt;td&gt;GLM Coding&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅glm/glm-4.7-flash&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://docs.z.ai/guides/overview/pricing&quot;&gt;GLM-4.7-Flash&lt;/a&gt;永久免费，都不稳定&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;GLN(china)&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅glm-cn/glm-4.7-flash&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://bigmodel.cn/pricing&quot;&gt;GLM-4.7-Flash&lt;/a&gt;永久免费，都不稳定&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Groq&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅groq/openai/gpt-oss-120b&lt;/td&gt;
      &lt;td&gt;每日14,400次请求&lt;br /&gt;不支持VPN&lt;br /&gt;据说当前免费,但似乎没有说明，先试用Free&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;Mistral&lt;/td&gt;
      &lt;td&gt;✅&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;✅mistral/codestral-latest&lt;/td&gt;
      &lt;td&gt;Experiment计划，模型免费，&lt;br /&gt;但数据用于训练&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;cerebras&lt;/td&gt;
      &lt;td&gt;❌没有任何模型可用&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;每日14,400次请求&lt;br /&gt;可能不支持VPN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Free&lt;/td&gt;
      &lt;td&gt;modelscope.cn/API-Inference&lt;/td&gt;
      &lt;td&gt;❌免费额度很少了&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;&lt;br /&gt;&lt;del&gt;modelscope/Qwen/Qwen3-Coder-480B-A35B-Instruct&lt;br /&gt;modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct&lt;br /&gt;modelscope/Qwen/Qwen3.5-397B-A17B&lt;br /&gt;modelscope/Qwen/Qwen3-235B-A22B-Thinking-2507&lt;br /&gt;modelscope/Qwen/Qwen3-Next-80B-A3B-Thinking&lt;/del&gt;&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;&lt;del&gt;每日2000次，每个模型不超过500次&lt;/del&gt;&lt;br /&gt;&lt;del&gt;只有千问算力够，其他很慢&lt;/del&gt;&lt;br /&gt;实际免费额度100次&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;!--
## (已弃用)Nvidia NIM/Open Reouter

### 前提:cc switcher/ free claude core / 9router

* 使用[CC Switcher](https://github.com/farion1231/cc-switch), 用于配置free-cluade-code的模型即指向localhost.
* 使用[9router](https://github.com/decolua/9router) 自动切换所有api
* 使用[free-claude-code](https://github.com/Alishahryar1/free-claude-code)用于转发请求到Nvidial NIM和OpenRouter
* free-claude-code配置Discord方便远程操作Claude code. (20260405的free-claude-code有bug,需要手动修复cli/session.py中ANTHROPIC_API_KEY的设置), 需要npm安装mcp-server-discord然后通过ccswitcher配置mcp-server-discord和DISCORD_TOKEN

```conf
    MODEL_OPUS=&quot;nvidia_nim/deepseek-ai/deepseek-v3.2&quot;         # opus最复杂最慢
    MODEL_SONNET=&quot;open_router/qwen/qwen3.6-plus:free&quot;
    MODEL_HAIKU=&quot;open_router/minimax/minimax-m2.5:free&quot;       # haiku最简单最快
    MODEL=&quot;nvidia_nim/openai/gpt-oss-120b&quot;                     # fallback

    # 可在vscode中/switch model来切换默认模型
```

* free-claude-code开机启动（win10）

```conf
  # 第一步：打开启动文件夹,按下键盘上的 Win + R 键。在弹出的对话框中输入 shell:startup 并按回车。这会打开一个名为“启动”的文件夹。
  # 第二步：创建快捷方式,在文件夹空白处点击 右键 -&gt; 新建 -&gt; 快捷方式。在“请键入对象的位置”框中，直接复制并粘贴以下完整命令：
  powershell.exe -NoExit -Command &quot;cd &apos;D:\Pack\AI\free-claude-code&apos;; uv run uvicorn server:app --host 0.0.0.0 --port 8082&quot;
  # 双击测试是否成功
```

### Nvidia NIM

* 使用free-claude-code来转发请求到Nvidia NIM.

### openRouter

* 使用free-claude-code来转发请求到OpenRouter

### ollama

* 3小时的量很快使用完, 但可以使用Gemini, 目前不使用.

### z.ai的GLM-4.7-Flash

* z.ai和智谱国内站的GLM-4.7-Flash免费使用, 可用于处理简单或明确的功能,在cc switcher配置了,其他不可用时切换到z.ai.

### claude进阶:mcp和skill等

* mcp

  * [vsc-ls-mcp](https://github.com/beixiyo/vsc-lsp-mcp) claude code使用vscode提供的lsp语言服务器
  * [mcp-server-discord] claude code 与 discord通信
* skill

```md
  # Claude Code 项目规范

  ## 语义化代码导航 (Semantic Navigation)

  项目已连接 LSP-MCP 服务器 (127.0.0.1:9527)。在处理 C# 代码时，必须优先使用语义工具，禁止仅依赖文本搜索。

  ### 1. 查找与定位逻辑 (Finding Code)

    - **查找类/方法/变量的定义**：严禁使用 `glob` 或 `grep` 查找符号位置。必须直接调用 `get_definition`。
    - **理解代码含义**：在修改不熟悉的符号前，先调用 `get_hover` 获取该符号的完整类型信息和文档注释（尤其在处理 ET 框架的复杂泛型时）。
    - **处理编译错误**：若修改后出现编译问题，优先使用 `get_completions` 获取补全建议，辅助修复语法错误。

  ### 2. 影响分析逻辑 (Impact Analysis)

    - **重构与修改前**：在修改任何 `Component`、`System` 或公共接口前，必须执行 `get_references`。
    - **评估范围**：根据 `get_references` 返回的列表，评估修改对项目其他模块的影响，确保不会破坏 ET 框架的事件分发或组件生命周期。

  ### 3. 全局重命名 (Refactoring)

    - **跨文件更名**：严禁手动在多个文件中使用 `sed` 或 `edit_file` 替换名称。必须使用 `rename_symbol` 以确保所有语义引用（包括注释和不同文件中的引用）同步更新。

  ### 4. 故障退避机制 (Fallback)

    - 只有在以下情况方可使用 `ls` / `grep` / `glob`：
      - 查找非 C# 符号的字符串内容（如 Log 文本、JSON 键名）。
      - `lsp-mcp` 返回“未找到定义”或服务器连接异常时。
      - 需要模糊匹配文件名而非代码符号时。

  ## 开发工作流示例 (SOP)

  当你被要求“修改 UIModule 的初始化逻辑”时：

  1. **第一步**：调用 `get_definition` 定位 `UIModule` 类及其初始化方法。
  2. **第二步**：调用 `get_hover` 确认参数类型。
  3. **第三步**：调用 `get_references` 查看哪些 System 正在调用此初始化。
  4. **第四步**：执行修改。

  ## 缩进与格式要求 (Indentation &amp; Formatting)

  本项目严格使用 **空格 (Spaces)** 缩进，禁止使用 Tab。

  1. **缩进标准**：全文使用 **4 个空格** 缩进。
  2. **编辑准则**：在执行 `edit_file` 操作前，必须先通过 `read_file` 确认目标代码块的精确缩进级别。
  3. **匹配要求**：生成的 `oldText` 必须与磁盘文件的空格数量完全一致。如果无法确定空格数量，请使用 `grep` 或查看该行前后的空格分布。
  4. **禁止混用**：严禁在一次编辑中引入任何 Tab 字符或不一致的空格缩进。

  ## 处理 C# 转义字符串 (Escaped Strings)

  当修改包含 `\n` 或 `$&quot;{...}&quot;` 的 C# 代码时，经常会发生编辑冲突。请执行以下规避策略：

  1. **编辑策略**：如果一行代码包含 `\n`，在 `edit_file` 时尽量不要把 `\n` 放在匹配字符串的边界，或者尝试仅替换该行中不含转义符的部分。
  2. **重构优先**：如果编辑失败，请尝试将该行重写。例如：
    - 原始：`string.Format($&quot;\nError: {msg}&quot;)`
    - 改为：`$&quot;{System.Environment.NewLine}Error: {msg}&quot;` 或使用拼接。
  3. **匹配验证**：在定位 `oldText` 时，如果包含反斜杠，必须意识到 JSON 传输层可能导致的转义失效。如果匹配不到，请尝试使用 `grep` 先确认磁盘上的精确字节。

``` --&gt;

&lt;h2 id=&quot;image&quot;&gt;Image&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://copilot.microsoft.com/&quot;&gt;copilot.microsoft&lt;/a&gt; 据说每次免费图片不限制&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 28 Mar 2026 11:05:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/03/28/free-ai-code/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/03/28/free-ai-code/</guid>
        
        <category>AI</category>
        
        
      </item>
    
      <item>
        <title>解决MacOS Sequoia 15连接蓝牙/无线鼠标后导致强制进入安全模式</title>
        <description>&lt;h2 id=&quot;状况&quot;&gt;状况&lt;/h2&gt;

&lt;p&gt;Macbook Air 2015出问题的情况:&lt;/p&gt;

&lt;p&gt;系统支持版本太低，使用OpenCore  Legacy Patcher升级到MacOs Sequoia。能顺利使用新系统。&lt;/p&gt;

&lt;p&gt;无线网卡损坏，使用USB网卡并且安装Wireless-USB-OC-Big-Sur-Adapter第三方驱动。能顺利使用无线网络。&lt;/p&gt;

&lt;p&gt;但当插入DOAL-MODE MOUSE(可以同时使用WIFI和蓝牙的鼠标)的USB模块且连接蓝牙后，下次重启就会强制进入安全模式。之后无论怎么重启都只会进入安全模式。如果删除蓝牙后放置一段时间不开机后，再次开机就可以正常进入。&lt;/p&gt;

&lt;h2 id=&quot;分析问题&quot;&gt;分析问题&lt;/h2&gt;

&lt;p&gt;从 Big Sur 开始，苹果正式宣布废弃传统的内核扩展（Kernel Extensions，即 .kext 文件），要求所有网卡、鼠标、键盘驱动开发者改用运行在用户空间的 NetworkExtension 和 DriverKit 框架。
在这个阶段，Realtek 等厂商直接宣布停止开发 Mac 驱动[&lt;a href=&quot;https://www.google.com/url?sa=E&amp;amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQH9vQdFyxHSlKpXo7bEo0LOBFSWtMLFq0p8df0lW6wfZNpmFp8DD4EFmPRntNXsTqUJM9lKS7m5eetq4fSs_iMB-_b0sWRsgpGJTFT_v8YLtbkYGMatcLN6ozsmUh_N8sao5N8djPiLowfNQna4ZQBir-2oQijRpLW471zwW4HYqyfa4xwjuyK6z10eG-xI6YJZa_ljR8j7dcWmnA%3D%3D&quot;&gt;1&lt;/a&gt;]。但由于底层还没完全封死，像 chris1111 这样的民间大神还能通过关闭 SIP，把旧驱动“硬塞”进内核里，此时勉强能用，只是偶尔不稳定[&lt;a href=&quot;https://www.google.com/url?sa=E&amp;amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQH9vQdFyxHSlKpXo7bEo0LOBFSWtMLFq0p8df0lW6wfZNpmFp8DD4EFmPRntNXsTqUJM9lKS7m5eetq4fSs_iMB-_b0sWRsgpGJTFT_v8YLtbkYGMatcLN6ozsmUh_N8sao5N8djPiLowfNQna4ZQBir-2oQijRpLW471zwW4HYqyfa4xwjuyK6z10eG-xI6YJZa_ljR8j7dcWmnA%3D%3D&quot;&gt;1&lt;/a&gt;][&lt;a href=&quot;https://www.google.com/url?sa=E&amp;amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQFfrhZqlsT0Xonukhzpfex5AJ8_QUEJevTfJtOBlCygiVemoX7pAa1UeJMg02R1ynGawfGodiGnHLoqR6KTmcGut-Bd0vOVSNqlNfjDBVNRaHeqMuDm6IL_zZumcgBcJJk9_m2N5atoyso2QAeXj_68G_Pf&quot;&gt;2&lt;/a&gt;]。&lt;/p&gt;

&lt;p&gt;到了 Sonoma，苹果做了一个大动作：彻底删除了系统内核中老旧的 IO80211FamilyLegacy（传统无线网卡堆栈），并大幅修改了 USB 栈。为了让你电脑自带的老网卡能用，OCLP 必须强行向 Sonoma 注入一个叫 IOSkywalkFamily 的底层核心文件。当你安装了第三方的 USB 网卡驱动（比如 Wireless-USB-OC-Big-Sur-Adapter），这个驱动在工作时，会和 OCLP 注入的 IOSkywalkFamily 在争夺底层网络控制权时发生严重冲突。但这种可能，我看Wireless-USB-OC-Big-Sur-Adapter是支持OpenCore Legacy Patcher和Sequoia的，大概率不是这个问题，那么我们分析其他原因：&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;如果是USB网卡的问题，但我安装Wireless-USB-OC-Big-Sur-Adapter驱动后一直能正常使用。（有一种可能使用Wireless-USB-OC-Big-Sur-Adapter驱动的WIFI图标修改软件的导致的冲突）但这种可能性较低，因为我安装后一直能正常使用。&lt;/li&gt;
  &lt;li&gt;DUAL MODE MOUSE的2.4G接收器的问题：当插入接收器，macOS 会通过设备的Vendor ID (VID) 和 Product ID (PID) 来判断这是什么设备。如果系统有内置驱动 ：它会直接加载 macOS 内建的 Kext 或 DriverKit 驱动。如果是新设备/旧设备：对于老 Mac 上的 OCLP 环境，它会加载 OCLP 为了支持你这个老 Mac 的 USB 接口而提前注入的通用 USB 驱动补丁。OCLP 必须确保 Mac 的所有 USB 接口能工作，所以它注入了一些底层补丁。点击“重新启动”时，系统需要“安全地”卸载所有正在运行的 Kext 和 DriverKit 扩展。2.4G 接收器的驱动（可能是 OCLP 注入的通用 USB 驱动，或者是设备内部的 HID 描述符被旧补丁错误识别了）在被强制卸载时，没有正确响应内核指令，导致内核崩溃 (Kernel Panic)。系统底层自动识别了该 USB 设备的 PID/VID，并强制加载了 OCLP 帮你打上的、用来支持老 USB 接口的底层补丁/Kext。正是这个补丁在重启卸载时崩溃了&lt;/li&gt;
  &lt;li&gt;DUAL MODE MOUSE的蓝牙协议问题：旧蓝牙鼠标”可能使用的是一个非常老的蓝牙协议版本。当 OCLP 注入的补丁尝试用 Sonoma 的新蓝牙框架（IOBluetoothFamily）去和这个老协议握手时，如果补丁本身没有完全适配 Sonoma 的新接口，就会在握手完成的瞬间引发一个无法恢复的内核崩溃。死锁机制触发：系统检测到“鼠标连接”这个行为引发了崩溃，它会记录下来。下次重启时，系统（特别是启动到一定程度时）会自动尝试重新初始化蓝牙设备（即使你把鼠标关了，它也会尝试连接已配对设备），一旦初始化这个老旧的蓝牙芯片模块，就立即触发崩溃，再次进入安全模式。&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;解决问题思路&quot;&gt;解决问题思路&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;先使用USB启动盘降级到Ventura(按Atl，进入时选择EFI BOOT图标的)&lt;/li&gt;
  &lt;li&gt;安装第三方USB驱动，确定可以运行和访问WIFI，重启是否进入安全模式。&lt;/li&gt;
  &lt;li&gt;连接蓝牙鼠标和键盘，查看是否有问题。&lt;/li&gt;
  &lt;li&gt;插入2.4G接收机蓝牙和键盘，查看是否有问题。&lt;/li&gt;
  &lt;li&gt;升级到Sequoia系统&lt;/li&gt;
  &lt;li&gt;先连接蓝牙鼠标（不要插入2.4G接收器）&lt;/li&gt;
  &lt;li&gt;如果以上哪一步出了问题，就能确定是哪一步的问题。如果以上都没问题，那么也不用插入2.4G接收器了，确定是接收器问题。&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Mon, 09 Mar 2026 01:05:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/03/09/mac-sequoia-bluetooth/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/03/09/mac-sequoia-bluetooth/</guid>
        
        <category>Mac</category>
        
        
      </item>
    
      <item>
        <title>跨境收款平台对比</title>
        <description>&lt;h2 id=&quot;跨境平台&quot;&gt;跨境平台&lt;/h2&gt;

&lt;p&gt;跨境收款平台各有优劣处，有的非常麻烦，但又不需要每次上传订单。有得开通容易，又每次需要下载订单上传很麻烦。&lt;/p&gt;

&lt;h2 id=&quot;对比&quot;&gt;对比&lt;/h2&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt; &lt;/th&gt;
      &lt;th&gt;Pingpong&lt;/th&gt;
      &lt;th&gt;珊瑚跨境&lt;/th&gt;
      &lt;th&gt;连连&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;店铺审核&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;非常麻烦,要联系客服或商务，录制App视频操作&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;收款/提现&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;未能成功入账，原因为入账额度不足。客服不知道什么原因，等提示&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;是否需上传收入订单&lt;/td&gt;
      &lt;td&gt;绑定授权&lt;/td&gt;
      &lt;td&gt;是，等2天审核&lt;/td&gt;
      &lt;td&gt;绑定授权,似乎不需要上传&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;手续费&lt;/td&gt;
      &lt;td&gt; &lt;/td&gt;
      &lt;td&gt;0.7%(暂时收0.5%)&lt;/td&gt;
      &lt;td&gt;1%&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
</description>
        <pubDate>Fri, 30 Jan 2026 11:05:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/01/30/cross-border-payment/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/01/30/cross-border-payment/</guid>
        
        <category>Market</category>
        
        
      </item>
    
      <item>
        <title>禁用微信WeChatAppEx进程</title>
        <description>&lt;h2 id=&quot;问题描述&quot;&gt;问题描述&lt;/h2&gt;

&lt;p&gt;打开Windows微信电脑端，WeChatAppEx进程好多个，每个占用部分CPU和内存。而且关闭WeChatAppEx进程后还会自动打开。&lt;/p&gt;

&lt;h2 id=&quot;解决方法&quot;&gt;解决方法&lt;/h2&gt;

&lt;p&gt;关闭微信，在任务管理器右键WeChatAppEx进程，打开文件所在的位置，一般是文件夹C:\Users\XXX\AppData\Roaming\Tencent\WeChat\XPlugin\Plugins\RadiumWMPF，删除RadiumWMPF文件夹后重新创建RadiumWMPF，右键属性-安全，对每个组或用户名点击编辑，在拒绝那一列勾选写入，这样禁用写入权限。&lt;/p&gt;

&lt;p&gt;之后再重新打开微信，就不再有WeChatAppEx进程。&lt;/p&gt;

&lt;p&gt;禁用之后不能再使用小程序的功能&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;20260301&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;发现微信非常鸡贼地改到了C:\Users\XXX\AppData\Roaming\Tencent\xwechatXPlugin\Plugins\RadiumWMPF&lt;/p&gt;

&lt;p&gt;同样禁用写入权限&lt;/p&gt;
</description>
        <pubDate>Thu, 22 Jan 2026 09:15:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2026/01/22/banned-wechatex/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2026/01/22/banned-wechatex/</guid>
        
        <category>System</category>
        
        
      </item>
    
      <item>
        <title>Jekyll环境部署</title>
        <description>&lt;h2 id=&quot;windows配置jekyll环境&quot;&gt;Windows配置Jekyll环境&lt;/h2&gt;

&lt;p&gt;(❌已弃用，Ruby新版本会有很多问题)&lt;/p&gt;

&lt;!--

### 安装环境 (Ruby + DevKit)

1. **下载 RubyInstaller：**
   访问 [RubyInstaller for Windows](https://rubyinstaller.org/downloads/)。

   * 建议选择 **Ruby+Devkit 3.1.x (x64)** 或更高版本。
2. **安装并运行 `ridk install`：**

   - 安装到D: /ProgramFiles
   - 安装完成后，会自动弹出一个命令行窗口（RubyInstaller Setup Wizard）。

     - 输入 `3` (MSYS2 and MINGW development toolchain) 并按回车。
     - 这是为了确保 Windows 能编译 Jekyll 依赖的一些 C 语言插件。

   - 确保D: \ProgramFiles\\Ruby3xxx\bin放入PATH

### 安装 Jekyll 和 Bundler

打开 Windows 的 PowerShell 或终端（CMD），输入以下命令：

```powershell

gem install eventmachine -v &apos;1.2.7&apos; -- --with-cppflags = &quot;-D_WIN32_WINNT=0x0600 -Wno-attributes&quot;

gem install jekyll bundler

```

验证是否安装成功：

```powershell
jekyll -v
```

### 在本地构建（打包）你的网站

1. 使用终端进入你的网站源代码目录：

```powershell
   cd C: \你的项目路径\coohex-website
```

2. **安装依赖项：**
   如果你的项目里有 `Gemfile` ，先运行：

```powershell
   bundle install
```

3. **正式构建项目（生产环境模式）：**
   为了确保生成的链接正确且代码经过压缩，请使用以下命令构建：

```powershell
   # Windows 环境设置环境变量并构建
   $env:JEKYLL_ENV = &quot;production&quot;
   bundle exec jekyll build
```

   *构建完成后，你会发现项目根目录下多了一个 **`_site`** 文件夹。这个文件夹里的所有内容就是你需要传到服务器上的“包”。*

### 如果在 Windows 上遇到错误：

* **编码错误：** 在终端运行 `chcp 65001` 切换到 UTF-8 编码。
* **性能问题：** Jekyll 在 Windows 上处理大量文件时较慢，如果项目很大，建议在 Windows 上启用 **WSL (Windows Subsystem for Linux)**，在 Linux 子系统中运行 Jekyll，速度会快 5-10 倍。
--&gt;

&lt;h2 id=&quot;msys2-安装jekyll环境&quot;&gt;MSYS2 安装jekyll环境&lt;/h2&gt;

&lt;p&gt;(❌已弃用，较为麻烦)&lt;/p&gt;

&lt;!--
* ~~安装cmake~~
* ~~安装gcc~~

  + ~~[下载gcc压缩包](https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/) 或 [这里](https://gcc-mcf.lhmouse.com/)~~
  + ~~解压后将mingw64/bin加入环境变量~~
  + ~~测试gcc是否安装成功：gcc -v~~
  + ~~将MinGW\bin中的mingw32-make.exe改名为make.exe~~
  + ~~测试make是否安装成功：make -v~~
* 安装Ruby(也可以通过Windows Subsystem for Linux安装)

  + [下载安装包](https://rubyinstaller.org/downloads/), 安装到D:/ProgramFiles
  + 确保D:\ProgramFiles\\Ruby33-X64\bin放入PATH
  + 检测Ruby是否安装成功：ruby -v
  + 安装完会自动弹窗(如果没有则运行ridk install)选择3 MSYS2 and MINGW development tool chain
  + ~~从Ruby3.0开始webrick已经不绑定到Ruby中，需要手动添加: bundle add webrick~~
* ~~Gem添加国内源
 `gem sources --remove https://rubygems.org/`

 `gem sources -a https://gems.ruby-china.com/`

  检测是否成功： `gem sources -l`

  已创建的jekyll项目可用把Gemfile中的链接也修改下~~
* ~~安装RubyGems(Ruby的包管理框架)~~

  + ~~`gem update --system`~~
  + ~~检测RubyGems是否安装成功：`gem -v`~~
  + ~~管理员权限cmd运行： `ridk install`，选择2和选择3 MSYS2 and MINGW development tool chain，弹窗出来选择路径安装。安装完继续等cmd的运行完成~~
  + ~~激活 `ridk enable`~~
  + ~~安装openssl~~
    ~~pacman -Syu
    pacman -S base-devel gcc mingw-w64-x86_64-toolchain
    pacman -S mingw-w64-x86_64-openssl~~

* MSYS2系统环境(打开start command prompt with ruby)

  + 配置国内镜像
    修改D:\ProgramFiles\Ruby33-x64\msys64\etc\pacman.d下的mirrorlist.msys文件增加
    Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch
    同时运行
    sed -i &quot;s#https\?://mirror.msys2.org/#https://mirrors.tuna.tsinghua.edu.cn/msys2/#g&quot; /etc/pacman.d/mirrorlist*

  + 更新Msys2系统环境
    pacman -Sy
    #更新源
    pacman -Syu
    pacman -Su

  + 安装gcc、cmake和其他常用工具
    pacman -S mingw-w64-x86_64-gcc
    pacman -S  mingw-w64-x86_64-toolchain
    pacman -S  base-devel ruby
    pacman -S ruby-ffi
    pacman -S mingw-w64-x86_64-gtk3
    pacman -S  mingw-w64-x86_64-glade
    pacman -S mingw-w64-x86_64-openssl
    pacman -S mingw-w64-x86_64-libffi
    pacman -S mingw-w64-ucrt-x86_64-pkg-config

  + 设置系统环境变量
    D:\ProgramFiles\Ruby33-x64\msys64\mingw64\bin

* 安装Jekyll和Bundler

  + 运行：`gem install jekyll bundler rdiscount`
  + ~~如果运行失败可以尝试使用rubyinstall压缩包，手动[安装MSYS2](https://www.cnblogs.com/CodeWorkerLiMing/p/12274583.html), 然后 `gem install jekyll --platform=ruby`~~
  + 检测Jekyll是否安装成功：`jekyll -v`
  + 如何缺少ssl则运行 `gem install openssl`
* 运行blog
--&gt;

&lt;h2 id=&quot;wsl安装jekyll环境linux则不必安装wsl2&quot;&gt;WSL安装Jekyll环境（Linux则不必安装WSL2）&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;使用WSL2 安装Linux &lt;a href=&quot;https://gumcstronger.github.io/2025/04/29/holopart/&quot;&gt;安装见这里&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;安装Ruby &lt;a href=&quot;https://jekyllrb.com/docs/installation/#requirements&quot;&gt;参考官方教程但使用rbenv&lt;/a&gt;，但使用
    &lt;ul&gt;
      &lt;li&gt;使用rbenv安装Ruby&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;  &lt;span class=&quot;c&quot;&gt;# 安装依赖&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt update
  &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;build-essential libssl-dev libreadline-dev zlib1g-dev autoconf bison libyaml-dev libncurses5-dev libffi-dev libgdbm-dev
  &lt;span class=&quot;c&quot;&gt;# 安装 rbenv&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; /data/pack
  &lt;span class=&quot;c&quot;&gt;# 下载并安装&lt;/span&gt;
  curl &lt;span class=&quot;nt&quot;&gt;-fsSL&lt;/span&gt; https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
  &lt;span class=&quot;c&quot;&gt;# =============================配置环境变量=============================&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;# 将以下内容添加到你的 ~/.bashrc（如果是 zsh 则加到 ~/.zshrc）：&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;export PATH=&quot;$HOME/.rbenv/bin:$PATH&quot;&apos;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.bashrc
  &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;eval &quot;$(rbenv init -)&quot;&apos;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.bashrc
  &lt;span class=&quot;nb&quot;&gt;source&lt;/span&gt; ~/.bashrc
  &lt;span class=&quot;c&quot;&gt;# 安装特定版本的 Ruby&lt;/span&gt;
  rbenv &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;3.4.8       &lt;span class=&quot;c&quot;&gt;# 安装 3.4.8 版本&lt;/span&gt;
  rbenv global 3.4.8        &lt;span class=&quot;c&quot;&gt;# 设置为全局默认版本&lt;/span&gt;
  ruby &lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt;                   &lt;span class=&quot;c&quot;&gt;# 验证&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;安装官方教程所需要求&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;  &lt;span class=&quot;c&quot;&gt;# 安装 Ruby 及其他必备组件（去掉了ruby-full)&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;build-essential zlib1g-dev ruby-build ruby-dev
  &lt;span class=&quot;c&quot;&gt;# 避免以 root 用户身份安装 RubyGems 包（称为 gem）。而是为您的用户帐户设置一个 gem 安装目录。&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;# Install Ruby Gems to ~/gems&apos;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.bashrc
  &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;export GEM_HOME=&quot;$HOME/gems&quot;&apos;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.bashrc
  &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;export PATH=&quot;$HOME/gems/bin:$PATH&quot;&apos;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.bashrc
  &lt;span class=&quot;nb&quot;&gt;source&lt;/span&gt; ~/.bashrc
  &lt;span class=&quot;c&quot;&gt;# 到项目目录安装 Jekyll 和 Bundler&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;项目目录
  gem &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;jekyll bundler

&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;参考官方教程安装Jekyll &lt;a href=&quot;https://jekyllrb.com/docs/&quot;&gt;官方教程&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;jekyll打包&quot;&gt;Jekyll打包&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;运行blog&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;  &lt;span class=&quot;c&quot;&gt;# 如果是mac使用chruby,则需要切换ruby&lt;/span&gt;
  chruby 3.1.3
  &lt;span class=&quot;c&quot;&gt;# 运行&lt;/span&gt;
  bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll serve
  &lt;span class=&quot;c&quot;&gt;# 修改实时更新&lt;/span&gt;
  bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll serve &lt;span class=&quot;nt&quot;&gt;--livereload&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;# 打包&lt;/span&gt;
  bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll build
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;如需要多配置打包
可以将以下保存到build.sh, 修改配置，直接运行./build.sh, 不用每次修改配置&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c&quot;&gt;#!/bin/bash&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 如果任何命令失败，则立即退出&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-e&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# --- 定义源和目标目录 ---&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 构建输出目录 (在项目文件夹内)&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;SRC_COOHEX_COM&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;build/www_coohex_com&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;SRC_COOHEX_GITHUB_IO&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;build/coohex_github_io&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;SRC_DEVELOPMENT&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;build/development&quot;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 最终部署目录 (在项目文件夹外)&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;DEST_WWW_COOHEX_COM&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;../www_coohex_com&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;DEST_COOHEX_GITHUB_IO&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;../coohex.github.io&quot;&lt;/span&gt;


&lt;span class=&quot;c&quot;&gt;# --- Build Step ---&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;--- 开始构建 Jekyll 网站 ---&quot;&lt;/span&gt;

&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;1. 正在为 coohex.com 构建...&quot;&lt;/span&gt;
bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll build &lt;span class=&quot;nt&quot;&gt;--config&lt;/span&gt; _config_www_coohex_com.yml &lt;span class=&quot;nt&quot;&gt;--destination&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$SRC_COOHEX_COM&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# echo &quot;2. 正在为 coohex.github.io 构建...&quot;&lt;/span&gt;
bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll build &lt;span class=&quot;nt&quot;&gt;--config&lt;/span&gt; _config_coohex_github_io.yml &lt;span class=&quot;nt&quot;&gt;--destination&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$SRC_COOHEX_GITHUB_IO&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# echo &quot;3. 正在为 development 构建...&quot;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# bundle exec jekyll build --config _config_development.yml --destination &quot;$SRC_DEVELOPMENT&quot;&lt;/span&gt;

&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;--- 所有构建已完成！ ---&quot;&lt;/span&gt;


&lt;span class=&quot;c&quot;&gt;# # --- Deployment/Move Step ---&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# echo &quot;--- 开始部署文件 ---&quot;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# # 1. 部署到 www_coohex_com&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# echo &quot;正在部署到 $DEST_WWW_COOHEX_COM...&quot;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# # 确保目标目录存在&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# mkdir -p &quot;$DEST_WWW_COOHEX_COM&quot;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# # 使用 rsync 同步文件：删除目标目录中多余的文件，但排除 .git 目录&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# rsync -a --delete --exclude=&apos;.git&apos; &quot;$SRC_COOHEX_COM/&quot; &quot;$DEST_WWW_COOHEX_COM/&quot;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# echo &quot;部署到 $DEST_WWW_COOHEX_COM 完成。&quot;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# # 2. 部署到 coohex.github.io&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# echo &quot;正在部署到 $DEST_COOHEX_GITHUB_IO...&quot;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# # 确保目标目录存在&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# mkdir -p &quot;$DEST_COOHEX_GITHUB_IO&quot;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# # 使用 rsync 同步文件：删除目标目录中多余的文件，但排除 .git 目录&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# rsync -a --delete --exclude=&apos;.git&apos; &quot;$SRC_COOHEX_GITHUB_IO/&quot; &quot;$DEST_COOHEX_GITHUB_IO/&quot;&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# echo &quot;部署到 $DEST_COOHEX_GITHUB_IO 完成。&quot;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# echo &quot;--- 所有文件部署完成！ ---&quot;&lt;/span&gt;

&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Sat, 06 Dec 2025 12:15:00 +0000</pubDate>
        <link>http://gumcstronger.github.io/2025/12/06/jekyll-env/</link>
        <guid isPermaLink="true">http://gumcstronger.github.io/2025/12/06/jekyll-env/</guid>
        
        <category>Game Development</category>
        
        
      </item>
    
  </channel>
</rss>
