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
#!/usr/bin/env bash | |
#:set expandtab tabstop=4 shiftwidth=4 autoindent | |
# Prerequisites: | |
# brew install coreutils # for numfmt | |
# brew install jq | |
# brew install bash | |
set -euo pipefail | |
to1() { | |
local n=${1:-0} |
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
#!/usr/bin/env bash | |
# version: 3.1415926 | |
# usages: | |
# check all nodes: check-scheduler <namespace> <pod> | |
# check specified nodes: check-scheduler <namespace> <pod> <node1> <node2> <node3>... | |
# check the node where the 1st pvc is: check-scheduler <namespace> <pod> pvc | |
set -euo pipefail | |
to1() { | |
local n=${1:-0} |
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 | |
set -euo pipefail | |
help() { | |
printf "cpuset.sh version: 3.1\n" | |
printf "usage:\n" | |
printf "cpuset.sh union 0-1 2 3-4,5 => 0-5\n" | |
printf "cpuset.sh intersect 0-9 4-6 4-5 => 4-5\n" | |
printf "cpuset.sh minus 0-9 4-5 => 0-3,6-9\n" | |
printf "cpuset.sh shrink 0,1,2,3 => 0-3\n" |