Skip to content

Instantly share code, notes, and snippets.

guybrush / output.txt
Last active May 15, 2020
prysm node runs with `--enable-new-state-mgmt`
View output.txt
nodeVersion : Prysm/Git commit: 34c02ffd346462f387f3d99eab798cf81f845c8e. Built at: 2020-05-14 03:26:24+00:00
headEpoch : 6156
finalizedEpoch: 6154
justifiedEpoch: 6155
panic: rpc error: code = Internal desc = Could not paginate results: page start 28500 >= list 28500
guybrush / gist:94d71088208efcd61f556f81a3bcafa7
Created Mar 26, 2020
prysm@0043fb stuck at slot 546595
View gist:94d71088208efcd61f556f81a3bcafa7
time="2020-03-25 21:00:12" level=info msg="Peer connected" activePeers=25 direction=2 multiAddr="/ip4/" peer=16Uiu2HAm9ZActvKa52vhznm5Z6buGtAAv1oU7mmdNkPd3fg3HQ6t prefix=p2p
time="2020-03-25 21:00:12" level=info msg="Peer connected" activePeers=26 direction=2 multiAddr="/ip4/" peer=16Uiu2HAm7vtg2SCkRa13yBPEkvduytKtLUC1YvVZL6qgXXXZLwMM prefix=p2p
time="2020-03-25 21:00:13" level=info msg="Peer connected" activePeers=28 direction=2 multiAddr="/ip4/" peer=16Uiu2HAmRPyd3nJMKD17AUC3Ejuufntbiy4qdg1oUWJZySAJiDMk prefix=p2p
time="2020-03-25 21:00:14" level=info msg="Peer connected" activePeers
guybrush / gist:cf09b0f7429c75dc5e56a721ffdbf824
Created Mar 19, 2020
prysm@3ec2a0 is stuck at chainHeadSlot 497410
View gist:cf09b0f7429c75dc5e56a721ffdbf824
time="2020-03-19 02:00:00" level=info msg="Requesting parent block" currentSlot=497364 parentRoot=200fb91eced2 prefix=sync
time="2020-03-19 02:00:02" level=info msg="Executing state transition on block" prefix=blockchain root=0x70cb5806... slot=497400
time="2020-03-19 02:00:02" level=debug msg="Requesting block for pending attestation" attCount=578 attSlot=497369 blockRoot=56ffcdfbbaef currentSlot=497400 prefix=sync
time="2020-03-19 02:00:02" level=debug msg="Requesting block for pending attestation" attCount=536 attSlot=497386 blockRoot=683f50939a6a currentSlot=497400 prefix=sync
time="2020-03-19 02:00:04" level=info msg="Requesting parent block" currentSlot=497364 parentRoot=200fb91eced2 prefix=sync
time="2020-03-19 02:00:05" level=info msg="Finished applying state transition" attestations=32 attesterSlashings=0 deposits=0 prefix=blockchain slot=497400
time="2020-03-19 02:00:05" level=debug msg="Received block processed event" headRoot=0x70cb580659010a16369ff9a9b81f4cd2dae89a0d9f8d12b985a0176ac59adbba prefi
View gist:635195e8fc8e453874a1782c4e3548ac
func test9(addr string) {
dialOpt := grpc.WithInsecure()
conn, err := grpc.Dial(addr, dialOpt)
if err != nil {
chainClient := ethpb.NewBeaconChainClient(conn)
for _, epoch := range []uint64{50, 100, 1000, 7000} {
fmt.Printf("checking epoch %v\n", epoch)
var totalEffectiveBalance uint64
View index.html
<!DOCTYPE html>
<meta name="viewport" content="width=device-width,initial-scale=1">
<div id="chart"></div>
<button id="addSeries">add series</button>
<button id="rmSeries">remove series</button>
View Dockerfile
FROM ubuntu:16.04 as builder
RUN set -ex && \
apt-get update && \
apt-get --no-install-recommends --yes install \
ca-certificates \
cmake \
g++ \
make \
pkg-config \
guybrush / face-cam.html
Last active Jun 28, 2018
face-detection cam-example
View face-cam.html
<!DOCTYPE html>
<meta charset="utf-8">
#container {position:relative;}
#overlay {position:absolute; top:0; left:0;}
View gist:bb012ce3f7f4ae4090a3243bad455065
pub fn pack_to(&mut self, chunk: &Chunk, buf: &mut Vec<u8>) {
let pow2_16 = 2u32.pow(16);
let mut last_v: u8 =[0];
let mut i = 1;
let mut r = 1;
let mut v: u8 = 0;
let mut i_8 = 0;
let mut i_16 = 0;
let mut i_32 = 0;
let mut i_16 = 0;

Keybase proof

I hereby claim:

  • I am guybrush on github.
  • I am guybrush ( on keybase.
  • I have a public key ASDJmQzO9FVoTT8IWHdW1S5j54KHaNhUR5Tt3zDM5bSn7Ao

To claim this, I am signing this object:

guybrush / index.js
Last active May 14, 2016
requirebin sketch
View index.js
const mat4 = require('gl-mat4')
const bunny = require('bunny')
const fit = require('canvas-fit')
const normals = require('angle-normals')
const canvas = document.body.appendChild(document.createElement('canvas'))
const regl = require('regl')(canvas)
const camera = require('canvas-orbit-camera')(canvas)
window.addEventListener('resize', fit(canvas), false)
You can’t perform that action at this time.