Skip to content

Instantly share code, notes, and snippets.

View polettix's full-sized avatar
🐫

Flavio Poletti polettix

🐫
View GitHub Profile
#!/bin/sh
microk8s.kubectl config view --raw > ~/kube-config
printf %s\\n "alias k9s='k9s --kubeconfig ~/kube-config'" >> ~/.bash_aliases
mkdir -p ~/bin
curl -L https://github.com/derailed/k9s/releases/download/v0.24.1/k9s_Linux_x86_64.tar.gz \
| tar xzO k9s > ~/bin/k9s
chmod +x ~/bin/k9s
printf %s\\n 'now exit your shell and enter again'
#!/usr/bin/env perl
use 5.024;
use warnings;
use English qw< -no_match_vars >;
use autodie;
use experimental qw< postderef signatures >;
no warnings qw< experimental::postderef experimental::signatures >;
use File::Basename qw< basename >;
use Data::Dumper; $Data::Dumper::Indent = 1;
use Storable 'dclone';

Bug in rrdtool?

Consider the RRD database file [prova.rrd][]. It contains two data sources:

  • total, always reporting about 4 M of "something" (kbyte RAM)
  • used, showing an increase from about 200 k to about 2 M over a 10-years period.

There are aggregation at multiple levels, one over the span of 10 years.

The stand-alone graph for used is the following, showing the increase over time: