Skip to content

Instantly share code, notes, and snippets.

View stefantalpalaru's full-sized avatar

Ștefan Talpalaru stefantalpalaru

View GitHub Profile
@stefantalpalaru
stefantalpalaru / nimbus3-short.svg
Created March 6, 2019 01:46
Nimbus stats - 5s per pixel
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefantalpalaru
stefantalpalaru / snippent.log
Created March 25, 2019 17:41
nim-eth test failure
DBG 2019-03-25 18:30:35+01:00 Sending envelopes tid=23205 amount=0
DBG 2019-03-25 18:30:35+01:00 Sending envelopes tid=23205 amount=0
DBG 2019-03-25 18:30:35+01:00 Bonding failed, didn't receive pong from topics="discovery" tid=23205 n=Node[176.99.6.205:33347]
DBG 2019-03-25 18:30:35+01:00 Sending envelopes tid=23205 amount=0
DBG 2019-03-25 18:30:35+01:00 Sending envelopes tid=23205 amount=0
DBG 2019-03-25 18:30:35+01:00 Sending envelopes tid=23205 amount=0
DBG 2019-03-25 18:30:35+01:00 Sending envelopes tid=23205 amount=0
DBG 2019-03-25 18:30:35+01:00 Bonding failed, didn't receive pong from topics="discovery" tid=23205 n=Node[116.203.98.51:30303]
DBG 2019-03-25 18:30:35+01:00 Bonding failed, didn't receive pong from topics="discovery" tid=23205 n=Node[68.183.80.228:50000]
DBG 2019-03-25 18:30:35+01:00 Bonding failed, didn't receive pong from topics="di
@stefantalpalaru
stefantalpalaru / log.txt
Created March 25, 2019 20:27
rm -rf nimcache; ../../env.sh nim c -r tests/p2p/test_shh_connect
DBG 2019-03-25 21:26:40+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:40+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:40+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:40+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:40+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:40+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:40+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:40+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:41+01:00 Sending envelopes tid=27857 amount=0
DBG 2019-03-25 21:26:41+01:00 Sending envelopes tid=27857 amount=0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/python3
import sys, re, matplotlib.pyplot as plt, matplotlib.dates as mpdates, datetime
timestamps = []
heap_total = []
alloc_diff = []
re_timestamp = re.compile(r'^===(\d+)')
re_heap = re.compile(r'^\[Heap\] total number of bytes: (\d+)')
INF 2019-04-02 16:04:21+02:00 New testnet genesis data received. Starting with a fresh database. tid=4123
INF 2019-04-02 16:04:23+02:00 Importing snapshot file tid=4123 path=/home/stefan/.cache/nimbus/BeaconNode/testnet0/genesis.json
NOT 2019-04-02 16:04:23+02:00 Creating new database from snapshot tid=4123 blockRoot=BDE619FD fork="(previous_version: [0, 0, 0, 0], current_version: [0, 0, 0, 0], epoch: 536870912)" stateRoot=432EE624 validators=400
INF 2019-04-02 16:04:23+02:00 Connecting to bootstrap nodes tid=4123 bootstrapNodes=@[enode://e7b5e57da97b753bcb8a3dbb46f66e7b8ef53bcc700451a5835406cbe758be6377f02e9bffbc65f870842f5cbac6ada45d41c610341ee0bcb122f77601f2d806@188.166.38.238:9000]
INF 2019-04-02 16:04:23+02:00 RLPx listener up tid=4123 self=enode://b6ab1021f043da7851a6bd9392e5580bdfd44c3b0d20b294c543003ca19073bde85a46abae3f9781c231c0ba66775f137994e95b67cd94ad0645a050f8953085@127.0.0.1:9000
DBG 2019-04-02 16:04:26+02:00 Bonding failed, didn'
@stefantalpalaru
stefantalpalaru / miniupnpc.nim
Created April 9, 2019 23:15
miniupnpc.nim - for IRC
# Copyright (c) 2019 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
# * MIT license ([LICENSE-MIT](LICENSE-MIT))
# at your option.
# This file may not be copied, modified, or distributed except according to
# those terms.
################################
# headers and library location #
@stefantalpalaru
stefantalpalaru / gdb.txt
Created April 24, 2019 18:52
strupnperror() disassembly in GDB, after using sockets without calling WSAStartup()
(gdb) p strupnperror
$1 = {const char *(int)} 0x422c30 <strupnperror>
(gdb) disas strupnperror
Dump of assembler code for function strupnperror:
0x0000000000422c30 <+0>: push %rbp
0x0000000000422c31 <+1>: mov %rsp,%rbp
0x0000000000422c34 <+4>: sub $0x10,%rsp
0x0000000000422c38 <+8>: mov %ecx,0x10(%rbp)
0x0000000000422c3b <+11>: movq $0x0,-0x8(%rbp)
0x0000000000422c43 <+19>: cmpl $0x2c0,0x10(%rbp)
@stefantalpalaru
stefantalpalaru / gdb.txt
Created April 24, 2019 19:30
(gdb) disas upnpError_MjEGT9ac9a4KVedMMzZX8a5g
(gdb) disas upnpError_MjEGT9ac9a4KVedMMzZX8a5g
Dump of assembler code for function upnpError_MjEGT9ac9a4KVedMMzZX8a5g:
0x00000000005788f0 <+0>: push %rbx
0x00000000005788f1 <+1>: sub $0x20,%rsp
0x00000000005788f5 <+5>: mov %rcx,%rbx
0x00000000005788f8 <+8>: callq *%rcx
0x00000000005788fa <+10>: mov 0x1e3a98(%rip),%edx # 0x75c398 <UPNPCOMMAND_HTTP_ERROR_4dcWoyFctzTff7yadmKVjA>
0x0000000000578900 <+16>: cmp %edx,(%rax)
0x0000000000578902 <+18>: je 0x578920 <upnpError_MjEGT9ac9a4KVedMMzZX8a5g+48>
0x0000000000578904 <+20>: callq *%rbx