Skip to content

Instantly share code, notes, and snippets.

View guybrush's full-sized avatar

Patrick guybrush

View GitHub Profile
@guybrush
guybrush / output.txt
Last active May 15, 2020 08:49
prysm node runs with `--enable-new-state-mgmt`
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
guybrush / gist:94d71088208efcd61f556f81a3bcafa7
Created March 26, 2020 07:53
prysm@0043fb stuck at slot 546595
time="2020-03-25 21:00:12" level=info msg="Peer connected" activePeers=25 direction=2 multiAddr="/ip4/34.227.131.29/tcp/30000/p2p/QmfAgkmjiZNZhr2wFN9TwaRgHouMTBT6HELyzE5A3BT2wK/p2p-circuit/p2p/16Uiu2HAm9ZActvKa52vhznm5Z6buGtAAv1oU7mmdNkPd3fg3HQ6t" peer=16Uiu2HAm9ZActvKa52vhznm5Z6buGtAAv1oU7mmdNkPd3fg3HQ6t prefix=p2p
time="2020-03-25 21:00:12" level=info msg="Peer connected" activePeers=26 direction=2 multiAddr="/ip4/34.227.131.29/tcp/30000/p2p/QmfAgkmjiZNZhr2wFN9TwaRgHouMTBT6HELyzE5A3BT2wK/p2p-circuit/p2p/16Uiu2HAm7vtg2SCkRa13yBPEkvduytKtLUC1YvVZL6qgXXXZLwMM" peer=16Uiu2HAm7vtg2SCkRa13yBPEkvduytKtLUC1YvVZL6qgXXXZLwMM prefix=p2p
time="2020-03-25 21:00:13" level=info msg="Peer connected" activePeers=28 direction=2 multiAddr="/ip4/34.227.131.29/tcp/30000/p2p/QmfAgkmjiZNZhr2wFN9TwaRgHouMTBT6HELyzE5A3BT2wK/p2p-circuit/p2p/16Uiu2HAmRPyd3nJMKD17AUC3Ejuufntbiy4qdg1oUWJZySAJiDMk" peer=16Uiu2HAmRPyd3nJMKD17AUC3Ejuufntbiy4qdg1oUWJZySAJiDMk prefix=p2p
time="2020-03-25 21:00:14" level=info msg="Peer connected" activePeers
@guybrush
guybrush / gist:cf09b0f7429c75dc5e56a721ffdbf824
Created March 19, 2020 08:28
prysm@3ec2a0 is stuck at chainHeadSlot 497410
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
func test9(addr string) {
dialOpt := grpc.WithInsecure()
conn, err := grpc.Dial(addr, dialOpt)
if err != nil {
panic(err)
}
chainClient := ethpb.NewBeaconChainClient(conn)
for _, epoch := range []uint64{50, 100, 1000, 7000} {
fmt.Printf("checking epoch %v\n", epoch)
var totalEffectiveBalance uint64
<!DOCTYPE html>
<html>
<head>
<title>apexcharts-issues</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<div id="chart"></div>
<button id="addSeries">add series</button>
<button id="rmSeries">remove series</button>
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
guybrush / face-cam.html
Last active June 28, 2018 06:05
face-detection cam-example
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>face-landmark-cam-example</title>
</head>
<body>
<style>
#container {position:relative;}
#overlay {position:absolute; top:0; left:0;}
pub fn pack_to(&mut self, chunk: &Chunk, buf: &mut Vec<u8>) {
let pow2_16 = 2u32.pow(16);
let mut last_v: u8 = chunk.data[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;
@guybrush
guybrush / keybase.md
Created August 25, 2016 05:15
keybase.md

Keybase proof

I hereby claim:

  • I am guybrush on github.
  • I am guybrush (https://keybase.io/guybrush) on keybase.
  • I have a public key ASDJmQzO9FVoTT8IWHdW1S5j54KHaNhUR5Tt3zDM5bSn7Ao

To claim this, I am signing this object:

@guybrush
guybrush / index.js
Last active May 14, 2016 01:50
requirebin sketch
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)