Skip to content

Instantly share code, notes, and snippets.

View serious-angel's full-sized avatar
✨
...cogito, ergo sum...

/\ngel serious-angel

✨
...cogito, ergo sum...
View GitHub Profile
@serious-angel
serious-angel / 1_php-src_17c806d8b341ca3c67fd56a3a9594c28a4cd5b51.patch
Created October 25, 2026 03:05
PHP Zend Object Memory Free Experiment Attempt (Git commit 17c806d8b341ca3c67fd56a3a9594c28a4cd5b51)
--- zend_objects_API.c.patch
+++ zend_objects_API.c.patch
@@ -193,6 +193,9 @@
object->handlers->free_obj(object);
}
ptr = ((char*)object) - object->handlers->offset;
+
+ fprintf(stderr, "[Zend Objects] [Free] object=%p class=%s\n", (void *) object, ZSTR_VAL(object->ce->name));
+
GC_REMOVE_FROM_BUFFER(object);
@serious-angel
serious-angel / 1_bash_http_service_unstable_test.sh
Last active October 4, 2026 02:05
Unstable Bash HTTP service for a quick traffic test
#!/usr/bin/env bash
declare -r _HOST='0.0.0.0';
declare -r _PORT=5173;
declare _startCount=0;
declare _bodyMessage='';
_PrepareBody()
{
@serious-angel
serious-angel / 1_80211_wpa2_flow.md
Last active September 20, 2026 08:40
General 802.11 WPA2 flow

Wonderful day!

Greetings, from Libera IRC! ^^
Just in case, no awful sorrowful LLM was used for this Gist.

Though, there's a lot of various articles about it, but sometimes it's better to recall it all manually, I believe.

The bellow chart is a 4-way handshake general representation I copied from a personal security paper I had prepared long ago for another project, with the dear four EAPOL-Key messages constituting the core of WPA2 network authentication, during which keys are generated and distributed between the client and the authentication system.

EAP over LAN (EAPoL or EAPOL) is an 802.1X-defined technique for encapsulating EAP or user data within LAN or WLAN networks.

$ du -sbh ./input.txt;
# 209M ./input.txt

$ ./benchmark.sh ./input.txt;
Benchmark 1: tr -s \n
  Time (mean ± σ):     852.3 ms ±   9.8 ms    [User: 823.6 ms, System: 28.4 ms]
@serious-angel
serious-angel / lobsters_ban_2026-09-14.md
Last active October 9, 2026 09:20
Lobsters staff ruined my reputation, do not respond, and I have no idea why.

Greetings!

I am Lore at Libera IRC, and at 2026-09-14 19:40:58 UTC I sent jcs (the only one who had EMail address in public contacts listed online at https://jcs@jcs.org/contact) the following message, yet there's no response.

I've also sent the exactly same message to pushcx, who banned me, over an EMail address found.

There were the only 2 Email addresses found across the Internet, at their custom domains, so I am not even sure they received them.

The following messages excerpt are all my messages I sent this day.

@serious-angel
serious-angel / 1_Caddyfile.md
Created August 31, 2026 16:50
Caddy FQDN-less resolution test (Libera IRC #lobsters; 2026-08-31)

File: ./Caddyfile

{
    auto_https off
    debug
}

:8080 {
    @example host example.rs
@serious-angel
serious-angel / 1-example.md
Last active February 12, 2026 18:54
Multi-line comments example
$ bash ./test.sh;
declare -- bitfields="101"
declare -a scopes=([0]="user-profile" [1]="user-email")
See! Marvelous!
@serious-angel
serious-angel / 1-compose.yaml
Created February 5, 2026 03:04
[Docker] Example of service with limited network access
services:
first:
image: nginx
networks:
# Dsable the default bridge explicitly, with no known Internet access.
- isolated
# For the container access with its custom subnet/network.
- between
@serious-angel
serious-angel / 1-result.md
Last active January 31, 2026 02:48
DNS Latency Node v21+ script example
// ...
[2026-01-31T02:35:27.109Z] [ 9/10] [
  {
    host: 'python.org',
    latency: 5,
    resolved: [
      { address: '151.101.64.223', ttl: 214, type: 'A' },
      { address: '151.101.0.223', ttl: 214, type: 'A' },
      { address: '151.101.128.223', ttl: 214, type: 'A' },
@serious-angel
serious-angel / 1-git-diff-size-example.md
Last active January 25, 2026 11:51
[WIP] Diff size between two Git references
$ ls -lA '~/.local/exec-scripts/';
total 4
-rwxrwxr-x 1 user user 927 Jan 25 13:20 git-file-size-diff.sh
$ export PATH="${PATH}${PATH:+:}${HOME}/.local/exec-scripts";

$ git log;