记录一下在 Linux 下测试硬盘读写速度的命令和方法。
dd
使用 dd 测试写速度,千万有注意 of 后接的文件必须是一个不存在的文件,否则可能造成数据丢失!
sync; dd if=/dev/zero of=/tmp/tempfile bs=1M count=1024; sync
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 2.55331 s, 421 MB/s
同样的道理,如果要测试一个外部存储,需要知道挂载点,然后用 d
Read more ...
陆陆续续用过不少同步工具,资料备份,各个设备间同步文件,从商业化的工具到命令行工具,但总还是一直在寻找一款足于满足我所有需求的工具。这里就整理一下,顺便整理一下我自己的思路。不久前就一直在思考一个问题,数字文件的生命有多长,以前看到过一句话,几十年前父母写下的日记如今依然能从旧书柜中翻出,数十年前的胶卷照片依然还很清晰,但往往几年前的网络文章,或者数字照片可能如今随着网络服务的关闭,物理硬盘的损坏而无法恢复。有人尝试使用多地备份,有人尝试云服务备份,却都无法从根本上解决这个问题,当然现在的我依然没有办法完全的解决这个问题。
目前我从两个方面来规避这个问
Read more ...
I found someone submit a pull-request to redis, which modify the init.d script. The modification make me curious about the init script. So this is the research result.
LSB stand for Linux Standard Base.
LSB-compliant init scripts need to:
provide, at least, the following ac
Read more ...
最近整理文档,想起来自己的腾讯云,和 Google 云,好几十 G 的对象存储都空着,虽然腾讯云填了一部分同步的书籍,但是还是没有好好利用起来,然后就突然想起来之前看到过有人自己写了一份网盘同步程序,将对象存储作为同步工具来使用,这么一想确实可以尝试一下,毕竟现在 Dropbox 容量渐渐不够用了,如果能作为一份扩充也倒是不错的选择。所以这里就整理一下目前可用的一些方案,然后再做一下决择。
Cloudreve
这是一款 PHP 所写的云盘系统,支持多家对象存储,设计采用 Material Design ,看起来也不错。
https://gith
Read more ...
This post is under the environment of Ubuntu 18.04, this instruction will guide how to install shadowsocks libev both server side and client settings manually. And show the step to configure the simple-obfs.
The source code is in following two repositories:
https://github.co
Read more ...
When you encouter the high cpu load caused by java application, you may follow these steps to troubleshooting.
identify the PID
identify the PID, use top or htop then press P, sorted by CPU
identify the thread
identify the thread using top -n 1 -H -p PID, this command will giv
Read more ...
eu 顶级域名的限制和问题排查
前两天有客户在我的 EV Hosting 购买了一个 .eu 的域名,但是在管理 .eu 域名的过程中。我发现 .eu 的域名在管理上有很多特殊的限制和限制。
搭建 Claude Code 中转服务
Claude Relay Service 是一个开源服务的 Claude Code 镜像服务,主要用于“中转”(relay)和管理多个 Claude Code 账号,使开发团队或个人可以最大化每个账号的使用配额,通过统一入口自动进行负载均衡和账号切换,从而有效规避单一账号因速率限制或额度问题导致的服务中断。
利用 Dev3000 优化 Claude Code 代码调试流程
不知道大家在使用 Claude Code 辅助编写代码的过程中,有没有遇到过这样的烦恼,当 Claude Code 生成的代码不完美,发生错误时,我们需要将错误日志文件,这也前端页面截图再反馈给 Claude Code,让其修正错误,或者修复画面的错误。那有没有方法可以让 Claude Code 自己发现错误,并修正呢?那今天要介绍的这一个开源的工具 Dev3000 就是一个辅助 AI 开发的调试工具。
AI 浏览器 Comet 初体验
前两天刚介绍完 Dia 浏览器,就听说了 Dia 浏览器的母公司 The Browser Company 被 Atlanssian 以 6.1 亿美元现金收购,而另外一边,Google 的反垄断案也告一段落,不需要拆分 Chrome 和 Android,这边,Perplexity 就推出了以 Perplexity AI 为核心的网页浏览器 Comet。