You want to downgrade a package imported by Homebrew from version B to version A.
Packages correspond to installation script which are hosted (and versioned) on the Homebrew's Github repository.
The list of formulas is hosted at
You want to downgrade a package imported by Homebrew from version B to version A.
Packages correspond to installation script which are hosted (and versioned) on the Homebrew's Github repository.
The list of formulas is hosted at
You want to register an extra certificate authority to be recognized by a http.Client
instance when issuing requests.
I personally encountered this case while testing a HTTPS service with a key pair issued by a Kubernetes cluster.
The Let's Encrypt website covers this topic in depth. Using the right config values is key. openssl
simplifies the cert creation.
echo -n "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth" > /tmp/ssl-config
openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -keyout /etc/ssl/server.key -out /etc/ssl/server.crt -subj '/CN=localhost' -extensions EXT -config /tmp/ssl-config
Note: We create a temporary config file to use as the -conf
parameter instead of using process substitution (-conf <(...)
) because of better compatibility.
I was getting intransparent errors running minikube start
from golang like the following:
E0207 12:05:03.470516 22708 start.go:376] Error starting cluster: kubeadm init: sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI
This can apparently be fixed by stopping and deleting the Minikube instance and removing its cache before running the golang app:
minikube stop
minikube delete
Nginx doesn't allow serving static content when responding to POST requests.
The solution first creates an HTTP 405 error for all requests (including POST requests) to a given location and then simply returns the result of a proxy pass GET request to the static resource instead of the error page.