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 -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | sudo bash |
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 | |
| # Bitwarden AppImage installer for Linux | |
| # This script downloads and installs the latest Bitwarden Desktop version | |
| set -e # Exit on error | |
| # Variables | |
| INSTALL_DIR="/usr/local/bin" | |
| INSTALL_PATH="${INSTALL_DIR}/bitwarden" |
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 | |
| # Complete RKE2 and Rancher System Agent cleanup | |
| echo "=== Stopping Services ===" | |
| # Stop RKE2 services | |
| sudo systemctl stop rke2-server. service 2>/dev/null | |
| sudo systemctl stop rke2-agent.service 2>/dev/null | |
| sudo systemctl disable rke2-server.service 2>/dev/null | |
| sudo systemctl disable rke2-agent. service 2>/dev/null |
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 | |
| echo $TOKEN | gh auth login --with-token | |
| flux create secret git ${NAMESPACE}-ssh-credentials \ | |
| --url=ssh://git@github.com/${OWNER}/${REPO} \ | |
| --ssh-key-algorithm=ecdsa \ | |
| --ssh-ecdsa-curve=p384 -n ${NAMESPACE} | |
| export KEY=`kubectl get secrets ${NAMESPACE}-ssh-credentials -n ${NAMESPACE} -o jsonpath='{.data.identity\.pub}' | base64 -d` |
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 | |
| # call by using source bws-to-env.sh && ... | |
| CONTENT=$(bws secret list --output json) | |
| COUNT=$(echo ${CONTENT} | jq 'length') | |
| for (( i=0; i<$COUNT; i++ )); do | |
| KEY=$(echo ${CONTENT} | jq -r ".[$i].key") | |
| VALUE=$(echo ${CONTENT} | jq -r ".[$i].value" | tr -d '\n') | |
| export $KEY=$VALUE |