Verne in GitHub

每天学习一个命令:pidstat 查看进程消耗资源

pidstat 是 sysstat 工具包含的一个命令,主要用于监控 Linux Kernel 管理的进程资源占用情况,包括 CPU,IO,内存,线程等等。 The pidstat command is used for monitoring individual tasks currently being managed by the Linux kernel. pidstat 首次运行会显示系统自开机起各项统计,之后运行将显示从上一次运行到该次运行的统计信息。 installation apt-get install sysstat Read more ...

2019-05-14 linux , commmand , network , pidstat , iotop , ram , cpu

每天学习一个命令:pidof 查找进程 PID

pidof finds the process id’s(pids) of the names programs. Usage pidof [name] Example find chrome pid pidof chrome pidof -s chrome Options: -s instructs the program to only return one pid. Extension pgrep Read more ...

2019-05-14 pid , netstat , command , linux

Cross-platform Softwares I am using

This post will only list cross-platform softwares I used now. Each software has its own behaviors, and binded with its own shortcut. It takes time to be familiar with it. So I decided to use only cross-platform softwares in daily life in case I have to swith my main System. But i Read more ...

2019-05-10 applications , apps

使用 Stylus 扩展自定义页面样式

有油猴脚本可以用来修改网页页面,那么相应的也能通过挂载自己的定义的 CSS 来实现对页面的修改。 如果有了这样的概念,那么可以在页面做到,完全修改页面显示的样式,增加背景,移除广告等等事情。 installation 安装扩展 https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=en CSS 样式 从该站点寻找可用的样式 https://userstyles.org/ InoReader https:/ Read more ...

2019-05-08 stylus , css , chrome , firefox , extension

Ruby 国内镜像

Update ruby gem update --system gem -v gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/ gem sources -l 确保只有 gems.ruby-china.com Bundler bundle config mirror.https://rubygems.org https://gems.ruby-china.com bundle install reference https://g Read more ...

2019-05-02 ruby , source , bundler , jekyll

威联通折腾篇十五:rtorrent-Pro 使用

QNAP CLUB 中淘到很多不错的应用,rtorrent-Pro 就是一款,现在作者升级了 rtorrent-pro 付费 15 欧元。这又是一款 BT 下载工具,界面非常美观。 rtorrent development for QNAP was started in 2008. Today after 10yrs from its 1st build, we provide you best Torrent app ever. rtorrent is an high performance and extra featured bittorr Read more ...

2019-05-02 qnap , nas , bt , pt

威联通折腾篇十三:替换默认 shell 为 zsh

默认 SSH 登录到 QNAP 的 login shell 可以通过 echo $SHELL 来查看到是 /bin/sh 默认的这个 bash 是 QNAP 自带的 /bin/sh --version GNU bash, version 3.2.57(1)-release (x86_64-QNAP-linux-gnu) Copyright (C) 2007 Free Software Foundation, Inc. 也是一个相对比较简陋的版本,自动补全很难用,也没有语法高亮。所以想能不能把 QNAP 自带的 shell 换成日常使用的 ZS Read more ...


Cinnamon alt+f2 命令

