iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prometheus related updates
[distro-setup]
/
brc
diff --git
a/brc
b/brc
index 99fc5b8eb1ddbc87ddd22aef2f026318b04e89c2..97f22e1ca96ecbdb65bdabb69aea925305850f1c 100644
(file)
--- a/
brc
+++ b/
brc
@@
-1635,6
+1635,15
@@
ccomp mkdir mkc
mkct() {
mkc $(mktemp -d)
}
mkct() {
mkc $(mktemp -d)
}
+# mkdir the last arg, cp the rest into it
+mkcp() {
+ mkdir -p "${@: -1}"
+ cp "${@:1:$#-1}" "${@: -1}"
+}
+mkmv() {
+ mkdir -p "${@: -1}"
+ mv "${@:1:$#-1}" "${@: -1}"
+}
mkt() { # mkdir and touch file
local path="$1"
mkt() { # mkdir and touch file
local path="$1"
@@
-2388,6
+2397,13
@@
pson() {
fi
}
fi
}
+# prometheus node curl
+pnodecurl() {
+ local host
+ host=${1:-127.0.0.1}
+ s curl --cert-type PEM --cert /etc/prometheus/ssl/prometheus_cert.pem --key /etc/prometheus/ssl/prometheus_key.pem --cacert /etc/prometheus/ssl/prom_node_cert.pem --resolve prom_node:9100:$host -v https://prom_node:9100/metrics
+}
+
tx() { # toggle set -x, and the prompt so it doesnt spam
if [[ $- == *x* ]]; then
set +x
tx() { # toggle set -x, and the prompt so it doesnt spam
if [[ $- == *x* ]]; then
set +x
@@
-2564,6
+2580,7
@@
spark()
_spark_echo
}
_spark_echo
}
+pdfwc() { local f; for f; do echo "$f" $(pdfinfo "$f" | awk '/^Pages:/ {print $2}'); done }
# * misc stuff
# * misc stuff