Skip to content

Instantly share code, notes, and snippets.

View genbtc's full-sized avatar

genBTC genbtc

  • NJ, USA
View GitHub Profile
@genbtc
genbtc / homegenr8eoflgithub-notification-recovery.sh
Created December 25, 2025 17:15
/home/genr8eofl/github-notification-recovery.sh
#Deletes a phantom notification caused by spammers
export TOKEN="YOUR_TOKEN_HERE";
curl -X PUT -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $TOKEN" https://api.github.com/notifications -d '{"last_read_at": null,"read":true}
@genbtc
genbtc / chatGPT-firefox-rust-getrandom.md
Created December 23, 2025 12:16
chatGPT-firefox-rust-getrandom.md

You said:

 0:03.33 error: failed to select a version for getrandom.
 0:03.33     ... required by package mozilla-central-workspace-hack v0.1.0 (/var/tmp/portage/www-client/firefox-115.31.0/work/firefox-115.31.0/build/workspace-hack)
 0:03.33     ... which satisfies path dependency mozilla-central-workspace-hack (locked to 0.1.0) of package jsrust_shared v0.1.0 (/var/tmp/portage/www-client/firefox-115.31.0/work/firefox-115.31.0/js/src/rust/shared)
 0:03.33     ... which satisfies path dependency jsrust_shared (locked to 0.1.0) of package jsrust v0.1.0 (/var/tmp/portage/www-client/firefox-115.31.0/work/firefox-115.31.0/js/src/rust)
 0:03.33 versions that meet the requirements >=0.2 are: 0.3.3
 0:03.33 the package mozilla-central-workspace-hack depends on getrandom, with features: custom but getrandom does not have these features.
 0:03.33 failed to select a version for getrandom which could resolve this conflict
@genbtc
genbtc / chatGPT-packed_simd-portable-simd.md
Created December 22, 2025 15:19
chatGPT-packed_simd-portable-simd.md

How is rust packed_simd killed when portable-simd cant replace it in context of mozilla firefox 115?:

Good question — and this is where the real technical wall is. Short answer first, then the concrete blockers.

portable_simd isn’t “killed”; it’s not a drop-in replacement for what Firefox 115 is doing with packed_simd. The problem is not ideology or conservatism — it’s API shape, guarantees, and codegen assumptions.

I’ll be precise and stay high-signal.


@genbtc
genbtc / cura-debug-21-iterations.txt
Created December 20, 2025 22:19
cura-debug-21-iterations.txt
1.
[PYI-20757:ERROR] Failed to load Python shared library '/opt/UltiMaker-Cura-5.11.0-linux-X64.AppImage-extracted/ISLAND/libpython3.12.so.1.0': dlopen: /opt/UltiMaker-Cura-5.11.0-linux-X64.AppImage-extracted/ISLAND/libpython3.12.so.1.0: cannot open shared object file: No such file or directory
# cp /usr/lib64/libpython3.12.so.1.0 .
2.
[PYI-20772:ERROR] Failed to start embedded python interpreter!
# cp ../base_library.zip .
3.
ModuleNotFoundError: No module named '_struct'
@genbtc
genbtc / lenin.md
Created December 16, 2025 11:58
lenin.md

My Prompt: how much of Marx & Lenin involves deception and art of war tactics ?

GPT Short answer: some tactical deception exists, but it is not the core of Marx or Lenin — and the kind and degree differ sharply between them. Marx is primarily analytic; Lenin is explicitly strategic. Neither is mainly “lying,” but Lenin openly endorses political deception as a tool, while Marx largely does not.

Let’s separate this cleanly.


1. Marx: analysis first, persuasion second

@genbtc
genbtc / extract_emojis_v2.py
Created September 26, 2025 15:43
extract_emojis_v2.py
#!/usr/bin/env python3
import re
import sys
import textwrap
# Regex covering most emoji ranges
emoji_pattern = re.compile(
"[\U0001F600-\U0001F64F" # Emoticons
"\U0001F300-\U0001F5FF" # Symbols & pictographs
"\U0001F680-\U0001F6FF" # Transport & map symbols
@genbtc
genbtc / hash_collision.py
Created September 23, 2025 15:37
hash_collision.py
#!/usr/bin/env python3
import math
import sys
def main():
if len(sys.argv) != 3:
print(f"Usage: {sys.argv[0]} <num_items> <bits>")
print("Example: ./hash_collision.py 1000000000 72")
sys.exit(1)
@genbtc
genbtc / ssh-exec9.sh
Created September 23, 2025 15:36
ssh-exec9.sh
#!/usr/bin/env bash
#
# Usage: ./ssh-exec9.sh alias1 alias2 ... aliasN (up to 9)
# Opens multiple tabs of xfce4-terminal for many ssh connections (easy run on startup)
#
CMD=(xfce4-terminal)
if [ $# -lt 1 ] || [ $# -gt 9 ]; then
echo "Usage: $0 alias1 [alias2 ... alias9]"
exit 1
@genbtc
genbtc / GPT-pyparsing-BNF.txt
Created March 3, 2025 19:30
GPT-pyparsing-BNF.txt
You said:
Prompt:
for python is pyparsing library using BNF?
ChatGPT said:
Not exactly — Pyparsing doesn’t use Backus-Naur Form (BNF) directly, but it provides a more Pythonic, object-oriented approach to defining grammars.
BNF is a formal way to describe the syntax of languages, often used in compiler design and language parsing. Pyparsing, on the other hand, lets you build grammars by combining objects representing different parsing rules — like literals, keywords, expressions, and patterns — using Python’s operators and methods.
@genbtc
genbtc / GPT-contents-boost-parser.cpp
Created March 3, 2025 18:49
GPT-contents-boost-parser.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <boost/parser/parser.hpp>
#include <boost/hana/tuple.hpp>
namespace bp = boost::parser;
struct DirEntry {
std::string path;