Skip to content

Instantly share code, notes, and snippets.

View nickodell's full-sized avatar

Nick ODell nickodell

  • Fort Collins, CO
View GitHub Profile
@nickodell
nickodell / setup.sh
Last active August 29, 2015 14:06
Conf VPS
#!/bin/sh
# Run using
# wget -O - https://gist.githubusercontent.com/nickodell/9a6f556861a953e5d6b2/raw/setup.sh | sh
apt-get update
apt-get install -y mosh screen
git clone https://github.com/nickodell/build_bitcoin.git
@nickodell
nickodell / conf-vps.sh
Created September 6, 2014 01:06
Remote Conf VPS
#!/bin/sh
ssh root@$1 "wget -O - https://gist.githubusercontent.com/nickodell/9a6f556861a953e5d6b2/raw/setup.sh | sh"
@nickodell
nickodell / mine.py
Last active August 29, 2015 14:13 — forked from shirriff/mine.py
Enumerate hashes - thanks to Ken Shirriff
#!/usr/bin/python
import hashlib, struct
# Mine genesis block
ver = 1
prev_block = "0000000000000000000000000000000000000000000000000000000000000000"
mrkl_root = "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
time_ = 1231006505
bits = 0x1d00ffff
@nickodell
nickodell / setup.sh
Created February 1, 2015 04:07
Setup Pidora
#!/bin/bash
#nmcli dev wifi con "$SSID" password "$password"
yum update -y
yum install -y net-tools traceroute git mosh screen make automake gcc gcc-c++ kernel-devel
## I used the following program to benchmark ECDSA multiply vs. ECDSA
## multiply-then-add.
##
## Originally from http://bitcoin.stackexchange.com/a/25039
##
## Sample output (where I get my 2% figure from.)
## =======================================================================
## 7.90899729849
## 8.05856181495
## pubkey 0x50863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b2352L 0x2cd470243453a299fa9e77237716103abc11a1df38855ed6f2ee187e9c582ba6L
@nickodell
nickodell / scaling-bitcoin-solutions
Last active August 29, 2015 14:23
Bitcoin Scaling
Your post advocates a
( ) sidechains ( ) block-size increase ( ) anti-spam ( ) lightning-network ( ) off-chain
approach to scaling Bitcoin. Your idea will not work. Here is why it won't work. (One or more of the following may apply to your particular idea, and it may have other flaws.)
( ) There is no explanation of how Bitcoins on the sidechain will get back onto the mainchain.
( ) This will make it more difficult to run a full node, when node counts are already dropping.
( ) The idea of "spam transactions" is not well defined, and every proposed filtering method impedes legitimate use cases.
( ) Your approach allows unrelated nodes to defraud each other, and there is no arbitration process other than "complain on reddit."
@nickodell
nickodell / bitcoin-dev_SPV_mining.txt
Last active August 29, 2015 14:26
#bitcoin-dev SPV mining discussion
02:26 petertodd no, really, like, all the big pools do this
02:26 CodeShark do what? SPV?
02:27 petertodd CodeShark: yeah, they use getblocktemplate and what not to find
when other pools make blocks, and quickly build on top of them - actually SPV is putting
it strongly, they don't really do any authentication
[log edited for brevity]
@nickodell
nickodell / gist:3120282
Created July 16, 2012 03:31
Tree against EE3
This file has been truncated, but you can view the full file.
Folder PATH listing
Volume serial number is 8A1F-8EC3
C:.
| build.properties
| build.xml
| log
| mcp62.zip
| tree
|
@nickodell
nickodell / gist:3120283
Created July 16, 2012 03:32
Failed compile log
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Buildfile: C:\Users\Nick\Desktop\eclipse\workspace\EEmod\build.xml
recompile:
[exec] == MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
[exec] # found jad, ff, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle config
[exec] == Recompiling client ==
[exec] > Cleaning bin
[exec] > Recompiling
[exec] '"C:\Program Files\Java\jdk1.7.0_05\bin\javac" -Xlint:-options -deprecation -g -source 1.6 -target 1....' failed : 1
@nickodell
nickodell / gist:3120334
Created July 16, 2012 03:42
build.properties
dir.developement=C:\Users\Nick\Desktop\eclipse\workspace\EEmod\