- Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install prerequisites
brew install git hg
brew install osxfuse
(see Mac issues to troubleshoot common errors)- Install Go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
####################################################################### | |
# Install base dependencies (required) | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get install -y git build-essential | |
# Install Go binaries | |
GOVERSION="1.7.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install base dependencies | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y git mercurial build-essential software-properties-common pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev | |
# Install Qt 5.4.1 packages (only required for Mist) | |
sudo add-apt-repository ppa:beineri/opt-qt541-trusty -y | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install dependencies | |
sudo add-apt-repository ppa:beineri/opt-qt54-trusty -y | |
sudo apt-get update | |
sudo apt-get install -y git mercurial build-essential software-properties-common golang pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev mesa-common-dev libglu1-mesa-dev qt54quickcontrols qt54webengine | |
# set environment variables | |
echo 'export PKG_CONFIG_PATH=/opt/qt54/lib/pkgconfig' >> ~/.bashrc | |
echo 'export LD_LIBRARY_PATH=/opt/qt54/lib' >> ~/.bashrc | |
echo 'export GOPATH=$HOME/go' >> ~/.bashrc | |
source ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set environment variables | |
export PATH=$HOME/golang/bin:$PATH | |
export GOPATH=$HOME/go | |
mkdir -p $GOPATH | |
# install base dependencies | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y git mercurial build-essential software-properties-common pkg-config libgmp3-dev libreadline6-dev libpcre3-dev libpcre++-dev mesa-common-dev libglu1-mesa-dev |
- pybtctool random_key # generate private key DO NOT SHARE
- pybtctool privtopub # generate pubkey
- pybtctool mk_multisig_script # generate multisig script
- pybtctool scriptaddr # generate multisig address
- pybtctool preparetx | pybtctool -s setup_coinvault_tx # create transaction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init: | |
contract.storage["Mitch"] = 0xf4b7cc7faa866a2275972317598e7d936cfc9adc | |
contract.storage["Jack"] = 0x52c5535efae9bd86e04c627aa5c716a392358c5e | |
code: | |
BTC = msg.data[0] | |
if (msg.sender == contract.storage["Mitch"] or msg.sender == contract.storage["Jack"]): | |
if block.timestamp > 1449187200: | |
if BTC > 2000: | |
send(contract.storage["Mitch"], contract.balance, (tx.gas - 100)) | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying myself: My Bitcoin username is +taylorg. https://onename.io/taylorg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GLOBSTAR = '**/*'; | |
var basePaths = { | |
src: 'src/', | |
dest: 'build/' | |
}; | |
var typeMap = { | |
// templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
es = require('event-stream'); | |
var plugins = require('gulp-load-plugins')({ | |
camelize: true | |
}); | |
var config = require('./gulpfile.config'); |