curl http://longhorn-api/v1/backupvolumes | jq '.data[0] | "s3://longhorn@us-east-1/?backup=" + .lastBackupName + "&volume=" + .id' -r
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
# Renew Let's Encrypt Certificates | |
/usr/syno/sbin/syno-letsencrypt renew-all | |
# Disable Firewall | |
/usr/syno/bin/synofirewall --disable |
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
{ | |
"Alt-/": "lua:comment.comment", | |
"Alt-X": "lua:comment.comment", | |
"Ctrl-f": "FindLiteral", | |
"Ctrl-g": "command-edit: goto ", | |
"CtrlUnderscore": "lua:comment.comment", | |
"F6": "command-edit:gorename ", | |
"F7": "FindLiteral", | |
"F8": "CutLine", | |
"MouseRight": "Paste", |
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
agent: | |
alligator: | |
# -- Data retention period for traces and workloads metadata {amount}[h(ours)], default is 12h | |
dataRetention: 12h | |
loki: | |
config: | |
table_manager: | |
# -- Data retention period for logs, {amount}[h(ours)], default is 2h | |
retention_period: 2h |
kubectl get pods --all-namespaces -o=jsonpath="{range .items[*]}{'\n'}{range .spec.containers[*]}{.image}{'\n'}{end}{end}" | sort | uniq
curl -sSL -X GET 'http://es-for-logging-master:9200/filebeat*/_search?pretty' -H 'Content-Type: application/json' -d '{
"query": {
"query_string": {
"query": "kubernetes.labels.app:helloworld"
}
},
"size": 1000,
"from": 0,
"sort": [
docker run --rm -i -t httpd:alpine htpasswd -nb foo bar|openssl base64
whois -h whois.radb.net -i origin -T route $(whois -h whois.radb.net 1.2.3.4 | grep origin: | cut -d ' ' -f 6 | head -1) | grep -w "route:"
| awk '{print $NF}' |sort -n
key | command |
---|---|
alt-# | commenting ( "Alt-X": "lua:comment.comment" ) |
ctrl-u | macro recording stop/Start |
ctrl-j | re-play recorded macro |
f8/ctrl-k | del line |
alt-up/down | move line/selection up/down |
ctrl-z/y | undo/redo |
ctrl-c/v | copy/paste |
ctrl-r | toggle line numbers |
master:
curl -sfL https://get.k3s.io | sh -
cat /var/lib/rancher/k3s/server/node-token
nodes:
NewerOlder