<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>开发工具 - 分类 - cfanzp学习笔记</title>
    <link>https://cfanzp008.github.io/categories/devtools/</link>
    <description>开发工具 - 分类 - cfanzp学习笔记</description>
    <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>cfan.zp@qq.com (cfanzp)</managingEditor>
      <webMaster>cfan.zp@qq.com (cfanzp)</webMaster><lastBuildDate>Thu, 02 Apr 2026 14:00:00 &#43;0800</lastBuildDate><atom:link href="https://cfanzp008.github.io/categories/devtools/" rel="self" type="application/rss+xml" /><item>
  <title>Tmux &#43; OpenCode 安装使用教程</title>
  <link>https://cfanzp008.github.io/tmux-opencode-tutorial/</link>
  <pubDate>Thu, 02 Apr 2026 14:00:00 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/tmux-opencode-tutorial/</guid>
  <description><![CDATA[Tmux + OpenCode 安装使用教程 背景与简介 在日常开发和运维工作中，我们经常需要同时管理多个终端会话：
远程服务器上运行多个服务 同时查看日志、编辑代码、运行测试 临时断开连接后希望保持任务继续运行 Tmux（Terminal Multiplexer）正是为解决这些痛点而设计的终端复用器。而 OpenCode 作为一个开源的 AI 编程助手，可以大幅提升编码效率。
本文将详细介绍两者的安装与基本使用方法。
什么是 Tmux Tmux 是一个终端复用器，允许在一个终端中运行多个会话、窗口和窗格。它的主要功能包括：
会话管理：保持后台任务运行，即使 SSH 断开也不会中断 分屏功能：将终端分割成多个窗格，同时查看多个任务 会话共享：允许其他人加入到同一个终端会话中 标签式操作：通过快捷键快速切换不同窗口 什么是 OpenCode OpenCode 是一个开源的 AI 编程助手，支持：
代码补全与生成 代码审查与重构 自然语言编程 多模型支持 Tmux 安装 Ubuntu/Debian 1 2 sudo apt-get update sudo apt-get install tmux CentOS/RHEL 1 sudo yum install tmux macOS 1 2 # 使用 Homebrew brew install tmux 验证安装 1 tmux -V Tmux 基本使用 启动与退出 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 # 启动新会话 tmux # 指定会话名称启动 tmux new -s mysession # 退出 tmux（会话保留） Ctrl+b 然后按 d # 列出所有会话 tmux ls # 重新接入会话 tmux attach -t mysession # 杀死会话 tmux kill-session -t mysession 快捷键前缀 Tmux 的所有快捷键都需要先按下 前缀键（默认是 Ctrl+b），然后再按功能键。]]></description>
</item>
<item>
  <title>百度文心一言体验</title>
  <link>https://cfanzp008.github.io/chatgpt-baidu/</link>
  <pubDate>Mon, 17 Apr 2023 20:37:15 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/chatgpt-baidu/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>Mac M1中使用lldb调试c&#43;&#43;</title>
  <link>https://cfanzp008.github.io/mac-m1-lldb/</link>
  <pubDate>Tue, 11 Apr 2023 18:33:49 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/mac-m1-lldb/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>几款免费好用的思维导图软件</title>
  <link>https://cfanzp008.github.io/freemind/</link>
  <pubDate>Wed, 22 Mar 2023 08:54:10 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/freemind/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>ubuntu好用的pdf阅读器Evince</title>
  <link>https://cfanzp008.github.io/evince/</link>
  <pubDate>Fri, 02 Dec 2022 09:38:25 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/evince/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>如何在terminal中使用Joplin并像vim一样移动?</title>
  <link>https://cfanzp008.github.io/joplin-terminal/</link>
  <pubDate>Wed, 31 Aug 2022 19:06:00 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/joplin-terminal/</guid>
  <description><![CDATA[如何在terminal中使用Joplin并像vim一样移动? 安装 mac 安装方法 1 2 3 4 5 6 brew install node NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin [zp@localhost bin]$ sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin ln: /usr/bin/joplin: Read-only file system sudo ln -s ~/.joplin-bin/bin/joplin /usr/local/bin/joplin ubuntu 安装方法 1 2 3 #Important: First, install Node 12+. NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin 我安装的时候nodejs版本是:v10.19.0,建议按官方要求使用Node 12+
进入
1 joplin 配置文件同步 同步方式建议用文件同步，尝试了用坚果云的WebDav同步效果不是很好，手机可以采用WebDav,电脑还是用文件同步更稳定些。
1 2 :config sync.]]></description>
</item>
<item>
  <title>在线工具</title>
  <link>https://cfanzp008.github.io/online-tools/</link>
  <pubDate>Wed, 24 Aug 2022 09:00:12 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/online-tools/</guid>
  <description><![CDATA[在线工具 在线测速:https://www.ping.cn MD5加密:https://md5jiami.bmcx.com/ JSON在线格式化: https://www.bt.cn/tools/json.html https://www.bejson.com ]]></description>
</item>
<item>
  <title>vscode的使用</title>
  <link>https://cfanzp008.github.io/edit-vscode/</link>
  <pubDate>Tue, 23 Aug 2022 08:58:53 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/edit-vscode/</guid>
  <description><![CDATA[vscode使用笔记 FAQ vscode必备插件有哪些？ vim Lua Vscode-lua Go Rainbow Brackets Thunder Client 如何给vscode添加ruler? 按语言添加:
1 2 3 &#34;[lua]&#34;:{ &#34;editor.rulers&#34;:[80], } vscode配置vim插件jk退出插入模式 https://www.cnblogs.com/YunyaSir/p/15522565.html 1 2 3 4 5 6 7 8 9 10 11 &#34;vim.insertModeKeyBindings&#34;: [ { &#34;before&#34;: [ &#34;j&#34;, &#34;k&#34; ], &#34;after&#34;: [ &#34;&lt;Esc&gt;&#34; ] }, ], vscode 在mac上无法连续输入k如何解决？ 1 2 3 4 5 defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # For VS Code defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false # For VS Code Insider defaults write com.]]></description>
</item>
<item>
  <title>git常见问题</title>
  <link>https://cfanzp008.github.io/git-faq/</link>
  <pubDate>Tue, 23 Aug 2022 08:44:11 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/git-faq/</guid>
  <description><![CDATA[git常见问题 FAQ git如何清除提交记录？ 项目如果走过了一个很长的开发周期以后，提交历史会很长，如果提交记录不重要，这种情况下可以删除掉历时记录。
创建一个干净的分支 使用--orphan参数 添加当前的所有文件 提交注释 删除原来的分支master 把当前分支重命名为master 把当前分支强行推送到远端 1 2 3 4 5 6 git checkout --orphan test git add . git commit -m &#34;init&#34; git branch -D master git branch -m master git push -f origin master git如何查看空间占用? 1 2 git count-objects -v # 查看 git 相关文件占用的空间 du -sh .git # 查看 .git 文件夹占用磁盘空间 如何查找git提交中涉及的大文件? 1 git rev-list --objects --all | grep &#34;$(git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -5 | awk &#39;{print$1}&#39;)&#34; 如何删除大文件?]]></description>
</item>
<item>
  <title>解决gitlab占用内存太大的问题</title>
  <link>https://cfanzp008.github.io/gitlab-config/</link>
  <pubDate>Mon, 22 Aug 2022 14:06:24 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/gitlab-config/</guid>
  <description><![CDATA[解决gitlab占用内存太大的问题 最近gitlab服务器出现了占用内存太大的问题。虚拟机里的linux系统内存&gt;4G都被几乎用完了。
网上查询了相关资料，解决方法主要是修改一下配置。或者更换git服务器工具，比如更换为gogs或者gitea等。 因为时间关系暂且改一下配置解决一下问题:
配置文件路径为: 1 /etc/gitlab/gitlab.rb 修改相关参数 1 2 3 4 5 6 postgresql[&#39;shared_buffers&#39;] = &#34;64MB&#34; postgresql[&#39;max_worker_processes&#39;] = 2 sidekiq[&#39;max-concurrency&#39;]=5 #禁用prometheus，可以进一步减少内存占用 prometheus_monitoring[&#39;enable&#39;] = false sidekiq[&#39;concurrency&#39;] = 25 重启服务 1 2 gitlab-ctl reconfigure gitlab-ctl restart 精简gitlab服务:https://zhuanlan.zhihu.com/p/389717047 参考资料 https://zhuanlan.zhihu.com/p/348813603 https://my.oschina.net/sunhualong/blog/4275867 ]]></description>
</item>
</channel>
</rss>
