I hereby claim:
- I am spmason on github.
- I am spmason (https://keybase.io/spmason) on keybase.
- I have a public key ASAceBYevAn4wzt1xOUf4yh78gRqksgRkZl5ZdGwl1Qgugo
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # A generic command that makes it easy to run k9s against a specific cluster | |
| # - without messing around with contexts (like kubectx does), eg: | |
| # | |
| # $ k9 prod-cluster get pods | |
| # | |
| # See the `kube` script alongside this one for more info (it's exactly the same except the final command is different) | |
| # | |
| set -ue -o pipefail |
| #!/usr/bin/env bash | |
| git co -b dependabot-$(date '+%Y-%m-%d') && \ | |
| gh pr list --label dependencies --json number,headRefName --search 'status:success' --jq '.[].headRefName | "origin/\(.)"' \ | |
| | xargs git merge && \ | |
| pr |
| #!/bin/bash | |
| set -ue -o pipefail | |
| CLUSTER=$1 | |
| shift | |
| CLUSTER_KUBECONFIG="$HOME/.kube/config.${CLUSTER}" | |
| if ! [ -f $CLUSTER_KUBECONFIG ]; then | |
| echo "current-context: ${CLUSTER}" > $CLUSTER_KUBECONFIG |
I hereby claim:
To claim this, I am signing this object:
| # Checks out a PR to a pr/<number> local branch | |
| # Usage: git pr <number> [<upstream>] | |
| git config --global alias.pr '!git fetch -fu ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1 && :' | |
| # Deletes pr/<number> branches | |
| # Usage: git pr-clean | |
| git config --global alias.pr-clean '!git for-each-ref refs/heads/pr/* --format='"'"'%(refname)'"'"' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done' |
| #!/usr/bin/env bash | |
| # GitHub "Open Pull Request" script | |
| # | |
| # Add somewhere in your path, then opening a PR is as easy as typing `pr` while you're | |
| # on the branch you want to open a Pull Request for | |
| # | |
| # NOTES: | |
| # - Uses the `hub` tool: https://cli.github.com/ | |
| # - Assumes that the upstream repository is called 'origin' and your fork is named after your github username |