BASH vs. JSON :)

curl -s “https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations.json?includeTimeseries=true&includeCurrentMeasurement=true”| jq -j –tab ‘.[] | select( ( .timeseries[0].currentMeasurement.stateMnwMhw==”low” or .timeseries[0].currentMeasurement.stateMnwMhw==”high” ) and .timeseries[0].shortname==”W” ) | [ .number, .water.longname, .longname, .latitude, .longitude, .timeseries[0].currentMeasurement.stateMnwMhw, .timeseries[0].currentMeasurement.trend, .timeseries[0].currentMeasurement.value ] | “\(.[0])|\(.[1])|\(.[2])|\(.[3])|\(.[4])|\(.[5])|\(.[6])|\(.[7])\n”‘) Advertisements

OpenBSD // rDNS // nsd // classless reverse PTR

NET: 1.2.3.16/28 the nsd.conf: zone: name: “3.2.1.in-addr.arpa” zonefile: master/3.2.1.reverse zone: name: “16/28.3.2.1.in-addr.arpa” zonefile: master/16_28.3.2.1.reverse the 3.2.1.reverse: $ORIGIN 3.2.1.in-addr.arpa. ; default zone domain $TTL 86400 ; default time to live @ IN SOA ns.domain.com. admin.domain.com. ( 2016010203 ; serial number 28800 ; Refresh 7200 ; Retry 864000 ; Expire 86400 ; Min TTL ) 16/28 NS […]