Skip to content

Instantly share code, notes, and snippets.

View paulhauner's full-sized avatar

Paul Hauner paulhauner

View GitHub Profile
@paulhauner
paulhauner / gist:2791c44cac848b23dbb95a30c4f09453
Created April 18, 2023 02:27
retag-lighthouse-docker-images.fish
# This fish script will re-tag all the $SRC_TAG_PREFIX images with the
# $DEST_TAG_PREFIX and push those images to Dockerhub.
#
# This script is specifically designed for the github.com/sigp/lighthouse
# repos, as they exist in April 2023.
#
# Be sure to double check the images after you've pushed them, especially the
# mainfests. I ran this script twice because I kept pulling outdated manifests,
# I'm not sure if that's a caching issue or if the script needs to be run
# twice. Running it twice shouldn't hurt.
@paulhauner
paulhauner / fork_choice_test.yaml
Created January 16, 2020 02:52
Fork Choice Test
---
finalized_block_slot: 0
justified_epoch: 1
finalized_epoch: 1
finalized_root: 0x0000000000000000000000000000000000000000000000000000000000000000
operations:
- FindHead:
justified_epoch: 1
justified_root: 0x0000000000000000000000000000000000000000000000000000000000000000
finalized_epoch: 1
@paulhauner
paulhauner / build.rs
Created September 19, 2019 01:00
Eth1 build script
use reqwest::Response;
use std::env;
use std::fs::File;
use std::path::PathBuf;
const GITHUB_RAW: &str = "https://raw.githubusercontent.com";
const SPEC_REPO: &str = "ethereum/eth2.0-specs";
const SPEC_TAG: &str = "v0.8.3";
const ABI_FILE: &str = "validator_registration.json";
@paulhauner
paulhauner / purity_walkthrough.md
Last active June 5, 2018 01:42
Casper LLL Purity Checker Walk-through

Casper Purity Checker LLL Walk-through

WARNING: These are notes and are not complete, they may contain errors. They certainly contain awkward language (sorry).

These are my notes from reading the Casper LLL Purity Checker currently being reviewed here: ethereum/casper#143

Specifically, the casper/contracts/purity_checker.py file.

Preamble -- Contract creation

@paulhauner
paulhauner / keybase.md
Last active January 18, 2023 23:01
keybase.md

Keybase proof

I hereby claim:

  • I am paulhauner on github.
  • I am paulhauner (https://keybase.io/paulhauner) on keybase.
  • I have a public key ASBqOL_AyhIaG5w_Dw3jIvofi8sXGvBE-9W-KFgNlqmXCAo

To claim this, I am signing this object:

@paulhauner
paulhauner / Poloniex First Trades
Created November 14, 2016 05:11
Poloniex First Trade Times
# first_trades is a dict of the date of the first trade of each market on Poloniex.
# Values are specified as unix timestamps in whatever timezone the Poloniex API assumes.
# If you run into timezone issues, my system is GMT+10 (with daylight saving) when creating this.
#
# This data is very useful if you're attempting to pull the history of Poloniex's trades.
first_trades = dict(
BTC_BCN=1400591380.0,
USDT_NXT=1424337662.0,
BTC_RBY=1404410437.0,