Skip to content

Instantly share code, notes, and snippets.

View tomfun's full-sized avatar

Greg tomfun

View GitHub Profile
@tomfun
tomfun / en.md
Created June 14, 2026 00:54
Инженер против Бога Идеальный архиватор Вселенной — не просто NP-задача. Хуже: абсолютный минимум описания в общем случае невычислим. Но между обычным ZIP и недостижимым архиватором Бога остаётся огромная территория. На неё уже выходят LLM, синтез программ и агенты, способные писать декодеры специально для конкретного файла, запускать их, провер…

Engineer Against God

The Ideal Archiver of the Universe: a Program That Writes Programs, and a World That Models Itself

This is not just an NP problem. It is worse: the absolute minimum description is generally uncomputable.
But between an ordinary ZIP file and God's unreachable archiver lies a huge territory that LLMs, program synthesis, and computational agents are already beginning to enter.


Before We Begin: Where the Science Ends and the Fresco Begins

Let’s treat this as a transition map, not a moral list. Otherwise it all collapses back into humanity’s favorite trick: calling suffering a character flaw and moving on.

The basic scheme

**Life difficulty / overload / deprivation / traumatic experience
→ primary feeling
→ explanatory thought
→ small protective behavior
→ unnoticed repeating pattern
→ “sin” as a stable coping strategy

@tomfun
tomfun / apt-keys.md
Created August 2, 2025 23:12
how to fix apt warnings

🔧 Migrating APT GPG Keys to the Modern Format

Fix deprecated apt-key warnings and unsupported key files


🚨 1. The Problem: Legacy Keyring Warnings

When running apt update, you might see warnings like:

@tomfun
tomfun / 01-pipewire.conf
Last active January 20, 2026 11:05
Human like compressor
context.modules = [
{
name = libpipewire-module-filter-chain
args = {
node.name = "eq_before_comp"
node.description = "Human-like compressor chain (entry eq_before_comp)"
media.name = "HCL out"
audio.format = "S32BE"
audio.rate = 48000
# ? del:
@tomfun
tomfun / README.md
Last active March 8, 2025 21:44
Node js stdin.on('data', ...) in action testing

How to test application stream

How to test node streams in node using linux tools and scripts

The easiest test:

echo -e "line1\nline2\nline3" | node pause-test.js
nmcli connection modify "WifFiNameHere" connection.autoconnect yes
nmcli connection modify "WifFiNameHere" connection.permissions ""
#!/bin/bash
# Array of video file paths
video_files=(
# "Fille1.BdRip.1920.eng.mkv"
# "Fille1.BdRip.4k.eng.mkv"
"DISC_BLUEBIRD/BDMV/STREAM/00024.m2ts"
)
extra_crop=",crop=in_w:in_h-260"
#extra_crop=""

Article Introduction: Navigating Database Technologies for Hierarchical and Social Network Data Management

Overview

In today's digital landscape, efficient data management is pivotal, especially when dealing with complex structures like trees and graphs. These structures, foundational in computer science, dictate how data is stored, accessed, and manipulated across various platforms, from social networks to organizational systems. This article provides a comprehensive exploration of tree and graph structures and their implementation in different database systems, assessing their effectiveness in contexts ranging from hierarchical data management in traditional databases to sophisticated relationship mapping in graph databases.

Tree and Graph: A Comparative Study of Data Structures

Tree Structure
@tomfun
tomfun / index.js
Last active October 3, 2023 13:02
Print the shape of input with used values
const printValues = (data) => {
const getType = (value) => {
if (Array.isArray(value)) return 'array';
if (null === value) return 'null';
return typeof value;
};
const initResult = () => ({ _type: new Set([]), _values: new Set() })
const updateValues = (result = initResult(), item) => {
const type = getType(item);