November 19, 2020

Grafana Toml to environment variables

The following snippet creates environment variables from your Grafana toml. #!/bin/sh # Script writes to env file and shows JSON lines on stdout if [ -z "$2" ]; then echo "USAGE: $0 ./inputfile.toml ./output.env" fi TF=/tmp/temp-grafana-conf.toml echo "[default]" > $TF cat $1|sed 's #.*$ ' >> $TF > $2 while read l; do if `echo $l|grep -q '^#'`; then continue fi if `echo $l|grep -q '^\[.*\]$'`; then PREFIX=`echo $l|tr -d '\[\]'` continue fi if `echo $l|grep -q '='`; then NAME="GF_$PREFIX" NAME=$NAME"_`echo $l|awk '{print $1}'`" NAME=`echo $NAME|tr a-z\. Read more

December 28, 2019

Home automation through device detection using MAC address

There are multiple ways of controlling home automation. This blog introduces another sensor to the network; detecting if someone is home through testing if the MAC address is present on the L2 network. Ping to MAC address The basis for our script will be: sudo su apt install -y arp-scan arp-scan --destaddr=04:b1:67:aa:bb:cc \ --localnet \ --interface="`iw dev|grep -o wlan[0-9]|head -1`" \ | grep '1 responded' The last command tests if the hardware address of the interface (e. Read more

November 27, 2019

An introduction to coding: chat bot for MS teams

This guide creates a script that monitors the current open chat and responds with a message if a new message has been received. In our previous introduction to coding we looked at a structural approach to gradually become a programmer. But that guide required bash, which takes some initial setup on Windows (using WSL). This post only requires the Chrome browser and access to Step 00 preparation Open teams. Read more

September 30, 2019

An introduction to coding: converting excel (csv) to markdown table

So you know your way around your OS (operating system) a bit, you use your terminal/CLI (command line interface) more and more and want to start coding? This post explores how you can get on your way becoming a programmer during your normal desk job. CLI We encourage you to use a Unix CLI more and more, on Windows I would recommend WSL, on OSx, Linux and Chromebooks it comes pre-installed. Read more

September 28, 2019

DIY NAS Network Attached Storage from USB stick

This post shows how to use a USB stick/HDD in a Linux device as NAS or Network Attached Storage using Samba, the protocol available on Chromebooks and Windows devices. NAS servers allow the IT guy in the house/office to manage the backups for others. What we need is an USB stick/HDD and a device to insert it into. My router has the option, but I’ll show how to use a SoC (Raspberry pi) instead, since it’s a bit more complicated. Read more

August 31, 2019

How much allowance should our kid get?

When we believe and live in a society that embraces the concept meritocracy, we can look at the allowance of children in a different way. This post explains a model for determining the allowance based on performance, preparing kids for real life. Accumulation We first observe that there are two distinct ways of getting money in a welfare state that are comprehensible for children. Sponsored money for being a homo sapien: bijstandsuitkering (guaranteed allowance) Earned money through labor: salary We also note that concepts like tax systems, compounded interest, inflation etc. Read more

August 13, 2019

My guide to a new phone or laptop

This post details the hardware choices I make. For me, fungibility is an important aspect. I take pride in backing up my data and be able to wipe my phone and laptop everytime I cross a border of a country that wants to make a backup of my data. This way of working pushes me in the cloud and less on local devices, which in turn can be cheaper and more efficient (thus better battery life). Read more

August 10, 2019

TMobile thuis router in bridge mode krijgen

Deze pagina geeft een stappen plan om je TMobile thuis DrayTek 2132F modem router te updaten; om admin te worden. Dit is nodig om vervolgens de router in bridge mode te zetten. Huidige firmware is en DrayTek bied momenteel aan. Prerequisites Eisen aan abbonement geen telefonie Voorkennis (T)FTP VLAN Indien ook TV abbo.: ICMP snooping? NAT, waarom dit gewenst is voor cheap IoT en waarom mogelijk ongewenst voor een secure NAS of cam IPv4 vs. Read more

August 1, 2019

Development in DMZ

Corporate environments usually have more (advanced) (network) security measures in place. For developers this means that getting any random package from the internet into the environment (enclave) where the sensitive data lives is impossible, which is a good thing. Let’s agree that security is important and that efforts of it should always be admired, since we cannot get enough people to be security minded. Developers freedom compromized Development is the creation of something new, otherwise you are just building. Read more

July 20, 2019

Rethinking education

For this post we focus on higher education / college / university. Historically Current education comes from a time when: knowledge transfer/sharing was expensive (pre-internet era) knowledge changed slower (pace of innovation has increased) people lived their whole life in the same area Let’s address these topics! Ease of knowledge transfer Before the invention of books … let’s not go there. When everything was done in books, there was a lot of value in aggregated clusters of knowledge, which one could consume (learn). Read more

Blog by