FROM K8sVolumeSample
SELECT min(fsAvailableBytes / 1024 / 1024 / 1024) as 'GiB Free',
clamp_min(
(100 - 1 - stddev(fsUsedPercent) - max(fsUsedPercent))
/
clamp_min(
deriv(fsUsedPercent, 1 days)
,0.00000313)
,0) as 'Days until full'
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
function kubeproxy() { | |
setopt local_traps | |
pod_name="socat-$(whoami)" | |
if [[ "${2}x" == "x" ]]; then | |
echo "Usage: kubeproxy [Hostname] [Port]" | |
return 0 | |
fi | |
if kubectl run --restart=Never --image=alpine/socat $pod_name -- -d -d tcp-listen:$2,fork,reuseaddr tcp-connect:$1:$2; then | |
while [[ $(kubectl get pod $pod_name -o json | jq -r '.status.phase') != "Running" ]]; do | |
sleep 0.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
192.168.206.67 - - [28/Sep/2021:06:50:10 +0000] "GET /v1 HTTP/1.1" 200 3871 "" "Go-http-client/1.1" | |
192.168.206.67 - - [28/Sep/2021:06:50:10 +0000] "GET /v1 HTTP/1.1" 200 3871 "" "Go-http-client/1.1" | |
192.168.206.67 - - [28/Sep/2021:06:50:10 +0000] "GET /v1 HTTP/1.1" 200 3871 "" "Go-http-client/1.1" | |
192.168.206.67 - - [28/Sep/2021:06:50:10 +0000] "GET /v1 HTTP/1.1" 200 3871 "" "Go-http-client/1.1" | |
192.168.206.67 - - [28/Sep/2021:06:50:10 +0000] "GET /v1 HTTP/1.1" 200 3871 "" "Go-http-client/1.1" | |
fatal error: concurrent map writes | |
/usr/local/go/src/runtime/panic.go:1114 +0x72 fp=0xc001edd760 sp=0xc001edd730 pc=0x4348e2 | |
runtime.throw(0x1b8963e, 0x15) | |
goroutine 1151041 [running]: |
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
tplink: | |
discovery: false | |
switch: | |
- host: 192.168.1.10 | |
- host: 192.168.1.11 | |
- host: 192.168.1.12 | |
- host: 192.168.1.13 | |
sensor: | |
- platform: template |
|Timestamp |Container Name |Host |Pod Name |Message
Timestamp | Container Name | Pod Name | Message |
---|---|---|---|
2021-03-03 17:38:00 | destination | linkerd-destination-77d95c4b9-mx54s | time="2021-03-03T17:38:00Z" level=info msg="Stopping watch on endpoint [default/nextcloud-cache:6379]" addr=":8086" component=endpoints-watcher |
2021-03-03 17:38:00 | destination | linkerd-destination-77d95c4b9-mx54s | time="2021-03-03T17:38:00Z" level=info msg="Stopping watch on profile default/nextcloud-cache.default.svc.cluster.local" addr=":8086" compo |
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 | |
## Edit sudoers (add "NOPASSWD:" to the sudo line before ALL) | |
## Add optional: true to netplan and apply | |
## Add Google Kubernetes key | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B53DC80D13EDEF05 | |
# Install Docker |
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 | |
dir="$HOME/Videos" | |
opts="--add-metadata --no-mtime" | |
if [ -f /usr/local/bin/youtube-dl ]; then | |
youtube_dl="/usr/local/bin/youtube-dl" | |
else | |
youtube_dl="$(which youtube-dl)" | |
fi |
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 | |
twitchroot="/home/eggdrop/twitcher/logs/" | |
alllogs=$(echo $twitchroot"*") | |
logpath="http://qtosw.com/pubfiles/twitchlogs/?C=M;O=D" | |
echo -e "Content-type: text/html; charset=utf-8\n" | |
echo "<html><head>" | |
echo "<meta charset=utf-8>" | |
echo "<link rel=\"stylesheet\" href=\"style.css\" />" | |
echo "</head><body>" | |
#initialize what we have to work with |
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
# refreshes the prompt every $TMOUT seconds | |
TMOUT=15 | |
function preexec() { | |
timer=$(($(date +%s%0N)/1000000)) | |
} | |
function precmd() { | |
if [ $timer ]; then | |
now=$(($(date +%s%0N)/1000000)) |