Skip to content

Instantly share code, notes, and snippets.

@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"
@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

Keybase proof

I hereby claim:

  • I am thephez on github.
  • I am thephez (https://keybase.io/thephez) on keybase.
  • I have a public key ASBT0VBE_gd8zag0PSOJu-lbDRccIrdilzWvsXZ-gib1YQo

To claim this, I am signing this object:

#!/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 / dash_getmyaddresses.sh
Created September 20, 2017 15:28
Get a list of my empty Dash addresses
#!/bin/bash
# Get list of addresses and store in array (may include send addresses not belonging to this wallet)
mapfile -t ADDRESS_LIST < <(dash-cli -rpcuser=username -rpcpassword=password listreceivedbyaddress 0 true | jq -r '.[].address')
# Check each address to see if it is mine and output only those that are
for addr in "${ADDRESS_LIST[@]}"
do
MINE=$(dash-cli -rpcuser=username -rpcpassword=password validateaddress "$addr" | jq .ismine)
@thephez
thephez / blockchain_user_register.sh
Created October 11, 2018 16:13
Register a Dash blockchain user
CLI_PATH="$HOME/dashevo/dash/src"
CONF_FILE="$HOME/dashcore_evo/devnet-mydevnet.conf"
RUN_CLI="$CLI_PATH/dash-cli -conf=$CONF_FILE"
USERNAME="myuser0001"
printf "dash-cli in: $CLI_PATH\n"
printf "Dash conf file: $CONF_FILE\n\n"
# Returns the value contained in "$prop" of "$json"
@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
@thephez
thephez / core_diff.sh
Created March 21, 2019 16:27
Check for P2P, RPC, and CLI changes in Dash Core
#!/bin/bash
# P2P changes
git diff master develop src/protocol.cpp
# Spork changes
git diff master develop src/spork.h
# CLI changes
git diff master develop src/init.cpp | grep 'strUsage'
@thephez
thephez / dash-p2p-version-exchange.py
Created May 29, 2019 13:49
Dash P2P connection example
# From https://bitcoin.stackexchange.com/a/48395
import struct
import socket
import time
import hashlib
import binascii
# Dash Testnet
magic = "cee2caff"
@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)