View mbmdmqtt2influx.conf
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"] | |
########################################################################################### |
View pv_dashboard.json
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", |
View pv_flow.json
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", |
View build.gradle
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' |
View more-without-comments.sh
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:]]*$'\''' |
View example.yaml
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 |
View example_multiprocessing.py
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
import collections | |
import multiprocessing | |
import time | |
startzeit = time.time() | |
Scientist = collections.namedtuple('Scientist', [ | |
'name', | |
'born', | |
]) |
View mkdir-tmpfs
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 | |
### BEGIN INIT INFO | |
# Provides: mkdir-tmpfs | |
# Required-Start: mountall | |
# Required-Stop: | |
# Should-Stop: | |
# X-Start-Before: | |
# Default-Start: 1 2 3 4 5 | |
# Default-Stop: |
View jquery.feedToJSON.js
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
//jQuery extension to fetch an rss feed and return it as json via YQL | |
//created by dboz@airshp.com | |
(function($) { | |
$.extend({ | |
feedToJson: function(options, callback) { | |
if ($.isFunction(options)) { | |
callback = options; | |
options = null; | |
} |
View isDateTimeValid.lua
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
function isDateTimeValid(second, minute, hour, day, month, year) | |
function check(x, xmin, xmax) | |
return x >= xmin and x <= xmax | |
end | |
return check(second, 0, 59) and check(minute, 0, 59) and check(hour, 0, 23) and | |
check(day, 1, 31) and check(month, 1, 12) and check(year, 0, 99) | |
end |
NewerOlder