Blog


List number of idle connections per redis client

The output of ./redis-client client list provides you with an output that looks like this: id=829964458 addr=192.168.1.110:58379 fd=1909 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client To determine truly idle clients, the fields of interest for us are (definitions from here: addr: address/port of the client age: total […]




List number of connections per client on a redis server

The redis-client client list command allows you to list all clients connected to a redis server (along with a bunch of other useful information listed here Here’s a quick command to allow you to list the number of connections per client: ./redis-cli client list | awk -F'[ =:]’ ‘{print $4}’ | sort | uniq -c




List all mailboxes set to forward externally

Quick script to get a list of all mailboxes that forward to non-authoritative domains.




Block Ads using dnsmasq – Synology

DNSMasq is a very light-weight DNS server that is perfectly suited to run on low power home appliances like NAS devices or routers running custom firmware. The script below pulls ad blocking host files from 3 different providers and combines them to use as a DNSMasq resolver file. Here is the script – it can […]