Skip to content

Instantly share code, notes, and snippets.

View sbOogway's full-sized avatar
💯
swg

Juice Man sbOogway

💯
swg
View GitHub Profile
@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)
@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: [email protected]
pure scala implementation of des, mostly using functional programming
written for learning purposes not meant for production
defects:
- proper padding
@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: [email protected]
implementation of rijndael aka aes in c
written for learning purposes not meant for production
defects:
- padding
@sbOogway
sbOogway / carousel.js
Created September 15, 2025 13:34
carousel.js
@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 / 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.