Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/awk -f
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff
# My copy here is written in awk instead of C, has no compelling benefit.
# Public domain. @thingskatedid
# Run as awk -v x=xyz ... or env variables for stuff?
# Assumptions: the data is evenly spaced along the x-axis
# TODO: moving average
# HINTS
## Add self to the docker group (run docker without sudo)
sudo gpasswd -a myusername docker
## Get container ID
alias dl='docker ps -l -q'
## Get container IP
docker inspect --format='{{ .NetworkSettings.IPAddress }}' `dl`
docker inspect `dl` | grep IPAddress | cut -d '"' -f 4