Skip to content

Instantly share code, notes, and snippets.

@Rav3nPL
Rav3nPL / tecracoin.md
Last active June 21, 2022 00:49
Basics of TecraCoin console commands need for masternode update

TecraCoin console basics

QT console commands

Get new address (twice)

Get "ownerAddress" and "payoutAddress"

"ownerAddress" need to be unique - you can register only one masternode using one address.

@Rav3nPL
Rav3nPL / ban-bad-mn.sh
Created August 3, 2021 09:02
Script to run every hour to separate stuck masternodes for day
#!/bin/sh
for BADIPS in $(/root/bin/tecracoin-cli getpeerinfo|grep -a17 'height": 46999'|grep '"addr": "'|cut -d '"' -f4|cut -d ":" -f1)
do
/root/bin/tecracoin-cli setban $BADIPS add 86400
done
@Rav3nPL
Rav3nPL / bitcoin-address-fixer.py
Created August 19, 2020 11:22
Want to create proper address for BURNING COINS? There is a tool for that purpose :)
#!/usr/bin/env python
# Special thanks to Gavin Andresen from bitcointalk.org
# in reference to: https://bitcointalk.org/index.php?topic=1026.0
# Edited By/Author Josh Lee PyTis.com,
#
# Cut and remake to troll address fixer by rav3n_pl :)
#
# WARNING!
#
@Rav3nPL
Rav3nPL / update161.sh
Created April 24, 2020 16:32
TecraCoin 1.6.1 linux update script
#!/bin/bash
echo "Pobieram tecracoind 1.6.1 z github..."
wget -c -nv https://github.com/tecracoin/tecracoin/releases/download/v1.6.1/tecracoin-1.6.1-x86_64-linux-gnu.tar.gz
echo "Rozpakowuję..."
tar xzf tecracoin-1.6.1-x86_64-linux-gnu.tar.gz
cd tecracoin-1.6.1/bin
./tecracoin-cli clearbanned
sleep 1
@Rav3nPL
Rav3nPL / foldit lua help.txt
Created March 29, 2020 21:10
Fold.it LUA functions for scripting
void print([arg1,...,argN])
boolean absolutebest.AreConditionsMet()
number absolutebest.GetEnergyScore()
number absolutebest.GetExplorationMultiplier()
number absolutebest.GetScore()
number absolutebest.GetSegmentEnergyScore(integer segmentIndex)
number absolutebest.GetSegmentEnergySubscore(integer segmentIndex, string scorePart)
void absolutebest.Restore()
integer band.Add(integer segmentOrigin, integer segmentXAxis, integer segmentYAxis, number rho, number theta, number phi, [integer atomIndexOrigin], [integer atomIndexXAxis], [integer atomIndexYAxis])
integer band.AddBetweenSegments(integer segmentIndex1, integer segmentIndex2, [integer atomIndex1], [integer atomIndex2], [integer symnr2])
@Rav3nPL
Rav3nPL / bip39pl.py
Created September 11, 2018 11:30
Filtrowanie słów na potrzebę bip39 w wersji pl
litery=[]
slowa=[]
konc2 = ["wy", "ny", "ia", "ej", "cy"]
konc3 = ["ski", "cki"]
polish = {"ą":"a", "ć":"c","ó":"o", "ż":"z", "ź":"z", "ł":"l", "ń":"n", "ę":"e", "ś":"s"}
lines = [line.strip() for line in open("bip39pl.txt")]
for slowo in lines:

Keybase proof

I hereby claim:

  • I am rav3npl on github.
  • I am rav3n_pl (https://keybase.io/rav3n_pl) on keybase.
  • I have a public key ASA2rlqdFcHsfheYSYWTGQbZL7wuXLbZD92bafZs1Yaq3go

To claim this, I am signing this object:

Verifying that +rav3n_pl is my blockchain ID. https://onename.com/rav3n_pl
@Rav3nPL
Rav3nPL / idelize v1
Created February 11, 2015 12:05
Foldit Simple Idelize v1
--[[
Simple Idealize v1
Script is idealizing pair of segments then wiggle
]]--
sgc=structure.GetCount()
p=print
score=current.GetEnergyScore
for i=1,sgc-1 do
p(i.." of "..sgc.." score: "..score())
@Rav3nPL
Rav3nPL / DRW v4
Last active August 29, 2015 14:13
Foldit DRW v4
--[[
Rav3n_pl Deep Rebuild v4.x LUA V2
WARNING!
1) Script uses save slots 3-10!!!
2) Best score are always in slot 3
Description:
This is a long run re-builder. Idea is to rebuild given/found area so many times to found better position.
Each rebuild is scored on 7 different ways and saved if better.
After rebuild finishes script trying to stabilize and fuze each saved position (up to 7).