Skip to content

Instantly share code, notes, and snippets.

View F483's full-sized avatar

Fabian Barkhau F483

View GitHub Profile
https://play.google.com/redeem?code=TWW7ZBC0YWKN4LUK4MX7M0U
https://play.google.com/redeem?code=2FW4GCAGNMRDY6TRTCK2J0X
https://play.google.com/redeem?code=U7FP965NQP9Q7MXLZ35ZEQ6
https://play.google.com/redeem?code=6JZKSPC7XUR6CZXVCJGM5PC
https://play.google.com/redeem?code=KBRNYMVPS8J6GK72S1YMHJ5
https://play.google.com/redeem?code=F0TBH26R1NNVL5ZT3PSZ97W
https://play.google.com/redeem?code=EB5ZFZT0XRUBLS8TAMJ4YLQ
https://play.google.com/redeem?code=DMYHGQR2Z8NG4JYS0ESV219
https://play.google.com/redeem?code=39A28F6UUJT5LWQCQ8L90AU
https://play.google.com/redeem?code=DDQJGTWGA5U88164F966AYL
@F483
F483 / promocodes.txt
Created February 22, 2018 12:12
tanz.love promocodes
https://play.google.com/redeem?code=K21K5C2Z9YBS9XZ7JC252TG
https://play.google.com/redeem?code=E1BCZ6091J0T19R2ZS8PZNA
https://play.google.com/redeem?code=CDRH8BD70TQJXBJ2786QLYH
https://play.google.com/redeem?code=TCRLFYYQ76B9D742S2FMKSC
https://play.google.com/redeem?code=W029EF0T7ES8LMVULGQ4PP6
https://play.google.com/redeem?code=Z78YXB6ZZG2RGHW50JJNH9R
https://play.google.com/redeem?code=NS497CLLRH0PSN87V53EU2U
https://play.google.com/redeem?code=8LATH03VD8KU7JC98RT1T5W
https://play.google.com/redeem?code=Y0DWRPKGD6HX91LAEZ98CUF
https://play.google.com/redeem?code=5HHS65LAFTHT1F741GWKD7C
@F483
F483 / main.lua
Created November 6, 2017 17:36
Slow rendering of tilemap
tiles_path = "tiles.png"
tiles_horizontal = 4
tiles_vertical = 4
tiles_img = nil
tiles_quads = {}
tiles_size = 8
map_width = 100
map_height = 75
map_tiles = nil
@F483
F483 / picopayments-overview.md
Last active February 28, 2018 16:02
Counterparty picopayments overwiew

Counterparty picopayments overwiew

Stack overview


+----------------------+----------------------+
| picopayments-hub     | picopayments-cli     |
+----------------------+----------------------+
| counterparty-lib |
@F483
F483 / encryptedio.py
Created May 23, 2016 11:43
openssl compatible encryption example
from hashlib import md5
from Crypto import Random
from Crypto.Cipher import AES
def _chr(i):
if isinstance(i, bytes):
return i # FIXME why is it mixed in python 2 ?
return chr(i).encode('utf-8')
@F483
F483 / ecies_example.py
Created May 23, 2016 11:28
ecies example
#!/usr/bin/python
import pyelliptic
import time
data = b"x" * (1024 ** 2 * 100) # 100M
# TODO curve25519 (openssl and tor default)
# curve = "sect283r1" # default
@F483
F483 / gen_nodeid.py
Last active May 23, 2016 10:29
Generate nodeid
import os
import pycoin
from pycoin.key.BIP32Node import BIP32Node
def generatewif(netcode='BTC'):
return BIP32Node.from_master_secret(os.urandom(256), netcode=netcode).wif()
def wif2pubkey(wif):
@F483
F483 / recover_wif_from_wallet.py
Created May 21, 2016 10:44
Recover first wif from hwif wallet.
#!python
# coding: utf-8
# requires btctxstore `pip install btctxstore`
import sys
from btctxstore import BtcTxStore
HELP_TEXT = """
Usage: {0} <wallet>
""".format(sys.argv[0])
@F483
F483 / install.sh
Last active April 15, 2016 09:07 — forked from rubensayshi/install.sh
Counterparty Custom Install
apt-get -y install runit software-properties-common python-software-properties git-core wget \
python3 python3-setuptools python3-dev python3-pip build-essential python3-sphinx python-virtualenv libsqlite3-dev python3-apsw python3-zmq
cd /where/your/projects/code/is
sudo echo "" # so that you won't get prompts during `python setup.py install_serpent` which messes up copy pasting this stuff
git clone git@github.com:CounterpartyXCP/counterparty-lib.git
cd counterparty-lib
git checkout develop