I hereby claim:
- I am iamcryptoki on github.
- I am cryptoki (https://keybase.io/cryptoki) on keybase.
- I have a public key ASBIMoe475AgBX5AuLGPQPYE9NyyYKTQY6H8OlbXi4FlBgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Plugin Name: Kubernetes Liveness Probe Exception | |
| */ | |
| add_filter('redirect_canonical', function($redirect_url, $requested_url) { | |
| $K8S_POD_IP = getenv('K8S_POD_IP'); | |
| $LIVENESS_URL = "http://" . $K8S_POD_IP . ":8080/index.php"; | |
| if ($requested_url == $LIVENESS_URL) { |
| $ kubectl label node <NODE_NAME> node-role.kubernetes.io/worker=worker |
| $ kubectl get secret <SECRET_NAME> --namespace=<NAMESPACE> --export -o yaml | \ | |
| kubectl apply --namespace=<NEW_NAMESPACE> -f - |
| $ docker rmi $(docker images -q) -f |
| sudo git clone https://github.com/ahmetb/kubectx /opt/kubectx | |
| sudo ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx | |
| sudo ln -s /opt/kubectx/kubens /usr/local/bin/kubens | |
| echo "source /opt/kubectx/completion/kubectx.bash" >> ~/.bashrc | |
| echo "source /opt/kubectx/completion/kubens.bash" >> ~/.bashrc |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm |
This guide describes how to install Fedora 30/31 next to Windows 10 on a Dell XPS 13 9380 series in dual boot.
Authored: September 2019
| ------------------------------------------------------------------------------------- | |
| | Description | Docker field name | Kubernetes field name | | |
| ------------------------------------------------------------------------------------- | |
| | The command run by the container | Entrypoint | command | | |
| | The arguments passed to the command | Cmd | args | | |
| ------------------------------------------------------------------------------------- |