Skip to content

Instantly share code, notes, and snippets.

View tpmccallum's full-sized avatar

Timothy McCallum tpmccallum

View GitHub Profile
<polymer-element name="my-element-wikipedia">
<template>
<style>h2 { color: black; } </style>
<button on-click="{{buttonClick}}"><h2>Hello from my prototyped element!</h2></button>
</template>
<polymer-element name="my-element-wikipedia">
<template>
<style>h2 { color: black; } </style>
<button on-click="{{buttonClick}}"><h2>Hello from my prototyped element!</h2></button>
</template>
<polymer-element name="my-element-wikipedia">
<template>
<style>h2 { color: black; } </style>
<button on-click="{{buttonClick}}"><h2>Hello from my prototyped element!</h2></button>
</template>
@tpmccallum
tpmccallum / mining_casper_ffg_testnet_eth_with_ubuntu_16_04.txt
Last active July 11, 2018 05:02
The alpha Casper the Friendly Finality Gadget (FFG) testnet allows both PoW and PoS. These are instructions on how to mine testnet ETH using Ubuntu 16.04 LTS
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install curl
sudo apt-get install make
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
sudo shutdown -r now
sudo apt-get install git
git clone https://github.com/karlfloersch/docker-pyeth-dev.git
Prerequisite: mining setup instructions at https://gist.github.com/tpmccallum/8ffc14ce5bf131e366d985412257499d
sudo apt-get update
sudo apt-get upgrade
#Using docker ps -q because the -q flag just returns the ID which you will need later. Running docker ps (without the flag) verbosely returns everything.
docker ps -q
#Start the python interpreter using the Docker Id from the previous command as an argument
docker exec -it dockerContainerIdFromPreviousDockerPsCommandOutput python
#Then at the python prompt type
from web3 import Web3, HTTPProvider
web3 = Web3(HTTPProvider('http://localhost:8545'))
@tpmccallum
tpmccallum / epn1.md
Last active January 31, 2018 07:20
ethereum_private_network_housekeeping_go_git_geth

Housekeeping

To prepare the system type the following.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y build-essential

Installing Go

@tpmccallum
tpmccallum / epn_1.md
Last active February 2, 2018 00:48
epn_1
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y build-essential
sudo apt-get install git
cd ~
git clone https://github.com/ethereum/go-ethereum.git
@tpmccallum
tpmccallum / epn_2.md
Last active February 1, 2018 22:55
epn_2
cd ~
wget https://dl.google.com/go/go1.9.3.linux-amd64.tar.gz
@tpmccallum
tpmccallum / epn_3.md
Last active February 1, 2018 23:03
epn_3
sha256sum go1.9.3.linux-amd64.tar.gz
@tpmccallum
tpmccallum / epn_4.md
Last active February 1, 2018 23:07
epn_4
sudo tar -C /usr/local -xzf go1.9.3.linux-amd64.tar.gz