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
| $ fwupdmgr refresh |
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
| kubectl get pod -n <NAMESPACE> | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n <NAMESPACE> |
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
| # Enable GCS versioning | |
| $ gsutil versioning set on gs://<BUCKET_NAME> | |
| # Disable GCS versioning | |
| $ gsutil versioning set off gs://<BUCKET_NAME> |
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
| $ kubectl create secret docker-registry <SECRET_NAME> \ | |
| --docker-server=https://docker.io \ | |
| --docker-username=<DOCKER_USERNAME> \ | |
| --docker-password=<DOCKER_TOKEN> \ | |
| --docker-email=<DOCKER_EMAIL> |
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
| curl \ | |
| -X POST \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| -H "Authorization: token <ACCESS_TOKEN_HERE>" \ | |
| https://api.github.com/repos/<ORG_OR_USERNAME>/<REPO>/actions/workflows/<FILENAME_OR_WORKFLOW_ID>/dispatches \ | |
| -d '{"ref":"refs/heads/master"}' |
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
| $ echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -dates |
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
| $ kubectl patch crd/<CRD_NAME_HERE> -p '{"metadata":{"finalizers":[]}}' --type=merge |
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/sh | |
| mkdir -p src/{main,test}/{java,resources,scala} | |
| mkdir lib project target | |
| # build.sbt | |
| echo 'name := "<YOUR_PROJECT_NAME>" | |
| version := "1.0" | |
| scalaVersion := "2.13.3"' > build.sbt |
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
| # Clone current repo. | |
| $ git clone https://current.example.com/repo.git | |
| $ git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
| $ git fetch --all | |
| $ git pull --all | |
| # Change Git remote's URL. | |
| $ git remote set-url origin https://new.example.com/repo.git | |
| $ git push --all |
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
| /32 255.255.255.255 | |
| /31 255.255.255.254 | |
| /30 255.255.255.252 | |
| /29 255.255.255.248 | |
| /28 255.255.255.240 | |
| /27 255.255.255.224 | |
| /26 255.255.255.192 | |
| /25 255.255.255.128 | |
| /24 255.255.255.0 | |
| /23 255.255.254.0 |