Zabbix-Speed-Test

Speedtest WAN ISP monitoring with zabbix. I moved to another ISP on a 100Mb nbn. speedtest-cli captures jitter, uploads and downloads bandwidth.

../../../_images/nbn-zabbix.png

Read more...

celsius

I was talking to a friend from America. They use fahrenheit over there

In [1]: def to_celsius(x):
   ...:     return (x-32)*5/9
   ...:

In [2]: for x in range(0, 120,10):
   ...:     print("{:>3} F | {:>6.2f}
   ...: C".format(x, to_celsius(x)))
   ...:
  0 F | -17.78 C
 10 F | -12.22 C
 20 F |  -6.67 C
 30 F |  -1.11 C
 40 F |   4.44 C
 50 F |  10.00 C
 60 F |  15.56 C
 70 F |  21.11 C
 80 F |  26.67 C
 90 F |  32.22 C
100 F |  37.78 C
110 F |  43.33 C

Enable fn

Enable Functionkey

echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
echo "options hid_apple fnmode=2" | sudo tee  /etc/modprobe.d/hid_apple.conf

Ruby

../../../_images/rben.png

catch throw

def run
x = rand(10000)
  if x == 86
    puts Time.now
    throw :end
  end
end

catch(:end) do
  10000.times { run }
end

Read more...

MLAG & vPC

MLAG/CLAG & vPC

Read more...

VIM SETUP

CMAP

cmap W w !sudo tee % >/dev/null<CR>

Read more...

PTM - Prescriptive Topology Manager

Cumulus Linux - PTMD ensure actual virtual/physical links connected to the right place. A script execute at /etc/ptm.d/if-topo-pass / if-topo-failfor if each interface that encounters a flip. It uses LLDP reading and advertising interface metadata like show cdp neighbor To enable the service globally by sudo vtysh -c 'conf t' -c 'ptm-enable', show ptm status sudo vtysh -c 'show interface swp1'. Modify these dot file as needed /etc/ptmd./topologoy.dot and reload sudo systemctl force-reload ptmd.service .

Read more...

Kubernetes - NameServer Limits exceeded error

I got this error description: Using kubeadm to init kubernetes 1.15.1 falied:node “xxx” not found After reboot the Ubuntu 18.04 server , checking journalctl -b , kubectl get events and journctl -u kubelet -n10 -r

Read more...

CWM WM - openBSD

../../../_images/cwmrc.png

cwm - a lightweight and efficient window manager for X11

openBSD CWMRC guide- cwm maintains the simplest and most pleasant aesthetic. cwm is a window manager for X11 which contains many features that concen‐trate on the efficiency and transparency of window management, while maintaining the simplest and most pleasant aesthetic.

Read more...

SPACEMACS cheatsheet