Recently the programs I write are mainly Python, JavaScript and TypeScript. After adopting Python3 and the new Tornado, asyncio seems forced upon us. In this article I'll share my views on the async/await keywords.
On Using IPython in asyncio Mode
Tornado 6.0 has fully switched to asyncio, but my IPython embed debugging didn't go smoothly. This blog mainly introduces how to keep using IPython in the new Tornado.
OpenSSH Series (Extra 1) - Extended Use of ProxyCommand and Its Implementation Code
While researching how ordinary users can access ssh services in a Kubernetes cluster, one solution was establishing a proxy server. I might as well read the related OpenSSH implementation code too.
Some Issues Using eslint Together with TypeScript
Recently I've been adding lint to Vsnips — the code I wrote before was really too free-spirited; for future multi-person collaboration it's necessary to keep a consistent style. After consulting frontend colleagues and learning tslint has stopped being supported, I decided to switch tslint to eslint.
How a Kubernetes-based PaaS Platform Provides ssh Services (Research)
I've been researching how to provide container shell login for users. This blog organizes my thoughts, exploring two approaches: one accessing pods in the Kubernetes cluster via a proxy; the other based on webshell while also allowing users to log in locally. It analyzes both approaches' security and functional usage.
Reading the Kubernetes CronJob Source Code
The last blog introduced CronJob usage in Kubernetes and included suspend — but using this parameter well isn't so easy. This blog introduces the problems suspend brings, and gives solutions together with the source code.
Some Usage of Cron Jobs in Kubernetes
When using Kubernetes, one requirement is using its scheduled tasks. For online projects, it's still necessary to test well before putting them into use. This post introduces my usage, and after hitting problems related to startDeadlineSeconds, I tried reading the source code to understand its execution strategy.
Research on Some Windows Auto-Unlock Approaches
Why does the title say 'research'? Because auto-unlock is really too hard, ( •̥́ ˍ •̀ू ). Had I not spent days looking things up, I really thought I could write it myself. This post shares the approaches I imagined and the research results, so anyone interested later can see whether these pitfalls can be avoided.
Windows Dynamic Lock
I remember when I first started at Tencent I was scolded many times by my mentor about locking the screen; later I formed the habit of locking whenever I left the computer. Colleagues around me leave without locking — thinking about the security risk, it's quite big, so I wondered whether the phone-computer connection could lock or unlock the screen.
Docker Series 10: Trick, Reloading the Host's Nginx
Following the last episode's dnd-style operations, this episode introduces how to reload the host's Nginx from within Docker.