This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- The MIT License (MIT) | |
-- Copyright (c) 2018,2020 Thomas Mohaupt <thomas.mohaupt@gmail.com> | |
-- year: 2-digit (means 20xx) or 4-digit (>= 2000) | |
function datetime2epoch(second, minute, hour, day, month, year) | |
local mi2sec = 60 | |
local h2sec = 60 * mi2sec | |
local d2sec = 24 * h2sec | |
-- month to second, without leap year | |
local m2sec = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Tested with | |
-- NodeMCU 3.0.0.0 built on nodemcu-build.com provided by frightanic.com | |
-- branch: release | |
-- commit: d4ae3c364bd8ae3ded8b77d35745b7f07879f5f9 | |
-- release: | |
-- release DTS: 202105102018 | |
-- SSL: false | |
-- build type: float | |
-- LFS: 0x0 bytes total capacity | |
-- modules: bit,file,gpio,net,node,spi,tmr,uart,ucg,wifi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Tested with | |
-- NodeMCU 3.0.0.0 built on nodemcu-build.com provided by frightanic.com | |
-- branch: release | |
-- commit: d4ae3c364bd8ae3ded8b77d35745b7f07879f5f9 | |
-- release: | |
-- release DTS: 202105102018 | |
-- SSL: false | |
-- build type: float | |
-- LFS: 0x0 bytes total capacity | |
-- modules: bit,file,gpio,net,node,spi,tmr,uart,ucg,wifi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# send messages with database-tag = mbmd to influxdb mbmd | |
[[outputs.influxdb]] | |
urls = ["http://influxdb.host:8086"] | |
database = "mbmd" | |
tagexclude = ["influxdb_database", "src", "measurement"] | |
[outputs.influxdb.tagpass] | |
influxdb_database = ["mbmd"] | |
########################################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "8fac7d4.a8d298", | |
"type": "tab", | |
"label": "PV", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "83528e7.dc0fc7", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'java' | |
} | |
repositories { | |
jcenter() | |
mavenLocal() | |
} | |
def cucumberVersion = '5.5.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
SDIR=${DIR}/src | |
DRIVER_SRC=`ls ${DIR}/hybrid*.tar.gz 2> /dev/null` | |
CONTAINER="thomo/centos7-dev:latest" | |
MYUID=`id -u` | |
MYGID=`id -g` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias mwc='grep -v -e '\''^;'\'' -e '\''^[[:space:]]*#'\'' -e '\''^[[:space:]]*$'\''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
tasks: | |
- name: create file | |
copy: src=./demo dest=/tmp/demo | |
# not working as expected | |
- name: update xxxx | |
lineinfile: | |
dest: /tmp/demo |
NewerOlder