Skip to content

Instantly share code, notes, and snippets.

@UdjinM6
UdjinM6 / bitwalletrecover.py
Last active June 14, 2022 14:50 — forked from msm595/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
@UdjinM6
UdjinM6 / TwoOfThree.sh
Last active August 29, 2015 14:10 — forked from gavinandresen/TwoOfThree.sh
Raw transaction API example for 2-of-3 multisig
# Raw transaction API example work-through
# Send coins to a 2-of-3 multisig, then spend them.
#
# For this example, I'm using these three keypairs (public/private)
# 0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86 / 5JaTXbAUmfPYZFRwrYaALK48fN6sFJp4rHqq2QSXs8ucfpE4yQU
# 04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a986818a7cb624532f062c1d1f8722084861c5c3291ccffef4ec6874 / 5Jb7fCeh1Wtm4yBBg3q3XbT6B525i17kVhy3vMC9AqfR6FH2qGk
# 048d2455d2403e08708fc1f556002f1b6cd83f992d085097f9974ab08a28838f07896fbab08f39495e15fa6fad6edbfb1e754e35fa1c7844c41f322a1863d46213 / 5JFjmGo5Fww9p8gvx48qBYDJNAzR9pmH5S389axMtDyPT8ddqmw
# First: combine the three keys into a multisig address:
./bitcoind createmultisig 2 '["0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86","04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a9
@UdjinM6
UdjinM6 / remove_merged.sh
Last active August 29, 2015 14:14 — forked from schacon/gist:942899
Remove local branches that were merged
# remove local
git branch --merged |
grep -v '>' |
grep -v master |
xargs -L1 |
cut -d"/" -f2- |
xargs git branch -d
# remove remote
git branch -r --merged |
@UdjinM6
UdjinM6 / node-x11-hash-algo.js
Created March 22, 2015 18:49
node-x11-hash-algo example
var x11 = require('node-x11-hash-algo');
String.prototype.hexEncode = function(){
var hex, i;
var result = "";
for (i=0; i<this.length; i++) {
hex = this.charCodeAt(i).toString(16);
result += ("000"+hex).slice(-4);
}

Keybase proof

I hereby claim:

  • I am UdjinM6 on github.
  • I am udjinm6 (https://keybase.io/udjinm6) on keybase.
  • I have a public key whose fingerprint is 3F5D 48C9 F002 93CD 365A 3A98 8359 2BD1 400D 58D9

To claim this, I am signing this object:

@UdjinM6
UdjinM6 / MN3.py
Last active April 15, 2016 11:35
Fixed: dashninja.pl API usage; Changed: switched to explorer.dash.org to fetch balances
from Tkinter import *
import urllib2
from datetime import datetime
import smtplib
import time
import os
import ConfigParser as con
from appdirs import AppDirs
import json
@UdjinM6
UdjinM6 / index.html
Last active August 29, 2015 14:26 — forked from anonymous/index.html
Dash ticker // source http://jsbin.com/werasikolo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dash ticker</title>
<style id="jsbin-css">
div {
width: 200px;
}
</style>
@UdjinM6
UdjinM6 / bitcoin_spv_wallet_overview.md
Created February 21, 2016 16:59 — forked from TOMOAKI12345/bitcoin_spv_wallet_overview.md
Bitcoin SPV Wallet Flow Overview

#!/bin/sh
# Compile Dash Core on FreeBSD
#
# Tested with Dash Core v0.17.0.0-rc2 on FreeBSD 12.2
# --- Options ---
WORKDIR=`pwd`
GITREPO="https://github.com/dashpay/dash"
GITDIR="dash"
@UdjinM6
UdjinM6 / electrumx.sh
Last active April 16, 2021 19:42
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,