A few days ago, the Scapy project was brought to my attention.
python snippet scapy dns
Voilà, a MySQL function to count occurrences of a character (or a string of characters).
function snippet mysql
For reuse, an OpenSIPS/Kamailio snippet to translate commonly used SIP (VoIP) phone Caller-ID (CLI) headers into a single one (Remote-Party-ID).
sip ser snippet rpid opensips kamailio