Skip to content

Instantly share code, notes, and snippets.

View rootzoll's full-sized avatar

/rootzoll rootzoll

  • Berlin
View GitHub Profile
@rootzoll
rootzoll / earningsreport.py
Created October 30, 2019 01:45
create a csv formatted earnings report with sats and EUR from your LND invoice history
# export invoice history from LND to a JSON with: lncli listinvoices > history.json
# then use this script to create a CSV formatted eranings report from that history
# you can filter by year, month or day
# set a hourOffset of example 6 to let the day at a bar start a 6am and end on 6am the next day
# you may need to run on command line first:
# pip install requests
import json
from pprint import pprint
from datetime import datetime

Keybase proof

I hereby claim:

  • I am rootzoll on github.
  • I am rootzoll (https://keybase.io/rootzoll) on keybase.
  • I have a public key whose fingerprint is 92A7 46AE 33A3 C186 D014 BF5C 1C73 060C 7C17 6461

To claim this, I am signing this object:

contract CollectFunds {
address owner;
uint startTime;
function CollectFunds() {
owner = msg.sender;
startTime = now;
}
function trigger() {