Skip to content

Instantly share code, notes, and snippets.

View heeen's full-sized avatar
🥨

Florian Hänel heeen

🥨
View GitHub Profile
@heeen
heeen / embed-instructions.md
Last active March 11, 2026 12:01
Evangelion 30th Anniversary Special [t6ju8O7a89g] - Japanese (cleaned) & English subtitles

Embedding subtitles

Download the video and both VTT files, then:

ffmpeg -i video.webm -i evangelion-30th.ja.vtt -i evangelion-30th.en.vtt \
  -map 0 -map 1 -map 2 -c:v copy -c:a copy -c:s webvtt \
  -metadata:s:s:0 language=jpn -metadata:s:s:0 title="Japanese" \
  -metadata:s:s:1 language=eng -metadata:s:s:1 title="English" \
 output.webm
@heeen
heeen / patch-cli.js
Created January 12, 2026 23:03
Patch for Claude Code issue #6237 - fixes freeze on /dev/* device paths
#!/usr/bin/env node
/**
* Patch Claude Code CLI to fix device file blocking issue
* https://github.com/anthropics/claude-code/issues/6237
*
* This patches the minified cli.js directly to skip /dev/* paths
* when reading files extracted from bash output.
*
* Usage:
* node patch-cli.js # Patch installed CLI
use winit::{
event::{Event, WindowEvent},
event_loop::{ControlFlow},
};
use std::cell::RefCell;
pub struct ExampleBase {
pub window: winit::window::Window,
pub event_loop: RefCell<winit::event_loop::EventLoop<()>>,
pub test: i32,