Skip to content

Instantly share code, notes, and snippets.

View bet-sizing.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Mar 21, 2021
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 Apr 12, 2017
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 Jan 7, 2017
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.