Skip to content

Instantly share code, notes, and snippets.

@hustshawn
hustshawn / create-kube-user.sh
Last active December 4, 2020 12:19 — forked from henning/create-kube-user.sh
create k8s user, certificate, permissions and client config
#!/bin/bash
CLUSTERNAME=cluster-name
CLUSTER_API=cluster-api
NAMESPACE=namespace
USERNAME=username
ORGANIZATION=organization
KEY_FILE=$USERNAME.key
CSR_FILE=$USERNAME.csr
CRT_FILE=$USERNAME.crt
@mcfadden
mcfadden / convert_xlive.sh
Last active January 8, 2022 01:40
Convert multitrack WAV files generated by X-Live card into one file per track
#!/bin/bash
# Accepts a single argument, which is a path to the directory containing all the
# WAV files generated by a recordings from the X-Live card.
# Looks for files like 000000.WAV 000001.WAV 000002.WAV etc.
#
# Outputs files like Ch01.WAV Ch02.WAV Ch03.WAV etc.
#
# Requires sox