Skip to content

Instantly share code, notes, and snippets.

View hbs's full-sized avatar
💭
Working on Warp 10™

Mathias Herberts hbs

💭
Working on Warp 10™
View GitHub Profile
May 17 19:01:18 prod-6 kernel: igb 0000:03:00.1: eth1: igb: eth1 NIC Link is Down
May 17 19:01:40 prod-6 kernel: igb 0000:03:00.1: eth1: igb: eth1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
May 17 19:01:43 prod-6 kernel: igb 0000:03:00.1: eth1: igb: eth1 NIC Link is Down
May 17 19:02:12 prod-6 kernel: igb 0000:03:00.1: eth1: igb: eth1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX
May 17 19:02:17 prod-6 kernel: igb 0000:03:00.1: eth1: igb: eth1 NIC Link is Down
May 17 19:02:17 prod-6 kernel: igb 0000:03:00.0: eth0: igb: eth0 NIC Link is Down
May 17 19:02:21 prod-6 kernel: igb 0000:03:00.0: eth0: igb: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
May 17 19:02:25 prod-6 kernel: igb 0000:03:00.1: eth1: igb: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
May 17 19:02:27 prod-6 kernel: igb 0000:03:00.1: eth1: igb: eth1 NIC Link is Down
May 17 19:02:38 prod-6 kernel: igb 0000:03:00.0: eth0: igb: eth0 NIC Link is Down
// Load Tmeas, Pmeas, CO2meas
// Assuming read token is in $RTOKEN
// Measurments span $duration time units
// Store the current time
NOW 'now' STORE
[ $RTOKEN 'Tmeas' {} $now $duration ] FETCH 'Tmeas' STORE
[ $RTOKEN 'Pmeas' {} $now $duration ] FETCH 'Pmeas' STORE
[ $RTOKEN 'CO2meas' {} $now $duration ] FETCH 'CO2meas' STORE
@hbs
hbs / poissonpilote-api.mc2
Created July 31, 2016 06:49
WarpScript to convert PoissonPilote /api/path JSON to Geo Time Series
JSON->
<%
NEWGTS { 'boat' 5 ROLL } RELABEL 'poissonpilote.pos' RENAME
SWAP
<% DUP 'datetime' GET TOTIMESTAMP SWAP DUP 'point' GET DUP 'x' GET SWAP 'y' GET ROT 'depth' GET TOLONG 1000 * T ADDVALUE %> FOREACH
%> FOREACH
### Keybase proof
I hereby claim:
* I am hbs on github.
* I am herberts (https://keybase.io/herberts) on keybase.
* I have a public key whose fingerprint is 5940 C711 6735 6396 5A01 F0CB 855C 2803 B880 0A77
To claim this, I am signing this object: