Skip to content

Instantly share code, notes, and snippets.

View sbOogway's full-sized avatar
💯

Mattia Papaccioli sbOogway

💯
View GitHub Profile
@sbOogway
sbOogway / bran-dump.mmd
Created May 5, 2026 14:16
RHCSA brain dump mindmap
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbOogway
sbOogway / graph.mmd
Last active April 26, 2026 10:41
knowledge graphs on storage in unix
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbOogway
sbOogway / gist:0ab9e0175f325da94a1adf0d3f64a219
Created April 25, 2026 16:03
knowledge graphs on storage in unix
graph TD
%% Main Header
Title[ULTIMATE KNOWLEDGE GRAPH ON STORAGE IN UNIX]
style Title fill:#f9f,stroke:#333,stroke-width:4px
%% Physical Layer
SD[STORAGE DEVICE: Piece of hardware used to store data] --> Comp[Composed of]
Comp --> Drive[DRIVE: Part of device responsible for reading/writing. Now used to indicate media where data is stored.]
Comp --> Disk[DISK: Media where we store data. Name from old devices that were actually disks.]
@sbOogway
sbOogway / hashicorp.bash
Last active April 1, 2026 13:13
install hashicorp repo and nomad
sudo apt-get update && \
sudo apt-get install wget gpg coreutils
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update && sudo apt-get install nomad
@sbOogway
sbOogway / cone_of_light.glsl
Last active November 4, 2025 09:59
cone of light
// https://shadertoy.com
// tweak the frequency and let the magic happen dawg
#define FREQUENCY 333.
#define THICKNESS 0.004
#define Y_SHIFT 0.5
#define AMPLITUDE 0.2
#define SPEED 1.
@sbOogway
sbOogway / game_of_life.glsl
Created October 13, 2025 11:32
Game of life shader
#version 330 core
#ifdef GL_ES
precision highp float;
#endif
uniform vec2 resolution; // screen size in pixels
uniform float time;
uniform vec2 mouse; // normalized (0‑1) mouse position
uniform sampler2D prevBuffer;
@sbOogway
sbOogway / carousel.js
Created September 15, 2025 13:34
carousel.js
@sbOogway
sbOogway / aes.c
Created May 30, 2025 15:30
aes implementation in c
/*
spec: https://csrc.nist.gov/files/pubs/fips/197/final/docs/fips-197.pdf
author: Mattia Papaccioli
github: https://github.com/sbOogway
email: mattiapapaccioli@gmail.com
implementation of rijndael aka aes in c
written for learning purposes not meant for production
defects:
- padding
@sbOogway
sbOogway / des.scala
Created May 20, 2025 19:44
DES implementation in scala
/*
specifications: https://csrc.nist.gov/files/pubs/fips/46-3/final/docs/fips46-3.pdf
author: Mattia Papaccioli
github: https://github.com/sbOogway
email: mattiapapaccioli@gmail.com
pure scala implementation of des, mostly using functional programming
written for learning purposes not meant for production
defects:
- proper padding
@sbOogway
sbOogway / one_liner
Last active September 16, 2024 12:02
docker and portainer setup in debian
bash <(curl -s https://gist.githubusercontent.com/sbOogway/e8bc5800bde2245bd3da3641d795b201/raw/6fc300e495fba6b2cb6a739d9b5339d5fe04870d/setup.sh)