Termux Samba 服务一个玄学登录问题

最近尝试给一台 Pixel 4a 备用机配 Samba 服务,目标很简单:让手机作为文件共享服务端,能在 WiFi 和热点网络上运行。本来安装配置什么都顺利,但客户端就是连不上………

GO 低内存极速 I/O 编程:无缓冲编码文件,同时计算哈希值一并上传

Golang 自带了内容相当丰富的 io 库,对 io 编程友好。最近碰到个需要发送文件的 REST api,文件内容需 base64 编码为文本,同时还要文件的 md5sum,再附加一系列其他信息,最后用 json 文本发送。最无脑的做法是将整个文件读入缓冲区,依次计算 md5sum,再把文件编码为 base64 文本,最后拼接所需的 json 文本完成发送。当然这样文件一大铁定崩内存💩,显然有更合适的做法………

Patch qBittorrent: Listening on port while using proxy

Recently, I came across a situation where I needed to do some seeding, but the network I was on required a proxy to gain access to the Internet. Naively, I set up the proxy settings in qbittorrent, quickly found out that it did not work at all. Now we need to patch...…