Skip to content

Instantly share code, notes, and snippets.

Fabian Barkhau F483

Block or report user

Report or block F483

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View alectricstudios_tanz.love_promocodes.txt
F483 / promocodes.txt
Created Feb 22, 2018 promocodes
View promocodes.txt
F483 / main.lua
Created Nov 6, 2017
Slow rendering of tilemap
View main.lua
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 /
Last active Feb 28, 2018
Counterparty picopayments overwiew

Counterparty picopayments overwiew

Stack overview

| picopayments-hub     | picopayments-cli     |
| counterparty-lib                            |
F483 /
Created May 23, 2016
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')
import pyelliptic
import time
data = b"x" * (1024 ** 2 * 100) # 100M
# TODO curve25519 (openssl and tor default)
# curve = "sect283r1" # default
F483 /
Last active May 23, 2016
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 /
Created May 21, 2016
Recover first wif from hwif wallet.
# coding: utf-8
# requires btctxstore `pip install btctxstore`
import sys
from btctxstore import BtcTxStore
Usage: {0} <wallet>
F483 /
Last active Apr 15, 2016 — forked from rubensayshi/
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 install_serpent` which messes up copy pasting this stuff
git clone
cd counterparty-lib
git checkout develop
You can’t perform that action at this time.