Skip to content

Instantly share code, notes, and snippets.

View javahippie's full-sized avatar

Tim Zöller javahippie

View GitHub Profile
0xb3adb09F0ebcD060432B8ec42B9CF0455Be0B216
@javahippie
javahippie / Dockerfile
Last active November 17, 2018 11:04
Dockerfile for an Ethereum bootnode
FROM ubuntu:xenial
MAINTAINER Tim Zöller <mail@tim-zoeller.de>
RUN apt-get update \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR "/opt"
ARG BINARY="geth-alltools-linux-amd64-1.8.1-1e67410e.tar.gz"
@javahippie
javahippie / Dockerfile
Created March 1, 2018 20:23
Dockerfile for a mining Ethereum Node
FROM ubuntu:xenial
MAINTAINER Tim Zöller <mail@tim-zoeller.de>
RUN apt-get update \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR "/opt"
ARG BINARY="geth-alltools-linux-amd64-1.8.1-1e67410e.tar.gz"
@javahippie
javahippie / genesis.json
Created March 1, 2018 20:28
Genesis file for a private Ethereum Network with the Clique consensus protocol
{
"config": {
"chainId": 500,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"clique": {
version: "3"
services:
geth-bootnode:
hostname: geth-bootnode
environment:
- nodekeyhex=08f0e1dee5c1b4645f3331a566009e41a4514b6cd28656d63d0449ecf812812b #Needs to be fix, so that the miners know the resulting enode id
build:
context: ./bootnode
ports:
- 30301:30301/udp
@javahippie
javahippie / Dockerfile
Created March 2, 2018 17:08
Dockerfile for the Eth net intelligence API
FROM ubuntu:xenial
MAINTAINER Tim Zöller <mail@tim-zoeller.de>
RUN apt-get update \
&& apt-get install -y wget nodejs npm ntp git\
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/nodejs /usr/bin/node
@javahippie
javahippie / Dockerfile
Created March 2, 2018 17:13
Dockerfile for the eth-netstats frontend
FROM ubuntu:xenial
MAINTAINER Tim Zöller <mail@tim-zoeller.de>
RUN apt-get update \
&& apt-get install -y wget nodejs npm ntp git\
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/nodejs /usr/bin/node
@javahippie
javahippie / app.json
Created March 2, 2018 17:14
Configuration file for the Eth Status Monitor
[
{
"name" : "geth-dev-0",
"cwd" : ".",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"merge_logs" : false,
"watch" : false,
"exec_interpreter" : "node",
"exec_mode" : "fork_mode",
@javahippie
javahippie / odometer.sol
Last active May 8, 2019 09:04
Smart contract for a car registration and odometer
pragma solidity ^0.4.21;
/**
* Contract to store the mileage of a car
*/
contract Odometer {
event Creation(
address indexed from,
string indexed vin
@javahippie
javahippie / connect_web3.js
Last active March 19, 2018 18:28
Create a new Web3 Instance via RPC
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));