很早就开始用 Cinnamon 作为 Linux 的主要桌面环境,还折腾过 Cinnamon 的主题,但是其实一直没怎么关注 Alt + F2 的功能,唯一知道的命令就是 r 用来重启 Cinnamon。所以这里就总结总结 Alt+F2 可以用的命令。 内置命令 -‘r’ - restart Cinnamon ‘rt’ - reload the current Cinnamon theme ‘lg’ - start the Looking Glass debugger (which itself seems not to be docume Read more ...

2019-04-29 cinnamon , commands

drools 编程例子

关于 Drools 更多的介绍 可以参考之前的文章。 这篇文章主要讲解如何在项目中执行 DRL 文件并取得结果。 ERROR 如果遇到这样的错误,大部分情况下是 drl 规则文件所在的文件夹,没有被项目识别为 resources 文件夹,在 IntelliJ IDE 中可以使用设置为资源文件夹来解决。 Exception in thread "main" java.lang.RuntimeException: Unable to get LastModified for ClasspathResource at org.drools.cor Read more ...

2019-04-26 drools , drl , jboss , java , rule-engine

The Silver Searcher: ag 使用

Once I wrote a post about ack-grep, and Franklin Yu left a comment about the silver searcher. He said this tool is much faster than the ack-grep. So this post is about The Silver Searcher. As always, I will introduce what is the Silver Searcher, how to install and use it. Follow Read more ...

2019-04-25 ack-grep , search , grep , ag

最近文章

  • tuicr:基于 Rust 开发的开源终端代码审查工具,像审 PR 一样审查 AI 写的代码 自从日常开发大量交给 [[Claude Code]] 和 [[Codex]] 之后,我发现自己的工作重心悄悄发生了变化:写代码的时间越来越少,看代码的时间越来越多。AI 一口气改了十几个文件,我得一个个检查,发现问题之后再用自然语言告诉它「auth.rs 第 42 行那个魔法数字改成常量」「第 50 到 55 行那段可以重构一下」。这个过程其实挺别扭的,git diff 只能看不能评论,打开 IDE 又要切换上下文,开个 PR 让自己审查更是多此一举。最近发现了一个专门解决这个问题的工具 [[tuicr]],它把 GitHub PR 页面那套审查体验搬进了终端,审完之后一键把评论复制给 AI,上手试了一下感觉很顺手,所以来介绍一下。
  • Reminders MenuBar 搭配 NextCloud CalDAV:把菜单栏待办同步到所有设备 最近想找一个常驻菜单栏的待办工具,要求很简单:点一下菜单栏就能看到今天要做的事,按个快捷键就能记一条,而且最好能同步到所有设备上。我在 2024 年写过一篇 推荐一款 macOS 上的极简菜单栏提醒,介绍的就是 [[Reminders MenuBar]]。它好用归好用,但数据就是 Apple 提醒事项,背后绑的是 [[iCloud]]:只要手边有一台 Android 手机或者 Windows 电脑,这条同步链路就断了;哪怕都是 Mac,只要某一台登录的不是同一个 iCloud 账号,待办也同步不过去。所以这次我换了个思路,把自己搭建的 [[NextCloud]] 当作 CalDAV 服务器,挂到 macOS 的提醒事项上。Reminders MenuBar 本身不用做任何改动,同步这件事交给 CalDAV,之后在其他平台上,只要找一个能读写 CalDAV 的客户端就能接进来。
  • Nowledge Mem 使用半年体验:让所有 AI Agent 共享同一份记忆 今年 2 月份我把 [[Nowledge Mem]] 装到 MacBook 上,想解决的是一个很常见的问题:我希望在 [[Perplexity]] 网页上查过的资料,直接在 Claude Code 中可以记住。但没想到大半年过去,它已经变成了我每天都在用的软件,而且是那种「不在后台跑着就会觉得别扭」的存在。我在 Claude Code、[[Codex]]、[[OpenClaw]] 里开的每一个会话,开头都会先从它这里拿一份简报;网页上和 AI 聊过的东西会自动同步进去;我做过的决定、踩过的坑、服务器的配置,都沉淀成一条条可以被任何 Agent 检索的记忆。说它是我所有 Agent 的记忆和大脑,一点都不夸张。
  • Semaphore UI:开源自托管的 Ansible 与 Terraform 可视化管理面板 我手上的 VPS 和 Homelab 日常维护基本交给 [[Ansible]]:初始化系统、加固 SSH、轮换密钥、装 Docker,一条 ansible-playbook 跑下去几十台机器就同步好了。用久了有两个问题越来越明显。第一,执行记录只存在于终端滚动缓冲区里,过两周再想知道某台机器上次是什么时候跑过哪个 playbook、结果如何,基本无从查起。第二,所有操作都绑在我自己的 MacBook 上,私钥、inventory、vault 密码都在本地,换台电脑或者想让别人帮忙执行一下就很麻烦。最近在找解决方案的时候,重新注意到了 [[Semaphore UI]] 这个项目,它正好就是为这类场景设计的。
  • Aside AI 浏览器介绍:既能自己干活,也能接入 Agent 前两天整理了一篇 AI 浏览器自动化方案怎么选,把 Playwright、MCP、Agent 专用浏览器、WebMCP 这些路线梳理了一遍。在那篇文章里我提到,「内置 Agent 的 AI 浏览器」这一类里我最看好的是 Aside,原因是它的密码管理器设计得很用心,但篇幅有限没有展开。今天就单独写一篇,聊聊这个浏览器到底能做什么、和 [[Comet]]、[[Dia Browser]] 有什么不一样,以及我现在是怎么用它的。如果你看完想试试,可以用我的邀请链接 注册,注册后会额外获得 100 Credits。