Skip to content

Instantly share code, notes, and snippets.

View fr0der1c's full-sized avatar
🎯
Focusing

Fr0der1c fr0der1c

🎯
Focusing
View GitHub Profile
@fr0der1c
fr0der1c / delete_unused_assets.py
Created December 22, 2022 09:20
Logseq find unused assets & find missing assets
import os
import shutil
assets_dir = './assets'
journal_dir = './journals'
pages_dir = './pages'
to_delete_dir = './to_delete'
def get_all_assets() -> list[str]:
@fr0der1c
fr0der1c / 1.sh
Created April 30, 2019 13:23
Batch unrar on macOS
brew install unrar
find . -name "*.rar" -exec unrar -y -ad x {} \;
// https://gotofritz.net/blog/tutorials/batch-unrar-command-line-os-x/index.html