Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am buzzkillb on github.
  • I am buzzkillb (https://keybase.io/buzzkillb) on keybase.
  • I have a public key ASDtfi3aDIzV4x64ptmWwPLflU-0bOni42XqzCqDDkRZRAo

To claim this, I am signing this object:

@buzzkillb
buzzkillb / restart-daemon.sh
Created October 21, 2019 01:54
restart many denarius daemons
#!/bin/bash
#using denarius.daemon snap
#stop and start 01-09
for ((i=1; i<10; i++))
do
echo "denarius_0$i.daemon stop"
denarius_0$i.daemon stop
sleep 10
echo "denarius_0$i.daemon"
denarius_0$i.daemon
@buzzkillb
buzzkillb / save-ram.sh
Created October 26, 2019 18:18
run multiple daemons and alternate them
#!/bin/bash
#chmod +x save-ram.sh
#screen -S saveram
#./save-ram.sh
#start forever loop
while true; do
#stop 10-35 and start 75-100
for ((i=10; i<36; i++))

#compile xmrrig on Manjaro
sudo pacman -S base-devel cmake libuv libmicrohttpd openssl hwloc libutil-linux
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build && cd $_
cmake ..
make

Keybase proof

I hereby claim:

  • I am buzzkillb on github.
  • I am buzzkillb (https://keybase.io/buzzkillb) on keybase.
  • I have a public key ASApuJAz2FSJcZDcZN9sBVO34UcZglmHtY938m6KVDawawo

To claim this, I am signing this object:

#!/bin/bash
#Collateral Staker
#copy alias to alias.txt
awk '{if(NR==1) print $1}' fortunastake.conf > alias.txt
#copy first line, columns 1, 2, 3 of fortunastake.conf to temporary file
awk '{if(NR==1) print $1, $2, $3 }' fortunastake.conf > staking1.txt
#remove first line from fortunastake.conf
sed -i.bak -e '1d' fortunastake.conf
#stop denarius daemon
#!/bin/bash
#Collateral Staker
#debug.log location
debuglog=~/snap/denarius/common/.denarius/debug.log
#copy alias to alias.txt
awk '{if(NR==1) print $1}' fortunastake.conf > alias.txt
#copy first line, columns 1, 2, 3 of fortunastake.conf to temporary file
awk '{if(NR==1) print $1, $2, $3 }' fortunastake.conf > staking1.txt
#!/bin/sh
#sudo apt install multitail
#wget tail-denarius.sh
#chmod +x tail-denarius.sh
#./tail-denarius.sh
#replace debug directory with your own locations
multitail --label "ddd " -ci green -e "SetBestChain" ~/snap/denarius/common/.denarius/debug.log \
--label "D01 " -ci green -e "SetBestChain" -I ~/snap/denarius_1/common/.denarius/debug.log \
--label "D02 " -ci green -e "SetBestChain" -I ~/snap/denarius_2/common/.denarius/debug.log \
#!/bin/bash
#for Denarius cryptocurrency - denarius.io, just change denariusd to your favorite coin daemon
#change all denariusd to denarius.daemon for snap daemon use
#bitcointalk thread - https://bitcointalk.org/index.php?topic=5238747
#create rawa.txt with txid and vouts for all inputs, then remove all extra spaces and newlines to rawb.txt
#rawa.txt put txid and vout
#rawb.txt remove extra space and put createtransaction begin text
#rawc.txt remove last comma and add rest of rawtx info creating the full raw transaction line
#
#txfee - fee you want to use
#!/bin/bash
#denarius.io - Denarius Cryptocurrency [FortunaStake]
#checks every 30 minutes if a fortunastake has "notfound" status and restarts if found inactive, leave running in the background or in screen.
#chmod +x monitorfs.sh
#to run ./monitorfs.sh
#change password to your walletpassword
#adjust daemon wallet binary to your setup
#snap -> denarius.daemon
#compiled -> denariusd
#