Skip to content

Instantly share code, notes, and snippets.

View 5chdn's full-sized avatar
🏴
Struggling

5chdn

🏴
Struggling
View GitHub Profile
0x00913351b06ec369E123dfd6a317DaDAAbee85E9
@5chdn
5chdn / eth_getBlockByNumber.json
Created May 17, 2017 18:59
eth_blockNumber + eth_getBlockByNumber
~ $ curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{
"jsonrpc":"2.0",
"result":"0x37fcb8",
"id":1
}
~ $ curl --data '{"method":"eth_getBlockByNumber","params":["0x37fcb8",true],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{
"jsonrpc":"2.0",
"result":{
@5chdn
5chdn / debug.log
Created November 21, 2016 18:22
geth 1.5.3 unstable debug log level 6 bad block gas used error nov-21-2016
This file has been truncated, but you can view the full file.
I1121 19:04:50.567806 accounts/addrcache.go:215] reloaded keys, cache has 1 accounts
I1121 19:04:50.568438 accounts/addrcache.go:215] reloaded keys, cache has 1 accounts
I1121 19:04:50.568538 ethdb/database.go:83] Allotted 1024MB cache and 1024 file handles to /home/user/Desktop/Ropsten/chaindata
I1121 19:04:50.568809 accounts/watch.go:74] now watching /home/user/Desktop/Ropsten/keystore
I1121 19:04:50.570117 accounts/addrcache.go:215] reloaded keys, cache has 1 accounts
I1121 19:04:50.583529 ethdb/database.go:176] closed db:/home/user/Desktop/Ropsten/chaindata
I1121 19:04:50.583966 node/node.go:175] instance: Geth/JIT/v1.5.3-unstable-2c802399/linux/go1.7.3
I1121 19:04:50.583986 ethdb/database.go:83] Allotted 1024MB cache and 1024 file handles to /home/user/Desktop/Ropsten/chaindata
I1121 19:04:50.656087 eth/backend.go:193] Protocol Versions: [63 62], Network Id: 3
I1121 19:04:50.657099 core/blockchain.go:214] Last header: #9489 [dd4d7c23…] TD=43105630927
@5chdn
5chdn / keybase.md
Created September 13, 2016 20:20
I am 5chdn.

Keybase proof

I hereby claim:

  • I am 5chdn on github.
  • I am 5chdn (https://keybase.io/5chdn) on keybase.
  • I have a public key ASDlsECsDmPzsE3_ZOSo363ssNjCkXs4uA03H344hcbhfgo

To claim this, I am signing this object:

@5chdn
5chdn / parity-stdout.log
Created June 15, 2016 06:38
Parity 1.1.0: State DB commit failed.
0 ✓ user@hoster ~ $ parity --port 30302 --pruning basic --db-path ~/.parity-basic/
2016-06-14 18:17:35 Starting Parity/v1.1.0-beta/x86_64-linux-gnu/rustc1.8.0
2016-06-14 18:17:35 Configured for Frontier/Homestead using "Ethash" engine
2016-06-14 18:17:35 Public node URL: enode://e72ad6c61d440d4686cbcb31ea0fbd9e3d9356f6d6aa6cf294d0aac4133996c9f894e369cd487390c7d36385df07ee732924ae04bea5b2341a200cb6e2a3fd7d@0.0.0.0:30302
2016-06-14 18:18:06 Using a conversion rate of Ξ1 = US$17.13 (13899313000 wei/gas)
[ #1502550 073f…074f ]---[ 0 blk/s | 0 tx/s | 0 gas/s //··· 0/0 peers, #1502550, 0+0 queued ···// mem: 0 bytes db, 6 KiB chain, 2 KiB queue, 0 bytes sync ]
[ #1502550 073f…074f ]---[ 0 blk/s | 0 tx/s | 0 gas/s //··· 0/0 peers, #1502550, 0+0 queued ···// mem: 0 bytes db, 6 KiB chain, 2 KiB queue, 0 bytes sync ]
[ #1502550 073f…074f ]---[ 0 blk/s | 0 tx/s | 0 gas/s //··· 1/1 peers, #1502550, 0+0 queued ···// mem: 0 bytes db, 6 KiB chain, 2 KiB queue, 7 KiB sync ]
[ #1502550 07
@5chdn
5chdn / bash.bashrc
Created May 27, 2016 08:20
termux bash.bashrc
PS1="\[\033[0;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[0;32m\]\342\234\223\"; else echo \"\[\033[01;31m\]\342\234\227\"; fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\u@\h'; else echo '\[\033[0;32m\]\u@\h'; fi)\[\033[0;34m\] \w \$\[\033[00m\] "
eval "`dircolors`"
alias ls='ls --color=auto'
alias ll='ls --color=auto -lshaF'
alias grep='grep --color=auto'
alias fbig="find . -size +128M -type f -printf '%s %p\n'| sort -nr | head -16"
alias rdir='mkdir -p ./$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 8)/$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 4)/'
@5chdn
5chdn / bomp.py
Created May 10, 2016 12:22
difficulty bomp impact prediction as of may, 10, 2016.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys, time
def f(diff, n):
"""
This function returns the new difficulty.
"""
period_count = (n + 1) // 100000
@5chdn
5chdn / pseudo.gltf.json
Last active April 19, 2016 12:22
pseudo gltf logic as json
{
"type":"ArrayBuffers",
"scope":"WebGL",
"vertexSize":2,
"indexSize":1,
"colorSize":4,
"worldSize":1,
"zoom":0,
"x":0,
"y":0,