I hereby claim:
- I am thelazier on github.
- I am thelazier (https://keybase.io/thelazier) on keybase.
- I have a public key whose fingerprint is 550D 524A BE74 655C 67BB C035 0933 AB55 8425 3057
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| MNADDR=$1 | |
| dash-cli masternodelist full | grep " ENABLED" | sed -e 's/[}|{]//' -e 's/"//g' -e 's/,//g' -e 's/^ *//g'| grep -v ^$ |tr -s ' '|awk '"echo `date +%s`-\(`dash-cli masternode count enabled`\*2.6\*60\)|bc"|getline minsigtime;($8!=0||$6>minsigtime)'| sort -n -k 8 |grep -n $MNADDR |sed -e 's/:/ /g'|cut -d ' ' -f 1,6 |awk '{"dash-cli masternode count enabled"|getline mncount; print $2" "$1"/"mncount}' |
| #!/bin/bash | |
| # Need following config in dash.conf | |
| ## server=1 | |
| ## rpcuser=AnythingYoulike | |
| ## rpcpassword=AnyPassword | |
| # | |
| # Open your wallet and unlock before run the script :) | |
| # | |
| # Suggestion for Loop `while true; do ./sum_mined_jq.sh || break; done` | |
| # |
| 2017-01-07 04:35:02,781 ElectrumX server starting | |
| 2017-01-07 04:35:02,782 switching current directory to /home/electrum/electrumx-dash-db/mainnet | |
| 2017-01-07 04:35:02,823 using leveldb for DB backend | |
| 2017-01-07 04:35:02,834 created new database | |
| 2017-01-07 04:35:02,834 creating metadata diretcory | |
| 2017-01-07 04:35:02,834 software version: ElectrumX 0.10.0 | |
| 2017-01-07 04:35:02,834 DB version: 5 | |
| 2017-01-07 04:35:02,834 coin: Dash | |
| 2017-01-07 04:35:02,835 network: mainnet | |
| 2017-01-07 04:35:02,835 height: -1 |
| # Building zcoin daemon on alpine linux | |
| apk --update add coreutils build-base git tar perl autoconf automake libtool linux-headers patch wget openssl-dev libevent-dev pkgconfig bzip2-dev unzip && rm -r /var/cache/apk/* | |
| mkdir /depend | |
| # DB 4.8 | |
| cd /depend && wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz \ | |
| && tar -zxvf db-4.8.30.NC.tar.gz \ | |
| && cd db-4.8.30.NC/build_unix \ | |
| && ../dist/configure --prefix=/usr --enable-cxx --disable-shared --disable-replication \ |
| #!/bin/bash | |
| # Need following config in dash.conf | |
| ## server=1 | |
| ## rpcuser=AnythingYoulike | |
| ## rpcpassword=AnyPassword | |
| # | |
| # Open your wallet and unlock before run the script :) | |
| # | |
| # Suggestion for Loop `while true; do ./sum_mined.sh || break; done` | |
| # |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Require Bash version >=4 | |
| # Require jq hexdump | |
| # Set Dash Client command | |
| DASH_CLI=/home/dashtest/bin/dash-cli | |
| # Set Max connection per IP | |
| MAX_CONN_IP=5 |
| #Locking Masternode Tx with dash-cli | |
| dash-cli masternode outputs |grep '"' |cut -d '"' -f 2,4|sed "s/\"/ /g" |awk '{print "dash-cli lockunspent false \"[{\\\"txid\\\":\\\"" $1 "\\\",\\\"vout\\\":" $2 "}]\"" }' |/bin/sh | |
| #create mnbudget vote cmd from show using jq (deprecated) | |
| CURR_BLOCK=$(dash-cli getinfo |jq '.blocks') | |
| dash-cli mnbudget show |jq '.|keys[] as $name| {"\($name)"}[] |select(.Amount > 0)|select(.BlockEnd > '$CURR_BLOCK')| "dash-cli mnbudget vote \($name) \(.URL) \(.TotalPaymentCount) \(.BlockStart) \(.PaymentAddress) \(.Amount/100000000) no"' |cut -d'"' -f 2 | |
| #show mnbudget vote status | |
| dash-cli mnbudget show |jq '.|keys[] as $name| {"\($name)"}[] | "\($name) Y:\(.Yeas) N:\(.Nays) A:\(.Abstains) \(.Ratio*100)%" ' |