Skip to content

Instantly share code, notes, and snippets.

@llllvvuu
llllvvuu / blockchain-topics.md
Last active October 6, 2022 10:47
blockchain-topics
View blockchain-topics.md

Blockchain

  • p2p
    • Kademlia
    • Turbine (Solana)
    • libp2p?
    • gossip?
  • Consensus. References: decentralizedthoughts
    • Common knowledge and Two Generals Problem
  • Mis-spend vs double-spend
View keybase.md

Keybase proof

I hereby claim:

  • I am llllvvuu on github.
  • I am llwu (https://keybase.io/llwu) on keybase.
  • I have a public key ASBegEzHvChNWe569jBMgHkkJPAmA7La4nhxghUB4gEdZgo

To claim this, I am signing this object:

@llllvvuu
llllvvuu / ftx_to_cointracker.py
Created March 21, 2021 02:48
Convert FTX's transactions CSV format to CoinTracker's upload format for taxes
View ftx_to_cointracker.py
# Python 3.7+
# Usage: Download `trades.csv` from FTX.US, run this, and upload `cointracker.csv` to CoinTracker.
if __name__ == '__main__':
import csv
from datetime import datetime
trades = []
with open('trades.csv') as f:
@llllvvuu
llllvvuu / screenshot.sh
Created April 12, 2017 22:51
command line script to grab frames from video files with .ass subs using fast seek
View screenshot.sh
infile=$1
shift
outfile=$1
shift
ffmpeg -dump_attachment:t "" -i "$infile"
mv *.ttf *.TTF *.otf *.OTF *.ttc *.TTC ~/.fonts
fc-cache -fv ~/.fonts
ffmpeg -i "$infile" -map 0:s:0 subs.ass
for var in "$@"
do
@llllvvuu
llllvvuu / mouse.xboxdrv
Created January 7, 2017 11:58
OSMC RasPi Wireless XBox 360 controller
View mouse.xboxdrv
# Mouse Emulation
# ===============
#
# This configuration file emulates a mouse. The left stick controls
# the cursor, the right stick becomes a horizontal and vertical scroll
# wheel, the dpad acts as cursor keys, the start and back buttons
# become forward and back buttons, the guide button escape and LB and
# RB become page up and page down and the face button act as mouse
# button.