Skip to content

Instantly share code, notes, and snippets.

@dimatura
dimatura / find_moved_samples.py
Last active September 15, 2023 03:43
find used and missing samples with m8-js, also collect space usage stats
#!/usr/bin/env python3
"""
find used and missing samples with m8-js, also collect space usage stats.
also: for every missing sample, show other filenames under Samples/ with the same basename,
nder the assumption the file may have been moved but not renamed. builds an index of all filenames (slow)
but caches it in a pickle file. note that pickle file is not automatically refreshed when you add/remove samples,
just delete it and re-run in that case.
"""
from pathlib import Path
@dimatura
dimatura / .vimrc
Created May 4, 2019 08:04
vimrc lite
" This must be first, because it changes other options as a side effect.
set nocompatible
" Make backspace behave in a sane manner.
set backspace=indent,eol,start
" Switch syntax highlighting on
syntax on
" Enable file type detection and do language-dependent indenting.