# Add this to your ~/.gitconfig under [alias]
hygiene = !"f() { \
if git show-ref --verify --quiet refs/heads/development; then dev=development; \
elif git show-ref --verify --quiet refs/heads/develop; then dev=develop; \
elif git show-ref --verify --quiet refs/heads/dev; then dev=dev; \
elif git show-ref --verify --quiet refs/heads/main; then dev=main; \
elif git show-ref --verify --quiet refs/heads/master; then dev=master; \
else echo 'No development/develop/dev/main/master branch found — aborting'; exit 1; fi; \
stashed=0; \Verify the cluster's ability to perform data encryption. Create a test secret:
kubectl create secret generic kubernetes-the-hard-way --from-literal="mykey=mydata"Log in to one of your controller servers, and get the raw data for the test secret from etcd:
sudo ETCDCTL_API=3 etcdctl get \To begin a new tmux session:
tmux
To split into two panes:
Ctrl-b %
To split the pane horizontally:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| jenkins_base_url=http://<jenkins-url:8080>/ | |
| username=<some-username> | |
| apitoken=<api-token-generated-from-jenkins-dashboard> | |
| curl -O $jenkins_base_url/jnlpJars/jenkins-cli.jar | |
| java -jar jenkins-cli.jar -auth "$username":"$apitoken" -s "$jenkins_base_url" declarative-linter<Jenkinsfile | |
| rm jenkins-cli.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Configuration files to setup Wordpress with Apache2 webserver, Varnish caching server and HAproxy for loadbalancing with support for Lets Encrypt |
I hereby claim:
- I am sys0dm1n on github.
- I am sys0dm1n (https://keybase.io/sys0dm1n) on keybase.
- I have a public key whose fingerprint is FA6A 0A6E D541 2D93 528C B8C2 9DA0 9AC2 59E1 23A4
To claim this, I am signing this object: