Skip to content

Instantly share code, notes, and snippets.

View veox's full-sized avatar
💭
Being skeptical of status feature.

Noel Maersk veox

💭
Being skeptical of status feature.
View GitHub Profile
@veox
veox / pip-freeze.txt
Created May 18, 2018 12:18
Output of `pip freeze` for py-evm issue X
aiohttp==2.3.10
alabaster==0.7.10
apipkg==1.4
argh==0.26.2
asn1crypto==0.24.0
async-lru==0.1.0
async-timeout==3.0.0
attrdict==2.0.0
attrs==18.1.0
Babel==2.5.3
@veox
veox / ZZ-out
Last active April 28, 2018 18:21
grep --with-filename -v -E "^>>>" *
bitcoin-.2.2.txt:bright_peace(bytes32,bytes) 0x0000006e
bitcoin-.2.2.txt:suspect_radar(bytes32,string) 0x0000001f
bitcoin-.2.2.txt:romance_weasel(bytes,uint256) 0x00000017
bitcoin-.2.2.txt:word_sentence(bytes,uint64) 0x0000008e
bitcoin-.2.2.txt:pole_world(bytes,uint8) 0x000000e0
bitcoin-.2.2.txt:derive_trial(bytes,bytes) 0x000000f3
bitcoin-.2.2.txt:lonely_ancient(bytes,bytes) 0x000000ac
bitcoin-.2.2.txt:style_galaxy(string,uint8) 0x000000eb
bitcoin-.2.2.txt:treat_void(string,bytes32) 0x000000c5
bitcoin-.2.2.txt:stand_critic(string,bytes) 0x0000005b
@veox
veox / go-ethereum-issue-16539.log
Last active April 20, 2018 12:21
geth v1.8.4 backtrace for lock-up issue
<snipped>
INFO [04-20|14:08:57] Imported new block headers count=2048 elapsed=2.360s number=4491555 hash=aac133…27768c ignored=0
INFO [04-20|14:08:57] Imported new state entries count=668 elapsed=3.488ms processed=15815425 pending=12816 retry=1 duplicate=370 unexpected=2717
INFO [04-20|14:08:58] Imported new block receipts count=1092 elapsed=4.694s number=4454159 hash=6d095b…080972 size=66.32mB ignored=0
INFO [04-20|14:09:01] Imported new block receipts count=906 elapsed=2.389s number=4455065 hash=323cd0…8d7f89 size=53.82mB ignored=0
INFO [04-20|14:09:02] Imported new block receipts count=562 elapsed=1.477s number=4455627 hash=718c7e…1b1697 size=37.23mB ignored=0
WARN [04-20|14:09:03] Stalling state sync, dropping peer peer=880255d886005916
INFO [04-20|14:09:05] Imported new state entries count=1393 elapsed=16.473ms processed=15816818 pending=13115 retry=2 duplicate=370 unexpected=2717
INFO [04-20|1
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/token/ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
@veox
veox / erc20.abi.json
Created January 21, 2018 14:59
ERC20 ABI in JSON format
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
@veox
veox / Greeter.hex.disasm
Created December 9, 2017 13:17
Greeter.lll annotated disassembly
60138061007560403961133755605b8061001a6000396000f30063a413686260e060020a600035041415601a57600435611337555b63cfae321760e060020a600035041415603a576113375460005260206000f35b63ef690cc060e060020a600035041415605a576113375460005260206000f35b48656c6c6f2c206c6f76656c79212e2e203c33
; ==============================================================================
000000: PUSH1 0x13 ; (to-hex 19) - initial-greeting length (+terminator?..)
000002: DUP1
000003: PUSH2 0x0075 ; ??? push location of initial-greeting during deployment
000006: PUSH1 0x40 ; the 0x40 specified in `(lit 0x40 <bla>)`
000008: CODECOPY
000009: PUSH2 0x1337 ; storage location of greeting during runtime
@veox
veox / geth.service
Last active April 29, 2022 17:41
go-ethereum systemd config
[Unit]
Description=go-ethereum node
After=network.target
[Service]
Type=simple
User=geth
Group=geth
## ===== initial sync: no light peers, please =====
ExecStart=/usr/bin/geth --nousb --datadir /home/geth/.ethereum --cache 2048 --txpool.pricelimit 99999999999 --txpool.globalslots 1024
INFO:extendedapi.TODO:about to query_private()
DEBUG:urllib3.connectionpool:https://api.kraken.com:443 "POST /0/private/AddOrder HTTP/1.1" 502 None
WARNING:extendedapi.TODO:query_private() failed:502 Server Error: Bad Gateway for url: https://api.kraken.com/0/private/AddOrder
DEBUG:extendedapi.TODO:sleeping...
INFO:extendedapi.TODO:about to session.send()
DEBUG:urllib3.connectionpool:https://api.kraken.com:443 "POST /0/private/AddOrder HTTP/1.1" 200 None
DEBUG:extendedapi.TODO:session.send() done
@veox
veox / keybase.md
Created October 31, 2017 15:45
keybase.md

Keybase proof

I hereby claim:

  • I am veox on github.
  • I am veox (https://keybase.io/veox) on keybase.
  • I have a public key whose fingerprint is 1298 BC0A 9B0D BEEA 3BDD CBA6 2D3D A6CD 74AB 3D37

To claim this, I am signing this object:

@veox
veox / 0-add-order.py
Created October 18, 2017 17:00
Kraken request scheduling / 502 glitching
#!/usr/bin/env ipython
# This file is NOT YET part of krakenex.
# Licensed under the Simplified BSD license. See `examples/LICENSE.txt`.
# Place a simple buy/sell limit order.
from decimal import Decimal as D
import pprint
from time import time