Tired of having to wait for Cloudshare's progress bar to fill up? Here is a script that does it for you.
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
| package main | |
| import ( | |
| "crypto/ecdsa" | |
| "crypto/elliptic" | |
| "crypto/rand" | |
| "crypto/x509" | |
| "crypto/x509/pkix" | |
| "encoding/base64" | |
| "encoding/json" |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if [[ $# -lt 1 ]]; then | |
| echo "Usage: $0 <github-org> | <github-org/repo>" | |
| exit 1 | |
| fi | |
| TARGET="$1" |
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 | |
| # shellcheck disable=SC2059 | |
| set -eo pipefail | |
| help() { | |
| cat <<EOF | |
| A script to expose your Kind cluster's API server to the internet using | |
| Tailscale Funnel. To do that, the API server's --service-account-issuer and | |
| --service-account-jwks-uri are updated, and the API server's certificate SANs |
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 | |
| set -euo pipefail | |
| # Source: https://gist.github.com/maelvls/bd9b48ed236a4622e5c7794a04d73752 | |
| help() { | |
| cat <<EOF | |
| Usage: gh gocover --pr <number> --bucket gs://bucket/path [flags] | |
| Description: |
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 | |
| # | |
| # | |
| # Copy auto-approve to the VM: | |
| # gcloud compute ssh cronjob-gitlab-approval --zone europe-west2-b -- sudo tee /usr/local/bin/auto-approve <~/bin/auto-approve >/dev/null | |
| # | |
| # Then: | |
| # gcloud compute ssh cronjob-gitlab-approval --zone europe-west2-b | |
| # crontab -e | |
| # |
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 | |
| set -euo pipefail | |
| help() { | |
| cat <<EOF | |
| USAGE | |
| $(basename "$0") --url https://jenkins/job/foo/job/bar --user <username> --token <token> --arg param=value --arg param2=value2 | |
| DETAILS |
Visualize the interaction between the Kubernetes apiserver and the cert-manager webhook using mimtproxy
This mitmproxy file was created using Kubernetes 1.21 and cert-manager 1.7.
To visualize this HTTP interaction, install mitmproxy and run:
curl -sSLO https://raw.githubusercontent.com/maelvls/kubectl-incluster/main/josejson.py
curl -sSLO https://gist.githubusercontent.com/maelvls/8a7fd6e6f1e92045813b120ad063d9ae/raw/22ece3844cb21c76d3077090d06368d5943729c9/apiserver-to-webhook.mitmproxyThe issue in question is kImageAnnotator#257.
Updated on 16 April 2023 with ksnip 1.10.1.
git clone https://github.com/ksnip/kColorPicker
git clone https://github.com/ksnip/kImageAnnotator
git -C kImageAnnotator remote add maelvls https://github.com/maelvls/kImageAnnotatorI've moved this to https://hackmd.io/@maelvls/bsd-vs-gnu-vs-busybox-incompat.
NewerOlder
