--- cpu and memory per pod
> select
p.namespace,
p.name as pod_name,
c ->> 'name' as container_name,
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
" Default Vim | |
colorscheme desert | |
set mouse=a | |
set encoding=utf-8 | |
set fileencoding=utf-8 | |
set ttyfast | |
set nocompatible | |
set backspace=indent,eol,start | |
set nocp digraph sc vb wmnu noeb noet nosol ai | |
set autoindent expandtab tabstop=2 shiftwidth=2 |
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
groups: | |
- name: node_exporter_alerts | |
rules: | |
- alert: Node down | |
expr: up{job="monitoring-pi"} == 0 | |
for: 2m | |
labels: | |
severity: warning | |
annotations: | |
title: Node {{ $labels.instance }} is down |
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
apiVersion: batch/v1 | |
kind: CronJob | |
metadata: | |
name: error-demo-cronjob | |
spec: | |
schedule: "*/5 * * * *" | |
successfulJobsHistoryLimit: 2 | |
failedJobsHistoryLimit: 1 | |
jobTemplate: | |
spec: |
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
#EXTM3U | |
#EXTINF:-1, Kosmonita Malang | |
http://202.58.200.26:1055/live | |
#EXTINF:-1, Prambors Jakarta | |
https://23683.live.streamtheworld.com/PRAMBORS_FMAAC.aac | |
#EXTINF:-1, SS 100 Surabaya | |
https://c5.siar.us/proxy/ssfm/stream |
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 | |
for image in $PWD/**/*.{png,jpg,jpeg}; do | |
if [[ $image != *"webp"* ]]; then | |
cwebp -q 80 "$image" -o "${image%.*}.webp" | |
echo "Converted $image to ${image%.*}.webp" | |
rm "$image" | |
fi | |
done |
My personal
Awesome
Docker ideas
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
import requests, subprocess | |
resp = requests.get("https://riskiwah.xyz") | |
if resp.status_code == 502: | |
print("Your Landing Pages is Down!!") | |
subprocess.call("docker-compose up -d", shell=True, cwd="/home/dietpi/code/wireguard-way/") | |
else: | |
print("Your Landing Pages is Up!!") |
NewerOlder