Operations
Advanced curl Usage
· β˜• 1 min read
1. RESTful Requests 1 curl -X POST --data 'keyword=value' http://domain.com/mypath/ After -X you can also use DELETE, PUT, and so on. 2. Adding Headers 1 curl -H 'Content-Type:application/json' -H 'Authorization: bearer MyToken' http://domain.com/mypath/ 3. Basic Authentication 1 curl -u username:password http://domain.com/mypath/ 4. Download and Execute 1 curl -sSL http://domain.com/my.sh | bash 5.

Surface Pen Not Responding
· β˜• 1 min read
Recently, while using my Surface, I dug out the stylus and found it was out of battery. I swapped in a new AAAA battery, and then discovered the pen tip had stopped responding to touch. Many documents online recommend uninstalling Marvell AVASTAR Bluetooth and rebooting for this to take effect. But that method did not work for me; uninstalling Precise Touch Device is what actually worked.

Configuring a Proxy for Kubernetes
· β˜• 1 min read
Usually, running a command of the form export http_proxy/https_proxy on the host is enough to set a Proxy. However, settings on the host do not take effect inside containers. Below are several configuration approaches. 1. Configure Docker’s proxy - Node level Configure this on the node that needs the Proxy.

Comparing Helm 2 and Helm 3
· β˜• 6 min read
Helm 3 is finally released. We can say goodbye to Tiller, but Helm 3’s changes do not stop there. Let’s continue exploring the other changes. 1. Saying Goodbye to Tiller Removing Tiller in Helm 3 was a good decision. But to understand why it is good, we first need to understand the background that produced Tiller.

Helm Mirror Sources in China
· β˜• 1 min read
The official Helm repo https://charts.helm.sh/stable is unreachable from some machines in China, so you need to configure a mirror. 1. Official Repo 1 helm repo add stable https://charts.helm.sh/stable 2. Git Pages Mirror 1 helm repo add stable https://burdenbear.github.io/kube-charts-mirror/ See kube-charts-mirror for a reference on building a self-hosted, self-controlled mirror.