Skip to content

Instantly share code, notes, and snippets.

View mjmacleod's full-sized avatar
💭
⌨️

Malcolm James MacLeod mjmacleod

💭
⌨️
View GitHub Profile
@mjmacleod
mjmacleod / Ubuntu_18.04.txt
Last active July 27, 2018 19:51
Build GuldenD on Ubuntu 18
# Install build requirements
# The below will install various new packages on your system
# Do not do this unless you understand the consequences, Gulden developers cannot take responsibility for other effects this may have on other software on your system
sudo apt-get install curl build-essential libtool autotools-dev autoconf pkg-config libssl-dev git
# Fresh clone of repository
git clone https://github.com/Gulden/gulden-official.git
cd gulden-official/
# If old clone of repository make sure to fetch latest
# Below sample code created in collaboration between Gulden team and multipool.us
# Available under public domain
if pow2_aux1 not in [None, '']:
aux1_bin = binascii.unhexlify(pow2_aux1)
aux1_output = halfnode.CTxOut()
aux1_output.deserialize(cStringIO.StringIO(aux1_bin))
self.vout.append(aux1_output)
if pow2_aux2 not in [None, '']:
@mjmacleod
mjmacleod / Ubuntu_14.04.5.txt
Last active July 27, 2018 14:50
Build GuldenD on Ubuntu 14.04.4
# Install build requirements
# The below will install various new packages on your system
# Do not do this unless you understand the consequences, Gulden developers cannot take responsibility for other effects this may have on other software on your system
sudo apt-get install libssl-dev libevent-dev build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python-dev libxml2-dev libxslt-dev libbz2-dev git software-properties-common curl
# The below will install gcc-7.3 on your system
# Do not do this on a system where you may need to compile other software relying on older GCC
# Do not do this unless you understand the consequences, Gulden developers cannot take responsibility for other effects this may have on other software on your system
# Only do this if you know what you are doing or are using a VM/Machine that is dedicated for the purpose of building Gulden
sudo add-apt-repository -y ppa:jonathonf/gcc
@mjmacleod
mjmacleod / Ubuntu_16.04.4.txt
Last active August 29, 2019 08:10
Build GuldenD on Ubuntu 16.04.4 (Tested on a clean 16.0.4.4 VM)
# Install build requirements
# The below will install various new packages on your system
# Do not do this unless you understand the consequences, Gulden developers cannot take responsibility for other effects this may have on other software on your system
sudo apt-get install libssl-dev libevent-dev build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python-dev libxml2-dev libxslt-dev libbz2-dev git software-properties-common curl
# The below will install gcc-7.3 on your system
# Do not do this on a system where you may need to compile other software relying on older GCC
# Do not do this unless you understand the consequences, Gulden developers cannot take responsibility for other effects this may have on other software on your system
# Only do this if you know what you are doing or are using a VM/Machine that is dedicated for the purpose of building Gulden
@mjmacleod
mjmacleod / extract_colu_privatekey
Created June 26, 2016 12:05
How to recover a bitcoin address from a colu.co account - requested by one of our users who wanted to recover money he spent on mycellium funding.
var HDWallet = require('hdwallet')
var bitcoin = require('bitcoinjs-lib')
var hdwallet = new HDWallet({
privateSeedWIF: 'privatewiffromcoluwebsitegoeshere'}
)
hdwallet.on('connect', function ()
{
hdwallet.getAddressPrivateKey("bitcoinaddresswheremoneyisgoeshere", function (err, priv)