Skip to content

Instantly share code, notes, and snippets.

apiVersion: v1
kind: Pod
metadata:
name: counter
spec:
containers:
- name: count
image: busybox
args: [/bin/sh, -c,
'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done']
@BeauBouchard
BeauBouchard / fixaudio.sh
Last active July 8, 2019 21:50
that ubuntu audio fix you keep forgetting
pulseaudio --kill
## removing config
rm --recursive ~/.config/pulse/*
rm --recursive ~/.pulse*
pulseaudio --kill
killall pulseaudio
## that beefy forced reload of alsa
/**
* @return {boolean} true whether inside a node application or not.
**/
function isNode () {
try {
return "object" === typeof process && Object.prototype.toString.call(process) === "[object process]";
} catch(e) {}
return false;
}