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
set -x
# fix time drift
boot2docker ssh sudo ntpclient -s -h
DOCKER_IP=$(boot2docker ip)
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
import bitcoin as b
from pyethereum import tester, utils
class TestSHA256(object):
def func():
return(sha256([1,2], items=2))
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))
#!/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
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
jorisbontje / gist:5803625
Created Jun 18, 2013
hadoop default xml
View gist:5803625
View ansible_R.yml
- name: Install R
yum: name=$item state=installed
environment: $proxy_env
- R
- packages
- name: Copy R package installer script
View gist:5056544
0) Download avro-tools jar file from
1) Extract Avro schema using avro-tools.jar
java -jar avro-tools*.jar getschema file.avro > file.avsc
2) Upload Avro schema to hdfs
hadoop fs -cp file.avsc /use/training/file.avsc
View WebHDFS.txt
curl -O
sudo python
curl -O
sudo python
sudo pip install webhdfs
cp /usr/lib/python2.6/site-packages/webhdfs/ .
You can’t perform that action at this time.