Skip to content

Instantly share code, notes, and snippets.

View 5HT's full-sized avatar
🌐
I'm very skeptical that person without empathy can create beautiful mathematics.

Namdak Tonpa 5HT

🌐
I'm very skeptical that person without empathy can create beautiful mathematics.
View GitHub Profile
@5HT
5HT / package.txt
Created March 4, 2026 13:00
package.txt
Package: #{<<"containedItemQuantity">> => [],
<<"description">> =>
<<209,128,208,190,208,183,209,135,208,184,208,189,32,208,180,
208,187,209,143,32,209,150,208,189,96,209,148,208,186,209,134,
209,150,208,185,44,32,52,32,208,188,208,179,47,208,188,208,
187,59,32,208,191,208,190,32,49,32,208,188,208,187,32,208,176,
208,177,208,190,32,208,191,208,190,32,50,32,208,188,208,187,
32,208,178,32,208,176,208,188,208,191,209,131,208,187,208,176,
209,133,32,209,129,208,186,208,187,209,143,208,189,208,184,
209,133,32,208,183,32,208,177,209,128,209,131,208,189,208,176,
@5HT
5HT / gravity.txt
Created March 3, 2026 21:21
gravity.txt
Gravity Theories Dichotomy Tree
(Branching based on key decision points: conceptual, mathematical, and physical choices leading to each theory's existence)
Root: Fundamental View of Gravity
├── As a Field (Classical, Force-based)
│ ├── Non-Relativistic (Absolute time/space)
│ │ ├── Scalar Potential (Newtonian Gravity)
│ │ │ - Decision: Instantaneous action? Yes → Poisson's equation (∇²φ = 4πGρ)
│ │ │ - Exists due to: Empirical laws (e.g., inverse square) + field concept from EM analogy
│ │ └── Tensorial Reformulation (To geometrize)
@5HT
5HT / 2026-03-01 KVS.md
Created March 1, 2026 05:29
2026-03-01 KVS.md

Про доречність використання KVS

Про доречність використання KVS в Документообігах, CRM, чатах та телеком системах.

Вступ до KVS

KVS (Key-Value Store) — це легкий клієнтський інтерфейс, побудований на абстракціях баз даних типу B-tree, призначений для простого зберігання та обробки даних в Erlang/OTP-екосистемі. Розроблений компанією Synrc, KVS надає абстрактний, компактний та перевірений на практиці API (близько 500 рядків коду), який підтримує базові операції для систем, таких як леджери, месенджери, системи зберігання та банківські додатки.

# DevOps Engineer Vacancy
**Governmental Statistical Warehouse for National Healthcare Services**
**Position Title:** DevOps Engineer
**Department:** Information Technology and Data Management
**Location:** Kyiv, Ukraine (Hybrid / Remote options available)
**Employment Type:** Full-Time Contract
**Contract Duration:** Initial 12 months (with high probability of extension)
**Reporting To:** IT Project Manager
**Application Deadline:** March 15, 2026
@5HT
5HT / gpt.txt
Created February 15, 2026 07:48
gpt.txt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
import random # random.seed, random.choices, random.gauss, random.shuffle
@5HT
5HT / GroupMessageService.swift
Last active February 12, 2026 03:16
GroupMessageService.swift
import Foundation
import CryptoKit
import DoubleRatchet // https://github.com/TICESoftware/DoubleRatchet
// ────────────────────────────────────────────────
// MARK: - Errors
// ────────────────────────────────────────────────
public enum GroupMessagingError: Error, Sendable {
case wrongGroup
@5HT
5HT / v2.txt
Created February 8, 2026 04:13
v2.txt
defmodule KDF do
# Existing hash lengths
def hl(:md5), do: 16
def hl(:sha), do: 20
def hl(:sha224), do: 28
def hl(:sha256), do: 32
def hl(:sha384), do: 48
def hl(:sha512), do: 64
# Existing Concat KDF (NIST SP 800-56A style, used in standard ECC CMS)
@5HT
5HT / dpi.txt
Created January 29, 2026 12:39
dpi.txt
Так, питання досить цікаве й актуальне — особливо в контексті сучасних DPI-систем, які активно використовують сигнатурний аналіз, машинне навчання та активне пробінг для виявлення навіть добре зашифрованого трафіку.
### Основні способи обходу DPI для потокового шифрування каналів (stream ciphers, наприклад ChaCha20, AES-CTR тощо)
Потокове шифрування саме по собі не дає автоматичного захисту від DPI, бо сигнатура може бути в handshake, розмірах пакетів, таймінгах, entropy, SNI, JA3 fingerprint тощо. Ось перевірені підходи:
1. **Протокольна обфускація та mimicry**
Роблять трафік схожим на звичайний HTTPS/HTTP/3, WebRTC, відеострімінг тощо.
- uTLS (або utls) — імітація TLS-фінгерпринтів реальних браузерів (Chrome, Firefox, Safari). Змінює порядок розширень, ciphersuites, curves тощо.
- REALITY (в Xray/V2Ray) — усуває серверний TLS-фінгерпринт, використовує shortId (короткі випадкові ідентифікатори) та fallback на реальний сайт. Сервер аналізує вхідний трафік і динамічно адаптується, щоб виглядат
@5HT
5HT / cmc.txt
Created January 14, 2026 21:24
# CMS AUTH aka CMC
Show basic code in Swift how to perform CMS AUTH, CMC I believe it is called?
```
AuthenticatedData ::= SEQUENCE {
version CMSVersion,
originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
recipientInfos RecipientInfos,
macAlgorithm MessageAuthenticationCodeAlgorithm,
@5HT
5HT / nokia.txt
Created December 30, 2025 17:25
nokia.txt
Subject: Introducing a Modern Multi-Language ASN.1 Code Generation Compiler – Open for CollaborationFrom:
Maxim Sokhatsky
CTO of SYNRC Research Center, Ukraine
Email: maxim@synrc.com
GitHub: https://github.com/erpuno
Website: https://asn1.erp.uno/
Date: December 30, 2025 To:
Nokia Networks Engineering / Open Source Program Office / Radio Access Networks Team