Docker Learning Notes
命令#显示所有容器,包括正在运行的和已经停止(Exited)的docker ps -a#只显示容器的 ID,通常与脚本配合使用。你想要批量删除所有容器时,docker rm $(docker ps -aq) 简直帅炸了!docker ps -q (Quiet)#只显示最近创建的那个容器(不管它是否在运行)。docker ps -l (Latest)#过滤状态,只看已经停掉的docker ps --filter "status=exited"#自定义输出(只看我想看的那三项)docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}"
Linux Learning Note
文件描述符(File Descriptor, FD)是个啥? 第一层拆解:FD 到底是个啥?(从小白视角)在 Linux/Unix 的世界里,有一句至理名言:“万物皆文件” (Everything is a file)。 不管是你在硬盘里存的一张照片、你敲击键盘的输入、显示器的输出,还是 Nginx 监听的网络 Socket(套接字),在操作系统的眼里,它们统统都是“文件”。 💡 天才的比喻时间: 想象你去一家极高档的米其林餐厅吃饭,你要寄存你的书包(这就相当于你想打开一个文件)。 你不能直接跑到餐厅后厨的储物柜(硬盘/物理硬件)里去乱翻,这太不安全了!你只能把包交给前台的服务员(操作系统内核 Kernel)。 服务员帮你把包放好后,会递给你一个 小塑料手牌,上面写着一个数字,比如“3”。 这个写着数字的小手牌,就是 文件描述符(File...
Nginx Learning Notes
Nginx中多个Worker进程监听同一个端口为什么不会冲突? 魔法一:传统模式下的“影分身之术” (Fork 与 FD 继承)在早期的 Linux 内核(或没有开启特定优化的配置)中,Nginx 其实并没有让多个 Worker 去分别绑定端口。 Master 进程开门营业:Nginx 刚启动时,是老大(Master 进程)出面,调用 socket() 创建好监听的 Socket,然后执行 bind() 和 listen(),稳稳地占住了 80 或 443 端口。 子进程继承家产:接着,Master 进程会调用 fork() 孵化出多个 Worker 进程。重点来了!在 Linux 操作系统的机制里,子进程会无条件继承父进程打开的文件描述符(File Descriptor, FD)。 💡 天才的比喻时间: 这就好比 Master...
Sufjan Stevens: Carrie & Lowell (10th Anniversary Edition) Album Review
And yet: What if we belong to other people as much or more as we belong to ourselves? What if our real secrets are not a palmful of baubles we keep inside some protected box, but the stories the loved ones who followed us with their eyes, who lavished their wondering love on us, told themselves? In this view, we don’t take secrets with us when we die; we scatter them upon the earth in our passing like a flower releasing pollen
Windows Terminal 与 WSL 使用技巧
Windows Terminal 与 WSL 使用技巧
Windows 资源管理器命令解析冲突问题技术复盘总结
关于Windows 资源管理器命令解析冲突问题的完整技术复盘总结。这个案例非常经典,完美展示了操作系统在解析指令时的优先级机制。
数字越狱突击课
如何科学上网稳稳用上Gemini
Z.A.T.O. Visual Novel Dialogue Extractor
这是一个专为视觉小说《Z.A.T.O. // I Love the World and Everything in It》编写的 Python 辅助脚本。它可以利用 Ren'Py 引擎的剪贴板辅助功能,自动将游戏台词提取并保存为干净的 Markdown (`.md`) 格式,方便翻译、归档或语言学习。
Oral English Accumulation
Oral English Accumulation What’s the catch? Nothing comes without a price, you know. So, you really think you can give me everything I ask for then? Just like that? With no strings attached? Miave gasps—genuinely caught off guard by your bold kiss. For a single, fleeting moment, her control wavers… then it ignites. 2025.12.24How will you introduce yourself without any superficial markers?...
独自在海边的夜晚
和你们不夜骑的人说不清楚...

