Skip to content

Instantly share code, notes, and snippets.

View taproot.sh
#!/bin/bash
# based on https://gist.github.com/mutatrum/264cfa84af5fc3dc0b107bcb3ba10893
BLOCKCHAININFO=`bitcoin-cli getblockchaininfo`
TAPROOT=`echo $BLOCKCHAININFO | jq .softforks.taproot.bip9`
SINCE=`echo $TAPROOT | jq .since`
ELAPSED=`echo $TAPROOT | jq .statistics.elapsed`
for BLOCK in $(seq $SINCE $((SINCE + ELAPSED - 1))); do
HASH=`bitcoin-cli getblockhash $BLOCK`
HEADER=`bitcoin-cli getblockheader $HASH`
VERSION=`echo $HEADER | jq .version`
View blockstack
Verifying my Blockstack ID is secured with the address 16XP13DeBoDQTwLTL8Rem2RqWWzdeYsq3b https://explorer.blockstack.org/address/16XP13DeBoDQTwLTL8Rem2RqWWzdeYsq3b
@narcelio
narcelio / redgray.py
Created Nov 1, 2017
Viacoin second image decription
View redgray.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# (c) Copyright 2017 by Narcelio Filho <narcelio@gmail.com>
from PIL import Image
from PIL import ImageOps
import numpy
View list_wit.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2017 by Narcelio Filho <narcelio@gmail.com>
# pip install git+https://github.com/petertodd/python-bitcoinlib
import bitcoin.rpc
import socket
View mw.py
#!/usr/bin/env python3
# pip3 install python-bitcoinlib
import bitcoin.rpc
import re
node = bitcoin.rpc.Proxy()
for height in range(480000, node.getblockcount()):
View seed.md
                                                                   kblhmgw ktolhbtw vghwhdh hifwoefe eitwb Biig mprwbss hsuwbvwe kyudmate Heprweb swedwzq hrszkhg ffnlipqm pprhstobr grsgvizr urszggbl sifkdctg gideosvg bdjmhh cajvwvus aubmjsey xnodwqkq iqsixx eiagpmwv gmmgpoll yvqztiuen hgppof hghmenifi pwouubavf ucvuajmuh aubdga Oslhta hvgtme
View datamatrix.md
Type Data
Raw text 37.790029, -122.40084
Raw bytes a7 2f d1 82 9f 2d 21 2e 8e 33 2f aa 8a 35 0e 0b 81 1c
Barcode format DATA_MATRIX
Parsed Result Type TEXT
Parsed Result 37.790029, -122.40084
View datamatrix.py
from matplotlib import pyplot
from matplotlib import cm
import numpy
data = '010101010101010101011110111010101100001001101110110011000010001101110010011100001001100011000101110111100000010100101111001111011110001000101000010001110110111111001100101100101000011000011110110011000111001000101110001100100101010011010011011011110000011111111000010011001001111111101100000101011100011111000000000000000000'
data = list(data)
pyplot.imsave('datamatrix.png', numpy.array(data).reshape(18,18), cmap=cm.gray)
View 533d.7z
$ 7z x 533d.7z
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,4 CPUs Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz (1067A),ASM)
Scanning the drive for archives:
1 file, 726 bytes (1 KiB)
Extracting archive: 533d.7z
--
View unzip.sh
$ unzip 0n0urw4y.gif
Archive: 0n0urw4y.gif
warning [0n0urw4y.gif]: 32463159 extra bytes at beginning or within zipfile
(attempting to process anyway)
inflating: 533d.7z
creating: __MACOSX/
inflating: __MACOSX/._533d.7z