Code
Annoying Snap: How to Deal with It and Move On
Ubuntu 22.04
desktop version comes pre-installed with Snap. However, I find it inconvenient to use and the Snap directory in the Home folder is quite distracting. So, I tried uninstalling it but encountered several issues.
Code
MySQL Binary Logs (binlog) Management
The MySQL binary log contains “events” that describe database changes such as table creation operations or changes to table data. It is the oplog of mysql, and we can subscribe the log to follow all the actions.
Code
Nginx: worker_connections are not enough, reusing connections
We meet an error log on nginx: worker_connections are not enough, reusing connections
. To resolve this issue, here is my working solution according to the references:
Code
PNPOLY: How do I find if a point lies within a polygon?
This is a python version to translate W. Randolph Franklin's work. And recorded for further usage.
Code
Python Mirror Configuration
Here are some scripts to initialize your python environment to mirror your repo.
Code
Ubuntu 18.04 LTS 及以上如何配置 NTP
Ubuntu 自 18.04 开始使用 timesyncd 作为默认的 ntp client。当然如果有必要也可以安装较多包来部署一个自己的 ntp server。
本文只介绍如何配置 timesyncd。
Code
SSH: no matching host key type found. Their offer: ssh-rsa
After a recent macOS upgrade, some ssh access was strangely blocked. I turned on verbose logs to check the problem.