Skip to content

Instantly share code, notes, and snippets.

View maximetinu's full-sized avatar
🌔
🔭

Metinu maximetinu

🌔
🔭
View GitHub Profile
INFINIZOOM
Build infinizoom: a procedural infinite-zoom world. The deliverable is a self-contained BunJS project. Running `bun run server` must build and serve it (wire up the corresponding "server" script in package.json). Three local assets exist in this directory and must be used: ./macbook_interior.png (a real MacBook Pro teardown photo), ./apple_m4_scheme.png (Apple's M4 die floorplan diagram), and ./wallpaper.jpg (a 1920×1200 desktop wallpaper photo). Load the wallpaper from this local file — never fetch content from external servers (the sole exception: three.js itself may be imported from a CDN by URL).
The world
A single 3D world is traveled indefinitely along a fixed camera track that zooms through these levels:
Main route: a room → a desk → a MacBook Pro → inside the chassis → the logic board → the Apple M4 package → the M4 die → a performance core → an integer ALU block → a standard logic cell → a FinFET transistor → a material cross-section inside the fin → the silicon crystal lattice → one u
@maximetinu
maximetinu / git-merge-stack
Last active April 13, 2026 18:16
git merge-stack — Cascade-merge a PR stack from bottom to top
#!/usr/bin/env bash
#
# git-merge-stack — Cascade-merge a PR stack from bottom to top.
#
# Setup (run once):
# mkdir -p ~/.local/bin
# cp this-file ~/.local/bin/git-merge-stack
# chmod +x ~/.local/bin/git-merge-stack
# Ensure ~/.local/bin is on your PATH (add to ~/.zshrc if needed):
# export PATH="$HOME/.local/bin:$PATH"
@maximetinu
maximetinu / ascii_drawer.rs
Last active July 28, 2024 15:13
ascii rect drawer
#![allow(dead_code)]
use std::collections::HashMap;
#[derive(Debug, Clone, Copy)]
pub struct Vec2 {
x: f32,
y: f32,
}
@tool
extends Node
@export_storage var viewport_position: Vector2
@export_storage var viewport_size: Vector2i
@export var main_screen_position_offset := Vector2(0, -18)
@export var main_screen_size_offset := Vector2i(0, -32)
func _enter_tree() -> void:
/* Numerically solve for the time-dependent Schrodinger equation in 2D,
using the split operator method. To build and run, type:
rustc qm2d_split_op.rs
./qm2d_split_op
This will output a series of bmp images which show each frame of the
simulation.
References:
@maximetinu
maximetinu / crashd.md
Created November 11, 2023 14:49 — forked from throwaway96/crashd.md
crashd instructions

News

Note: Alternative to crashd (2023-10-30)

If for whatever reason you are unable to use the crashd exploit but still want to root your TV, do not install any new firmware updates. LG has started rolling out patches for another vulnerability. Further details are not yet available.

Note: 2023 models (2023-03-29)

If you have a non-OLED 2023 LG TV, please contact us on Discord. This guide will work on 2023 models.

Introduction

@maximetinu
maximetinu / children_colliders.rs
Last active August 15, 2023 23:58
Example for bevy_rapier to illustrate an issue that I have but haven't yet figured out how to solve
use bevy::prelude::*;
use bevy_rapier2d::prelude::*;
// use bevy_inspector_egui::quick::WorldInspectorPlugin;
fn main() {
App::new()
.insert_resource(ClearColor(Color::rgb(
0xF9 as f32 / 255.0,
0xF9 as f32 / 255.0,
0xFF as f32 / 255.0,
@maximetinu
maximetinu / many_materials.rs
Last active August 7, 2023 16:56
Example benchmark for Bevy 0.11 to replicate a performance bottleneck when updating too many individual materials at runtime
use bevy::{
prelude::*,
reflect::{TypePath, TypeUuid},
render::render_resource::{AsBindGroup, ShaderRef},
sprite::*,
};
use bevy_internal::{
diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
sprite::Material2d,
window::PresentMode,
@maximetinu
maximetinu / .gitattributes
Created October 27, 2021 12:22 — forked from inikitin/.gitattributes
.gitattributes for Unity with case-insensitive Git LFS extension filters
* text=auto
*.cs diff=csharp text
*.cginc text
*.shader text
# Unity YAML
*.anim -text merge=unityyamlmerge diff
*.asset -text merge=unityyamlmerge diff
*.controller -text merge=unityyamlmerge diff