Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am grubles on github.
* I am notgrubles (https://keybase.io/notgrubles) on keybase.
* I have a public key ASBhxEDCyVnjyAmNiaVY0v_3BSLFrWlPDTL0LI5MWdAZkgo
To claim this, I am signing this object:
@grubles
grubles / gist:930e113a63ce50cc723779239ca7c371
Created April 23, 2019 18:53
Modified api_data_reader.py for broadcasting *unencrypted* data via Blockstream Satellite
#!/usr/bin/env python
"""
Post data to the Satellite API for transmission via Blockstream Satellite
"""
import os, sys, argparse, textwrap, struct, zlib, requests, json, logging
# import gnupg
from math import ceil
$ ./lightningd/lightningd --network liquid
2019-06-29T23:14:40.599Z lightning_gossipd(29574): We seem to be missing gossip messages
2019-06-29T23:14:40.689Z lightningd(29562): --------------------------------------------------
2019-06-29T23:14:40.689Z lightningd(29562): Server started with public key 02954a618a5684fbb7454d0c1bc87579d5164c35829fccc54d9f4df1a369356b48, alias LOUDFIRE (color #02954a) and lightningd v0.6rc1-1998-g6d4c40f
$ ./lightningd/lightningd --network liquid
2019-06-29T23:14:40.599Z lightning_gossipd(29574): We seem to be missing gossip messages
2019-06-29T23:14:40.689Z lightningd(29562): --------------------------------------------------
2019-06-29T23:14:40.689Z lightningd(29562): Server started with public key 02954a618a5684fbb7454d0c1bc87579d5164c35829fccc54d9f4df1a369356b48, alias $
OUDFIRE (color #02954a) and lightningd v0.6rc1-1998-g6d4c40f
2019-06-29T23:22:46.297Z lightningd(29562): JSON-RPC shutdown
grubles@thinky:~/builds/lightning$ ./lightningd/lightningd --network liquid --log-level debug
2019-06-29T23:22:55.640Z lightningd(29963): testing /home/grubles/builds/lightning/lightningd/lightning_channeld
2019-06-29T23:22:55.641Z lightningd(29963): testing /home/grubles/builds/lightning/lightningd/lightning_closingd
2019-06-29T23:22:55.642Z lightningd(29963): testing /home/grubles/
sudo apt-get install -y \
autoconf automake build-essential git libtool libgmp-dev \
libsqlite3-dev python python3 net-tools zlib1g-dev libsodium-dev
$ ./cli/lightning-cli listpeers
{
"peers" : [
{
"id" : "02954a618a5684fbb7454d0c1bc87579d5164c35829fccc54d9f4df1a369356b48",
"connected" : true,
"netaddr" : [
"192.168.1.166:9735"
$ ./cli/lightning-cli listpeers
{
"peers" : [
{ [35/1969]
"id" : "0322d8d3fb7e77a88f373fa369a3e91cb63a24f1313c480ae09c5ffc56dbef7ead",
"connected" : true,
"netaddr" : [
"192.168.1.230:9735"
#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 thomasv@gitorious
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# run in satellite/api/examples directory
# note 0bin.net pasting requires zerobinpaste tool
# https://github.com/sametmax/0bin/blob/master/docs/.build/html/_sources/en/zerobinpaste_tool.txt
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import tweepy
import glob
import os
import subprocess
#!/usr/bin/env python
# pgp-words.py
# Copyright (C) 2015 Joe Ruether jrruethe@gmail.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#