Skip to content

Instantly share code, notes, and snippets.

@dmlary
dmlary / export-hfs.py
Created January 18, 2024 00:38
python script using pyfshfs to dump a hfs disk image that macos could not mount
# used this on an ubuntu docker image with `apt install python3-libfshfs`
import pyfshfs
import os
def export_file(entry, dest):
print(f'export {dest}')
dir = os.path.dirname(dest)
if not os.path.exists(dir):
os.makedirs(dir)
@dmlary
dmlary / stepping_egui.rs
Last active October 25, 2025 16:49
bevy v0.13 stepping egui interface
// plugin for demonstrating bevy v0.13 system stepping using egui interface
// Released under the MIT License
use std::collections::HashMap;
use bevy::{
app::MainScheduleOrder,
ecs::schedule::{InternedScheduleLabel, NodeId, ScheduleLabel, Stepping},
prelude::*,
};
@dmlary
dmlary / blender-copy-collection-props.py
Last active June 24, 2025 20:51
Blender Addon: Copy Collection Custom Properties to Collection Instance
# work-around for https://projects.blender.org/blender/blender/issues/140819
bl_info = {
"name": "Copy Collection Custom Properties",
"description": "Copy Collection custom properties when Collection instances are created",
"author": "David M. Lary",
"version": (0.2,4),
"blender": (2, 80, 0),
"category": "Development"
}