Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# generate a friendly changelog
# gh auth login
# view gh auth status
# gh auth status
# given a json object with two arrays of PR links
TEAM=$(jq -r '.deployedPRs.team[]' < released.json)
@kylos101
kylos101 / k3s-troubleshooting.sh
Created June 19, 2021 23:31
k3s troubleshooting (run from a node if you're having trouble)
# inspect k3s on server and agents configuration
k3s check-config
# inspect k3s server to see how it's doing
sudo systemctl status k3s -l
# inspect k3s agent to see how it's doing
sudo systemctl status k3s-agent -l
# Run kubectl commands your server and agents your host os
sudo /usr/local/bin/kubectl get nodes
sudo /usr/local/bin/kubectl get pods -A
# Get detailed logs
@kylos101
kylos101 / script.sh
Created April 5, 2020 20:19
Update a fork
# Assumes you have a remote defined as upstream like this...
# git remote add upstream https://github.com/org/source-of-your-fork.git
# Update your fork...
git checkout master && git fetch upstream && git rebase upstream/master && git push origin master --force
@kylos101
kylos101 / readme.md
Last active September 27, 2019 20:58
Use a private Docker Hub repo with OpenFaaS