Skip to content

Instantly share code, notes, and snippets.

Joris Bontje jorisbontje

Block or report user

Report or block jorisbontje

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jorisbontje / Dockerfile
Created Jul 7, 2014
cpp-ethereum Dockerfile
View Dockerfile
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -qy build-essential g++-4.8 git cmake libboost-all-dev
RUN apt-get install -qy automake unzip libgmp-dev libtool libleveldb-dev yasm libminiupnpc-dev libreadline-dev scons
RUN apt-get install -qy libncurses5-dev libcurl4-openssl-dev
#!/usr/bin/env python
# @file
# @author Wei-Ning Huang (AZ) <>
# Copyright (C) 2013 - 2014 Wei-Ning Huang (AZ) <>
# All Rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
import bitcoin as b
from pyethereum import tester, utils
class TestECRecover(object):
def test_ecrecover(h, v, r, s):
return(ecrecover(h, v, r, s))
import bitcoin as b
from pyethereum import tester, utils
class TestSHA256(object):
def func():
return(sha256([1,2], items=2))
jorisbontje /
Created Mar 17, 2015
Show exact commit of installed AlethZero and Mist on OSX
cd /Library/Caches/Homebrew/cpp-ethereum--git && git log --pretty=format:"%h" -1
set -x
# fix time drift
boot2docker ssh sudo ntpclient -s -h
DOCKER_IP=$(boot2docker ip)
View gist:879473
;; Logical / unsigned shift right in Clojure (>>> operator in Java)
;; Algorithm from
(defn logical-shift-right [n s]
(if (neg? n)
(bit-or (bit-shift-right (bit-and n 0x7fffffff) s)
(bit-shift-right 0x40000000 (dec s)))
(bit-shift-right n s)))
View gist:1053586
ERROR in (test-parse-line-op) (
Uncaught exception, not in assertion.
expected: nil
actual: cascading.flow.FlowException: step failed: (1/1) ...QDWpEp0jBsowT4Bo4U+++TI/-Tmp-/sink/0ba51806-c2a2-41bf-96cf-06bfe61b86bc"]"], with job id: job_local_0001, please see cluster logs for failure messages
at cascading.flow.FlowStepJob.blockOnJob (
cascading.flow.FlowStepJob.start ( ( (
java.util.concurrent.FutureTask$Sync.innerRun ( (
View gist:1054917
$ lein test
11/06/29 22:46:49 INFO hadoop.Hadoop18TapUtil: setting up task: 'attempt_002147483647_0000_m_000000_0' - file:/var/folders/YZ/YZO0QDWpEp0jBsowT4Bo4U+++TI/-Tmp-/tap57/4abafe2e-a136-4415-b7bc-09fd51acc301/_temporary/_attempt_002147483647_0000_m_000000_0
11/06/29 22:46:49 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
11/06/29 22:46:49 INFO hadoop.TapCollector: closing tap collector for: /var/folders/YZ/YZO0QDWpEp0jBsowT4Bo4U+++TI/-Tmp-/tap57/4abafe2e-a136-4415-b7bc-09fd51acc301/part-00000
11/06/29 22:46:49 INFO hadoop.Hadoop18TapUtil: committing task: 'attempt_002147483647_0000_m_000000_0' - file:/var/folders/YZ/YZO0QDWpEp0jBsowT4Bo4U+++TI/-Tmp-/tap57/4abafe2e-a136-4415-b7bc-09fd51acc301/_temporary/_attempt_002147483647_0000_m_000000_0
11/06/29 22:46:49 INFO hadoop.Hadoop18TapUtil: saved output of task 'attempt_002147483647_0000_m_000000_0' to file:/var/folders/YZ/YZO0QDWpEp0jBsow
View gist:1074930
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException clojure.lang.LazySeq.sval clojure.lang.LazySeq.seq clojure.lang.RT.length clojure.lang.RT.seqToArray clojure.lang.LazySeq.toArray clojure.lang.RT.toArray
core.clj:300 clojure.core/to-array
You can’t perform that action at this time.