Category: Linux

  • Kubernetes – Simple CronJob for MySQL/MariaDB Backup

    Kubernetes – Simple CronJob for MySQL/MariaDB Backup

    No Secret, No Configmap, No Fuzz. Just a command and args one-liner that gets the job done, day after day, with an invaluable result on the day that you reaaaally need it. Example Backup Cron: This will create a daily job (00:00, 12AM) that runs container image “mysqldump”, generously authored by It will store […]

  • How To: Resolve Multicast DNS (mDNS) using Dig in Linux

    Sometimes it can be nice to verify that the hostname on your box (printer, raspberry pi, whatever) is resolving to the correct IP-address on the LAN. Whether it’s published via Avahi, Bonjour or something similar. An mDNS request resolves to. IPv4 address or IPv6 address ff02::fb UDP port 5353 This can be achieved with […]

  • How To: Redirect HTTP Traffic to Proxy Using iptables

    Proxy Madness Using Squid or any other proxy for transparent caching/filtering of HTTP traffic has many benefits, being for logging purposes or the aforementioned use-cases, keeping every client configured can be a nuance. Networking equipment from Cisco and Juniper has the ability to redirect all passing HTTP traffic, in IOS and JunOS respectively, to the […]

  • How To: Netcat – Check for open ports with the command line

    Kitty Port-checking When troubleshooting a network integration or any other connection issue in Linux, step one is usually a matter of checking to see if the network port on the other side is even responding. Netcat -The network Swiss Army knife (Hobbit, not nmap)- is the right tool for the job. Before we begin, NetCat […]

  • How To: List what Procs are using the Lib in Linux

    Find the Procs After upgrading an important package in Linux -or other Unix variant- that provides a library used by many other processes. Instead of restarting the server for the new lib to take effect, the procs can be restarted -or HUPed- individually. Before we begin, lsof needs to be installed. # RHEL / CentOS […]