Category Command line Fu

Run static website on Kubernetes

Assuming kubectl is configured. This is how to run default nginx site on Kubernetes. Simple setup = load balancer/no ingress In this example we don’t use an ingress. We just expose the static website behind a loadbalancer, so the static…

Run a dummy job on Kubernetes

Assuming kubectl is configured: Run as job: # Start job kubectl create job hello \ –image=busybox \ — echo "Hello from a Kubernetes Job" # See it run/complete kubectl get jobs # View logs from job kubectl logs job/hello #…

How to convert Markdown to PDF

First, a confession. To get this to run on my Mac, I probably installed a bunch of stuff, such as Latex. I don’t remember what I did to make it work, so you will have to reverse engineer that. Here…

Log devices on your network

Fing logger (finglogger.sh): #!/bin/sh FING_LOG_FILE= # append current public ip echo `date +”%Y/%m/%d %T”`”;publicip;”`curl -s ipecho.net/plain`”;;;” >> $FING_LOG_FILE # append current fing output /usr/bin/fing -r1 -o log,csv,$FING_LOG_FILE,1000 –silent Add to cron (run every hour): 0 * * * *