Skip to content

Instantly share code, notes, and snippets.

View dyipon's full-sized avatar

dy dyipon

  • iPon Computer
  • Eger, Hungary
View GitHub Profile
@dyipon
dyipon / synology-commands.sh
Created March 2, 2024 09:48 — forked from sebastian13/synology-commands.sh
Collection of useful terminal commands for Synology DS.
# Renew Let's Encrypt Certificates
/usr/syno/sbin/syno-letsencrypt renew-all
# Disable Firewall
/usr/syno/bin/synofirewall --disable
@dyipon
dyipon / bindings.json
Created December 20, 2023 14:07
micro editor settings
{
"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",
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
curl http://longhorn-api/v1/backupvolumes | jq '.data[0] | "s3://longhorn@us-east-1/?backup=" + .lastBackupName + "&volume=" + .id' -r
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: