Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
⌨️

Malcolm James MacLeod mjmacleod

💭
⌨️
View GitHub Profile
@mjmacleod
mjmacleod / Ubuntu_18.04.txt
Last active Jul 27, 2018
Build GuldenD on Ubuntu 18
View Ubuntu_18.04.txt
# 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
View slush0_stratum-mining
# 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 Jul 27, 2018
Build GuldenD on Ubuntu 14.04.4
View Ubuntu_14.04.5.txt
# 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 Aug 29, 2019
Build GuldenD on Ubuntu 16.04.4 (Tested on a clean 16.0.4.4 VM)
View Ubuntu_16.04.4.txt
# 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 Jun 26, 2016
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.
View extract_colu_privatekey
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)