Skip to content

Instantly share code, notes, and snippets.

t=0: | \
t=1: \ –
t=2: – /
t=3: / |
t=4: | \
## Install PyOpenCL
http://wiki.tiker.net/PyOpenCL/Installation/Mac
## Sign up for a mining pool
e.g. deepbit.net
## Install and run the python/opencl miner
opt = {foo: false}
opt.foo ?= '!'
console.log opt

Install {NodeJS,NPM}

# Ubuntu 10.4:    sudo apt-get install -y wget curl libssl-dev
# Mac with XCode: it should just work

wget http://nodejs.org/dist/node-v0.4.7.tar.gz
tar xzf node-v0.4.7.tar.gz
cd node-v0.4.7
./configure
@andrewschaaf
andrewschaaf / gist:998886
Created May 30, 2011 13:10
compiling bitcoind on ubuntu-server 10.4
sudo apt-get update
sudo apt-get install -y git-core build-essential libssl-dev libboost-all-dev libdb4.7-dev libdb4.7++-dev libgtk2.0-dev
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin/src
make -f makefile.unix clean; make -f makefile.unix USE_UPNP= bitcoind
STUFF = [
['./address', ['Address', 'address_to_hash160']]
['./base58', ['base58_encode', 'base58_decode']]
['./cryptography', ['hash256', 'hash160']]
]
for [path, keys] in STUFF
{spawn} = require 'child_process'
bin = "/Library/Frameworks/R.framework/Versions/2.13/Resources/R"
code = """
x1 <- matrix(rnorm(1e4), ncol=2)
x2 <- matrix(rnorm(1e4, mean=3, sd=1.5), ncol=2)
x <- rbind(x1,x2)
taco = 2.50
fish_taco = 3.00
burrito = 8.00
personal_subtotals =
andrew: burrito + taco
gabriel: taco + fish_taco
mark: taco + taco
sheldon: burrito

bitcoin-details

  • protocol documentation in wiki
  • sample network traffic, bitcoin messages, keys, ...

bitcoin-mobile-android

Bare-bones initial product

Main
@andrewschaaf
andrewschaaf / gist:890835
Created March 28, 2011 16:58
(incomplete)

Terms

address     RIPEMD160 hash of the node's signing key
host        IP[:port?]

uint32      32-bit unsigned integer, (TODO)-endian