Skip to content

Instantly share code, notes, and snippets.

View andrewarrow's full-sized avatar
💭
https://andrewarrow.dev/

Andrew Arrow andrewarrow

💭
https://andrewarrow.dev/
View GitHub Profile
@andrewarrow
andrewarrow / gist:b6a20109ccb96dd7336419c8750a2946
Created May 24, 2025 16:41
OCR-to-TMDB Movie/Show Detection System
good, now write out all the logic for OCR parsing to get the right title,
stars, year, and the right logic to query TMDB api and then further refine
the results. Use psuedo code so I can give this document to another developer
and they could implement it in another language.
⏺ OCR-to-TMDB Movie/Show Detection System
Overview
This system processes shared images containing movie/show information, extracts text via OCR,
@andrewarrow
andrewarrow / gist:d0e41dd954485a8574b9ea74fbfc017f
Last active May 2, 2025 12:56
Comparison of NAT Traversal Solutions

Comparison of NAT Traversal Solutions

Solution Pros Cons
connet • True peer-to-peer architecture with clients on both ends
• Enhanced privacy (traffic doesn't pass through central servers)
• Better performance through direct connections when possible
• All communications encrypted with TLS
• Granular access control with mandatory tokens
• Relay fallback when direct connections aren't possible
• Can be embedded in other Go applications
• Supports various transport protocols (TCP, UDP via QUIC)
• Newer project with smaller community
• Requires clients on both source and destination
• Currently in alpha status
• More complex setup compared to ngrok
• Requires understanding of both source and destination concepts
rathole • Extremely lightweight (binary as small as ~500KB)• Optimized for resource-constrained devices• High performance with larger bandwidth than alternatives• Written in Rust for safety and speed
package main
import (
"encoding/json"
"log"
maelstrom "github.com/jepsen-io/maelstrom/demo/go"
)
func main() {
// TXIndexLock protects the transaction index.
// The txindex has it s own separate Blockchain object. This allows us to
// capture more metadata when collecting transactions without interfering
// with the goings-on of the main chain.
// Core objects from Server
// Core params object
// Initialize database
// See if we have a best chain hash stored in the txindex db.
// If we haven't initialized the txIndexChain before, set up the
// seed mappings.
digraph regexp {
n0 [label="avosa"];
n1 [label="lulopilato"];
n2 [label="Chiefkeef"];
n3 [label="shadowmonkey"];
n4 [label="GEM_COIN"];
n5 [label="daft"];
n6 [label="zuag2"];
n7 [label="HPol"];
n8 [label="bantg"];
pantonelife was mentioned by 2 other users:
botbets
SmoketheArtist
Luce was mentioned by 3 other users:
CloutCobain
MsBitcoin
sourdough
Scottscoin was mentioned by 1 other users:
randhir
dvo was mentioned by 1 other users:
bitcloutkarma was mentioned by 2 other users:
botbets
BitClout_Artist
FitExpert was mentioned by 1 other users:
LiftClout
youneedsomemilk was mentioned by 1 other users:
YouNeedSomeMilk
angie_mathot was mentioned by 2 other users:
botbets
BitClout_Artist
artz ERR has newlines
Stonedted ERR has newlines
rturovelasco SUCCESS 201
EndGame SUCCESS 114
Sansa_Lanister SUCCESS 106
charliehilton ERR has newlines
shubhang emoji != amount
memes_machine ERR has newlines
Jahnavi SUCCESS 120
Jahnavi ERR has newlines
~/clout-cli $ ./clout ls e90c94c
looks like they quietly added back the top creators ranking view as an option in sidebar
team on dat grind
username ago replies reclouts hash
-------- --- ------- ------- --------
JasonKhoury 9 minutes 0 0 5753a08
JamesHarbal 1 minute 0 0 790813f
net.(*netFD).Read(0xc002527e00, 0xc046250280, 0x1, 0x1, 0xffffffffffffffff, 0x0, 0x32)
/home/aa/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc05e5458d8, 0xc046250280, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/aa/go/src/net/net.go:183 +0x91
io.ReadAtLeast(0x166c860, 0xc05e5458d8, 0xc046250280, 0x1, 0x1, 0x1, 0xdc8d7aa575c67d21
, 0xa38d, 0x32)
/home/aa/go/src/io/io.go:328 +0x87
io.ReadFull(...)
/home/aa/go/src/io/io.go:347
github.com/bitclout/core/lib.ReadUvarint(0x166c860, 0xc05e5458d8, 0x3, 0x478160, 0xc058