To list available contexts: kubectl config get-contexts To show the current context: kubectl config current-context To switch to a new…
kubectl exec -it <podname> -- sh To get a list of running pods in the current namespace: kubectl get pods…
# Create a soft symbolic link from /mnt/original (file or folder) to ~/link ln -s /mnt/original ~/link See also: Linux…
git config --global user.name "<your name>" git config --global user.email "<youremail@somewhere.com>" Related Commands Show current git configuration: git config --list…
TypeScript/JavaScript function getLastMonday(d: Date) { let d1 = new Date(d.getFullYear(), d.getMonth() + 1, 0); let wd = d1.getDay(); d1.setDate(d1.getDate() -…
I had to do some SMTP relay troubleshooting and it wasn't obvious how to view the raw SMTP message in…
I spent a good part of the weekend on a re-design of a client's dental practice site. Like probably 95%…
A while back I wrote about sending data from SmartThings and other home devices data to Splunk so I can…
💠Imagine: merging a Pull Request is all it takes to automatically deploy your static or single-page app to a…
The smart home has gone through quite a convergence in the last few years. Modern protocols like Z-Wave & ZigBee,…