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
# Standard HTTP-to-gRPC status code mappings | |
# Ref: https://github.com/grpc/grpc/blob/master/doc/http-grpc-status-mapping.md | |
# | |
error_page 400 = @grpc_internal; | |
error_page 401 = @grpc_unauthenticated; | |
error_page 403 = @grpc_permission_denied; | |
error_page 404 = @grpc_unimplemented; | |
error_page 429 = @grpc_unavailable; | |
error_page 502 = @grpc_unavailable; | |
error_page 503 = @grpc_unavailable; |
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/bash | |
full_url="http://your_graphana_host_here" | |
name="dashboards" | |
create_slug () { | |
echo "$1" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z | |
} | |
process_db_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
$ mn status | |
{ | |
"hostname": "", # hostname | |
"uptime": "", # uptime | |
"distro": "", # cat /etc/issue | |
"user": "", # whoami | |
"loadAverage": "", # uptime | |
"diskFree": "", # df -h / | |
"memFree": "", # free -h | |
"cpus": , # lscpu | grep 'CPU(s)' -m 1 |
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/bash | |
n=0 | |
echo "Reading csv from stdin..." 1>&2 | |
while IFS=,$'\r' read a b;do | |
echo "$a - $b" 1>&2 | |
ADDRESS[$n]="$a" | |
DESC[$n]="$b" | |
((n++)) | |
done |
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/bash | |
height=$(dash-cli getblockcount) | |
for ((block=332320;block<height;block+=16616));do | |
blockhash=$(dash-cli getblockhash $block) | |
txhash=$(dash-cli getblock $blockhash|jq -r '.tx[0]') | |
time=$(dash-cli getblock $blockhash|jq -r '.time') | |
time=$(TZ=GMT date -d @$time +"%Y%m%d%H%M") | |
amount=$(dash-cli getrawtransaction $txhash 1|jq '.vout|map(.valueSat)|add') |
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
#@data/values | |
--- | |
network: testnet |
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
Vote YES to send strophy some more tDASH to continue testing 0.13.0 features, like this proposal! This will also result in improved upgrade documentation, probably. |
NewerOlder