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-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;
@serious-angel
serious-angel / proc_tree.sh
Created January 9, 2026 17:46
Basic Process Tree with Teletype (Bash script)
#! /usr/bin/env bash
declare c=0;
_PidTree()
{
declare __pid="$1";
shift || return 2;
declare stat=(); readarray -td ' ' stat < "/proc/${__pid}/stat";
@serious-angel
serious-angel / steam_gamepad_support.md
Last active January 7, 2026 11:27
Steam Desktop client gamepad support (2025-10-26, 2dcc5aaf7)

While implementing the quick experiment for Steam desktop notification toasts size scaling (i.e. ⁠https://github.com/serious-angel/steam-client-custom-toasts, the source had the following object that may suggest supported devices by Steam, at least, for the current Steam desktop client version, with the Webpack transpiled chunks versioned as 2dcc5aaf7 (2025-10-26):

h = {
  [-1]: "controller_none",
  20: "controller_unknown",
  0: "controller_unknown",
  1: "controller_generic",
  2: "controller_steamcontroller_gordon",
  3: "controller_steamcontroller_unknown",
@serious-angel
serious-angel / happy_new_upcoming_year_2026.md
Created December 31, 2025 05:06
Happy New Upcoming Year 2026

May the previous years define an increase...
Treasures to carry, and goals to receive...
These are now safe, and cherished in seeds...
Secured by time, and the future it sees...

May the next year support you in peace...
So wishes appear in the world as it seems...
To be reified from the Universe breeze...
To continue believing in miracles' dreams...
~ /\

@serious-angel
serious-angel / reverse-engineering-webpack-apps.md
Created October 11, 2025 20:02 — forked from 0xdevalias/reverse-engineering-webpack-apps.md
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps
@serious-angel
serious-angel / 1_truncate.c
Last active December 27, 2024 23:56
Basic file truncate program (GLibc)
#include <fcntl.h>
int main(int argc, char* argv[])
{
if (argc < 2) {
return(2);
}
if (open(argv[1], O_TRUNC | O_WRONLY) < 0) {
return(1);
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdio.h>
int main(void)
{
struct winsize ws;
ioctl(STDIN_FILENO, TIOCGWINSZ, &ws);
@serious-angel
serious-angel / 1_pack.sh
Created December 22, 2024 23:30
The Elder Scrolls Online addon package archive script
#! /usr/bin/env bash
# Tested on p7zip Version 16.02
_Main()
{
declare __manifestFilepath="$1";
shift;
if [[ ! "$__manifestFilepath" =~ \.txt$ ]];