Skip to content

Instantly share code, notes, and snippets.

consul-template --template foo.ctmpl -dry -log-level=trace -consul-addr=172.17.0.1:8500
2019/09/26 09:25:51.867140 [INFO] consul-template v0.22.0 (005b42eb)
2019/09/26 09:25:51.867153 [INFO] (runner) creating new runner (dry: true, once: false)
2019/09/26 09:25:51.867390 [DEBUG] (runner) final config: {"Consul":{"Address":"172.17.0.1:8500","Auth":{"Enabled":false,"Username":"","Password":""},"Retry":{"Attempts":12,"Backoff":250000000,"MaxBackoff":60000000000,"Enabled":true},"SSL":{"CaCert":"","CaPath":"","Cert":"","Enabled":false,"Key":"","ServerName":"","Verify":true},"Token":"","Transport":{"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":90000000000,"MaxIdleConns":100,"MaxIdleConnsPerHost":9,"TLSHandshakeTimeout":10000000000}},"Dedup":{"Enabled":false,"MaxStale":2000000000,"Prefix":"consul-template/dedup/","TTL":15000000000},"Exec":{"Command":"","Enabled":false,"Env":{"Blacklist":[],"Custom":[],"Pristine":false,"Whitelist":[]},"KillSignal":2,"KillTimeout":30
@niko
niko / README.md
Last active February 3, 2024 17:41 — forked from ePirat/spec.md
Icecast Protocol specification

An collection of documents about icecast/shoutcast streaming.

@niko
niko / Redis space usage
Last active December 4, 2021 10:46
Calculate Redis space usage by (colon separated) key space
# PREFIX='' ; redis-cli -n 15 keys "${PREFIX}*" | sed s/^"${PREFIX}:"// | awk -F ":" '{print $1}' | sort | uniq | while read KEYSPACE; do echo -n "${PREFIX}${PREFIX:+:}${KEYSPACE}: "; redis-cli -n 15 keys "${PREFIX}${PREFIX:+:}${KEYSPACE}:*" | while read k; do redis-cli -n 15 MEMORY USAGE $k; done | awk '{s+=$1}END{print NR,s}'; done
buffer: 11 56752046
buffer_queue: 2 0
ice: 29126 1063022045
cast: 9705 12145987
meta_player: 1 1297
metrics: 23 2067
stations: 9 1462399
vast: 47 253390184