在 macOS 上部署 DeepSeek-R1
2025-01-28
DeepSeek 接连放大招,狠狠挤了一把 AI 泡沫,硅谷巨头纷纷股价暴跌。 在使用网页版的同时,作为小白也想体验一下本地部署的乐趣,遗憾的是没有高配电脑,只好在老掉牙的 MBP 上试试了,权当图一乐。 …
为邮件客户端添加 OAuth 2.0 代理
2024-10-15
强制使用 OAuth 2.0 认证的邮件提供商越来越多,而一些老客户端并不支持,比如 macOS Catalina 自带的邮件。 于是尝试换 Thunderbird,然而用起来有些……粗犷。 找到一个开源程序 email-oauth2-proxy,它可以建立一个代理,让不支持 OAuth 2.0 的客户端使用 IMAP/POP/SMTP 协议继续访问邮箱,但它的文档写得实在不像给人类看的。 …
下载官方旧版本 Chrome 并禁止更新
2024-07-30
已经忍 Chrome 很久了,但是如果换其他浏览器,想想那一堆扩展脚本密码书签就头疼。整天提醒更新,不知道更新了个什么玩意,反而把原来的功能改成依托答辩。 万万没想到,在三哥的英明领导下,狗鸽又拉了几坨大的: …
grep 使用中的一些坑
2024-01-02
换行符和回车符 首先我们知道,类 Unix 系统都习惯使用换行符 \n(LF,Line Feed)换行,Mac OS 9 及之前则使用回车符 \r(CR,Carriage Return),Windows 则使用 \r\n(CR+LF)换行。 …
视频相关的命令和脚本
2023-11-22
FFmpeg 实用命令 剪切视频而不重新转码1 $ ffmpeg -ss 00:00:30.0 -to 00:00:40.0 -i input.mp4 -c copy output.mp4 -ss 和 -to 分别指定起始时间。 这种方式输出的视频有一定问题,最好还是转码(不要用 -c copy)。 codec not currently supported in container2 一些视频流和音频流无法放到同一容器中,例如 WMA 音频不能与 H.264 视频兼容,解决方式是将音频也转码: …
在 Linux 上使用 Exim4 发送邮件
2023-05-12
带有 GUI 的 Linux 可以直接使用集成的邮件客户端,比如 Thunderbird。但在服务器上,发送邮件需要一些配置,踩一些坑。 邮件系统由三个部分组成: Mail User Agent (MUA),发送和接收邮件。 Mail Transfer Agent (MTA),在计算机之间传输邮件。 Mail Delivery Agent (MDA),将收到的邮件投递到用户收件箱。 MUA 我使用的是 GNU Mailutils,MTA/MDA 使用的是 Exim4。 …
Homebrew 使用中的一些问题
2023-03-31
listxattr for destination failed: 2 遇到这个问题,首先要确定 CommandLineTools 是否安装了正确版本,查看 brew doctor 的提示。 如果安装正确,有可能是使用 OCLP 安装 Sequoia 导致,传递给 /usr/local/Homebrew/Library/Homebrew/cask/utils/copy-xattrs.swift 的参数不正确: /Library/Developer/CommandLineTools/usr/bin/swift-frontend, -frontend, -interpret, /usr/local/Homebrew/Library/Homebrew/cask/utils/copy-xattrs.swift, -target, x86_64-apple-macosx15, -enable-objc-interop, -stack-check, -sdk, /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk, -color-diagnostics, -new-driver-path, /Library/Developer/CommandLineTools/usr/bin/swift-driver, -empty-abi-descriptor, -resource-dir, /Library/Developer/CommandLineTools/usr/lib/swift, -module-name, main, -disable-clang-spi, -target-sdk-version, 15.5, -target-sdk-name, macosx15.5, -external-plugin-path, /Library/Developer/Developer/usr/lib/swift/host/plugins#/Library/Developer/Developer/usr/bin/swift-plugin-server, -external-plugin-path, /Library/Developer/Developer/usr/local/lib/swift/host/plugins#/Library/Developer/Developer/usr/bin/swift-plugin-server, -in-process-plugin-server-path, /Library/Developer/CommandLineTools/usr/lib/swift/host/libSwiftInProcPluginServer.dylib, -plugin-path, /Library/Developer/CommandLineTools/usr/lib/swift/host/plugins, -plugin-path, /Library/Developer/CommandLineTools/usr/local/lib/swift/host/plugins, --, /usr/local/Caskroom/visual-studio-code/1.104.1/Visual Studio Code.app, /Applications/Visual Studio Code.app copy-xattrs.swift 期望两个参数,即源目录和目标目录,但最终传递的打印出来很长(参数可能与系统或 CLT 版本有关)。 …
在 Android 上部署 Linux
2023-03-27
在 Android 上部署 Linux……好吧,我知道 Android 本身就是个 Linux。不要在意这些细节。 最近把旧手机当时钟用,发现它还有 TF 卡槽,想起何不在上面跑个 Linux,化身低功耗服务器呢,再搭个 Syncthing 私人云盘,岂不美哉(摊手)? …