Skip to content

Linux

[Solved] Uvicorn Closed In Container - HTTP connection lost. Shutting down, exit 0

Problem Description

Today, while I was using podman to create a container (from a FastAPI image) to run my FastAPI service, I encountered an issue where the container would automatically stop if the user logged out or if there were no HTTP POST requests sent to the API for a while. After some time, the service would stop.

Read More »[Solved] Uvicorn Closed In Container - HTTP connection lost. Shutting down, exit 0

[Linux] Use the batcat Command as a Replacement for cat, Highlighting Code or Configurations

batcat or simply bat, is a replacement tool for the cat command. It retains the functionality of cat for displaying files, while also highlighting keywords in code or configuration files, making it more convenient for developers to browse daily tasks or code files (thus, it's definitely a productivity tool!).

Read More »[Linux] Use the batcat Command as a Replacement for cat, Highlighting Code or Configurations

[Linux] TL;DR: Replace man with tldr to Read Command Line Manuals

man is the traditional documentation tool for UNIX/Linux systems, but the detailed nature of its output can be overwhelming for users who just want a quick reference on how to use a command. Therefore, a simplified version called tldr was created (short for "too long, didn't read"). It focuses on providing concise, easy-to-understand command documentation.

Read More »[Linux] TL;DR: Replace man with tldr to Read Command Line Manuals

[Linux] bpytop: A More Modern and Visually Appealing Resource Monitoring Tool Compared to htop

I've been looking for a more visually appealing alternative to htop for a long time. A few years ago, during a gathering with friends, I happened to pull out my laptop to fix a docker segmentation fault issue in the lab. One of my friends saw my htop and remarked, "So primitive~ Engineers are so boring~" I still hold a grudge for that (just kidding, of course).

Read More »[Linux] bpytop: A More Modern and Visually Appealing Resource Monitoring Tool Compared to htop
Exit mobile version