Tag: Linux

  • Kubernetes – Useful Shorthands for Kubectl

    Kubernetes – Useful Shorthands for Kubectl

    Useful aliases for kubectl that I use Add these to ~/.zshrc (ZShell) or ~/.bashrc (Bash)

  • 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 docker.io/bigtruedata. 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 224.0.0.251 or IPv6 address ff02::fb UDP port 5353 This can be achieved with…

  • 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…