Skip to content

Instantly share code, notes, and snippets.

View sploders101's full-sized avatar

Shaun Keys sploders101

View GitHub Profile
@sploders101
sploders101 / test.c
Created December 16, 2023 19:21
Proof we live in the Matrix
/*
Proof we live in the matrix:
If black holes are formed by compressing more and more matter into a
limited space until it gives in and sucks in everything around it,
then it stands to reason that this phenomenon is caused by an integer
overflow in the density property of that space.
Because integers within a computer occupy a finite space, they cannot
# Example configuration for the m5stack ATOM Echo with support for speaking through an external speaker
substitutions:
name: m5stack-atom-echo-31ace0
friendly_name: Shaun's Room Echo
speaker_entity: media_player.shaun_s_bedroom_lamp
wake_word: okay_nabu
api:
esphome:
@sploders101
sploders101 / main.rs
Created June 15, 2025 03:47
MKV Subtitle Extraction Demo
//! This is a proof-of-concept for extracting vobsub subtitles from an MKV file.
//! It makes use of some private functions from the vobsub crate, and requires a
//! modified copy to export them.
//!
//! This is primarily created as a testing ground for integrating subtitle extraction
//! into mediacorral. The current version really only works for vobsub, and converts
//! the vobsub images into sixel images, printing them to the terminal.
use matroska_demuxer::*;
use std::{fs::File, time::Duration};