From eec22d64e473d2d0fb1e79103c7286023ce06621 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 6 Mar 2020 23:56:19 +0000 Subject: [PATCH] --- Cookbook.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cookbook.md b/Cookbook.md index 2ab855a..0dcce40 100644 --- a/Cookbook.md +++ b/Cookbook.md @@ -5,6 +5,10 @@ * translate mp3 to ogg: `ffmpeg -i file.mp3 file.ogg` * pngcrush everything: `for file in **/*.png ; do pngcrush -brute -ow $file; done` +* pngcrush everything that's changed: +```shell +for file in $(git status --porcelain --untracked=all | cut -b 4- | grep "\.png$") ; do pngcrush -brute -ow $file; done +``` * sizes of things in C#: ```