Skip to content

Instantly share code, notes, and snippets.

View gsergey418's full-sized avatar

Sergey Gorbunov gsergey418

View GitHub Profile
@gsergey418
gsergey418 / fishbone.txt
Last active April 1, 2026 20:22
fishbone.txt
___ / / / / / .==
.-` / / / / / / / / / / /
| x |=|=|=|=|=|=|=|=|= <
> | \ \ \ \ \ \ \ \ \ \
``-.__\ \ \ \ \ \ `==
@gsergey418
gsergey418 / b32invert
Created January 22, 2025 15:20
Python util for inverting base32.
#!/usr/bin/env python3
from base64 import b32decode, b32encode
from sys import argv
print(b32encode(bytearray([byte ^ 255 for byte in b32decode(argv[1])])).decode("utf-8"))
@gsergey418
gsergey418 / cloc
Last active January 20, 2025 15:49
Golang CLOC
#!/bin/sh
find . -type f -name "*.go" -not -name "*.pb.go" -exec cat {} \; | grep -v "^ *//" | grep -v "^ *$" | wc -l