Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafał Kiełbus Rav3nPL

View GitHub Profile
@Rav3nPL
Rav3nPL / ban-bad-mn.sh
Created Aug 3, 2021
Script to run every hour to separate stuck masternodes for day
View ban-bad-mn.sh
#!/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 / tecracoin.md
Last active Jul 26, 2021
Basics of TecraCoin console commands need for masternode update
View tecracoin.md

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 / bitcoin-address-fixer.py
Created Aug 19, 2020
Want to create proper address for BURNING COINS? There is a tool for that purpose :)
View bitcoin-address-fixer.py
#!/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 Apr 24, 2020
TecraCoin 1.6.1 linux update script
View update161.sh
#!/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 Mar 29, 2020
Fold.it LUA functions for scripting
View foldit lua help.txt
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 Sep 11, 2018
Filtrowanie słów na potrzebę bip39 w wersji pl
View bip39pl.py
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:
View keybase.md

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:

View onename verify
Verifying that +rav3n_pl is my blockchain ID. https://onename.com/rav3n_pl
@Rav3nPL
Rav3nPL / idelize v1
Created Feb 11, 2015
Foldit Simple Idelize v1
View 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 Aug 29, 2015
Foldit DRW v4
View 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).