Skip to content

Instantly share code, notes, and snippets.

@thephez
thephez / dash_budget_payout_dates.sh
Last active November 4, 2021 19:26 — forked from strophy/dash_budget_payout_dates.sh
estimate future dash budget payout dates
#!/bin/bash
LAST_SB_DATE="2021-10-27T20:33:32+0000"
LAST_SB_HEIGHT=1561904
NEXT_SB_HEIGHT=1578520
SB_BLOCK_INTERVAL=16616
MONTHS_TO_PROJECT=24
D0=$(TZ=UTC date --date="$(date --date="$LAST_SB_DATE")");
for block in `seq $NEXT_SB_HEIGHT $SB_BLOCK_INTERVAL $(($LAST_SB_HEIGHT + ($SB_BLOCK_INTERVAL*$MONTHS_TO_PROJECT)))`;
do DD=$(TZ=UTC date --date="$(date --date="$D0") +727 hours +5 minutes +2 seconds");
@thephez
thephez / electrumx.sh
Created March 31, 2021 20:27 — forked from UdjinM6/electrumx.sh
ElectrumX setup for Dash
#!/bin/sh
# ElectrumX setup for Dash
# NOTE: with this setup ElectrumX will be running under root (to simplify things),
# modify it accordingly if you want to run it under some specific user
# NOTE: this script itself is not enough, you'll have to edit a couple of files manually,
# pls read comments below
# python3.7 is requried for ElectrumX,
@thephez
thephez / bitwalletrecover.py
Created October 20, 2020 18:04 — forked from UdjinM6/bitwalletrecover.py
bitwalletrecover.py - recover compressed private keys from your bitcoin/litecoin/darkcoin wallet. Requires python3, pycoin (https://pypi.python.org/pypi/pycoin), and base58 (https://pypi.python.org/pypi/base58).
## bitwalletrecover.py - recover private keys from your darkcoin wallet
## (this version was not tested with bitcoin/litecoin).
## Requires python3, pycoin (https://pypi.python.org/pypi/pycoin),
## and base58 (https://pypi.python.org/pypi/base58).
##
## Starting with Python 3.4, pip is included by default with the Python binary
## installers. To install pip for older versions 3.x:
##
## sudo apt-get install python3-setuptools
## sudo easy_install3 pip
@thephez
thephez / dash.conf
Created June 14, 2019 16:07 — forked from nmarley/dash.conf
Docker example using "official" dashpay/dashd image
# network
testnet=0
listen=1
daemon=0 # leave this set to 0 for Docker
logtimestamps=1
maxconnections=256
debug=0
printtoconsole=1
# optional indices (required for Insight)
@thephez
thephez / findingnemo.py
Created January 31, 2019 18:11 — forked from chaeplin/findingnemo.py
find darkcoin address of stratum pool
#!/usr/bin/python
import subprocess
import os
import simplejson
import datetime
import sys
import math
import re
from time import time
#!/bin/bash
echo "Start Export Process"
echo "Log into Keybase..."
keybase login
echo "Exporting your PGP keys..."
keybase pgp export -o keybase.public.key
keybase pgp export -s -o keybase.private.key
@thephez
thephez / hashdeep.py
Created December 15, 2015 17:46 — forked from techtonik/hashdeep.py
Python - hashdeep.py - recursive hash of directory tree files in hashdeep format
"""
Build recursive hash of files in directory tree in hashdeep format.
Hashdeep format description:
http://md5deep.sourceforge.net/start-hashdeep.html
hashdeep.py differences from original hashdeep:
- if called without arguments, automatically starts to build
@thephez
thephez / MakeOpenVPN.sh
Last active September 12, 2015 22:04 — forked from laurenorsini/MakeOpenVPN.sh
MakeOpenVPN.sh by Eric Jodoin
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"