This file contains 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 python3 | |
# | |
# blame(@qrkourier) | |
# | |
from jira import JIRA | |
import os | |
import sys | |
from argparse import ArgumentParser | |
import webbrowser |
This file contains 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 -e -u -o pipefail | |
aws --output text ec2 describe-regions | while read REG ENDPOINT OPT REGION; do | |
aws --region $REGION rds describe-db-instances | \ | |
jq -r '[.DBInstances[]|select(.CACertificateIdentifier == "rds-ca-2015")|{id:.DBInstanceIdentifier, az:.AvailabilityZone,engine:.Engine, user:.MasterUsername, end:.Endpoint.Address}]' | |
done | |
read -p "Roll cert and bounce these instances? <ENTER> to proceed, Ctrl-c to cancel: " |
This file contains 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
# source this file in bash or zsh to make | |
# NETFOUNDRY_API_TOKEN | |
# available to processes run in the same shell | |
_get_nf_token(){ | |
[[ $# -eq 2 ]] || { | |
echo "ERROR: send two params: client_id client_secret" >&2 | |
return 1 | |
} | |
client_id=$1 |
This file contains 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
# 1) define one or more Restic repo paths | |
typeset -A RESTIC_REPOS | |
RESTIC_REPOS[gdrive]=rclone:gdrive-backup: | |
RESTIC_REPOS[KX1T]=/media/kbingham/KX1T/backups | |
#RESTIC_REPOS[bigExternalDrive]=/media/kbingham/bigExternalDrive/backups | |
# 2) create an exclude file with lines like: | |
# **/*cache/ |
This file contains 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 -o pipefail -e -u | |
[[ ${#@} -eq 1 && "$1" =~ .csv$ ]] || { | |
echo "ERROR: need a CSV file to convert" >&2 | |
exit 1 | |
} | |
CSV_FILE="$1" |
This file contains 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 zsh | |
# | |
# get the well-known CA certs of a Ziti controller as importable PEM and DER files | |
# | |
# EXAMPLE | |
# | |
# $ ./export-ziti-ca.sh 13.36.15.32 | |
# SUCCESS: certificates exported in /tmp/export-ziti-ca-13-36-15-32/: | |
# total 16K | |
# -rw-rw-r-- 1 kbingham kbingham 1.7K Sep 20 12:47 NetFoundry.der |
This file contains 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 zsh | |
# | |
# get the well-known CA certs of a Ziti controller as importable PEM and DER files | |
# | |
# EXAMPLE | |
# | |
# $ ./export-ziti-ca.zsh 13.36.15.32 | |
# SUCCESS: certificates exported in /tmp/export-ziti-ca-13-36-15-32/: | |
# total 16K | |
# -rw-rw-r-- 1 kbingham kbingham 1.7K Sep 20 12:47 NetFoundry.der |
This file contains 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
{ | |
"address": "127.0.0.1", | |
"allowedPortRanges": [ | |
{ | |
"high": 10256, | |
"low": 10256 | |
}, | |
{ | |
"high": 4789, | |
"low": 4789 |
This file contains 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 | |
sudo apt install \ | |
build-essential \ | |
libspice-server1 \ | |
xutils-dev \ | |
libxcb-damage0-dev \ | |
libxcb-xtest0-dev \ |
This file contains 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
# ${HOME}/.config/systemd/user/x11vnc.service | |
[Unit] | |
Description=Attach Running x11 Server as SPICE Server | |
[Install] | |
WantedBy=default.target | |
[Service] | |
ExecStart=/usr/local/bin/x11spice | |
Restart=always |