这里把Python concurrency的内容单独拿出来整理一下, 主要是multithreading, multiprocessing and asyncio. 根据需要选择适合场景的concurrency pattern, typs of concurr ...
Docker Entrypoint Script
I have a post Shell Arguments Format talked about exec "$@" (当时并没有在意为什么在docker中这么使用), the script docker-entrypoint.sh is ...
nologin User
Previously I had a post talked about the login and non-login shell, please note that is a different concept with nologin user here ...
Useful Chrome Extensions
Some useful Chrome extensions: OneTab: 把多个tabs整理成列表在一个网页中,可分享。 Grammarly for Chrome: 英语语法检查。 SimpleUndoClose: 重新打开关闭的网页。 Screen S ...
Docker Smart Use
这里主要记录一下docker container 一些有意思的用法。 Version Release 可以将源码封装到 docker(tag) 或者 helm chart 中,通过check-in pre/post-CI/CD pipeline 发布,然后在 ...
Socket Quick Start
//TODO: python socket module demos: https://pymotw.com/2/socket/uds.html 最近在做Proxy的工作,重新回顾和学习了很多相关的东西,这里把Socket的分类和概念梳理一下。 Socke ...
WebSocket Quick Start
Demo Git repo, create basic and secure websocket server and client via Python websockets module: https://github.com/chengdol/webso ...
Python Co-routine
Seeing the demo in websocket, Python websockets module is taking advantage of asyncio which provides an elegant coroutine-based AP ...
Car Registration Renewal
前几天收到了vehicle registration renewal的通知,这次需要做smog check (对于比较老的非电动 车辆,一般2年一次), 在google map上选择了一家评分较好又比较近的smog check station, 要知道 美国这 ...
Apache Server
因为需要验证Envoy CONNECT feature的缘故,我打算自己设置一个server with SSL/TLS测试: client <--------------> envoy proxy <--------------> Ap ...