Skip to content

Instantly share code, notes, and snippets.

@phil0v
phil0v / commands.txt
Created February 5, 2026 14:23 — forked from JesseRWeigel/commands.txt
ImageMagick Compression Commands
// Must install ImageMagick first
http://www.imagemagick.org/script/index.php
//This compresses a jpg with no visible loss of quality. Add in your own file names for target.jpg and result.jpg
convert -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% target.jpg result.jpg
// This does the same as above but to an entire folder (will overwrite original files):
mogrify -strip -interlace Plane -sampling-factor 4:2:0 -quality 85% *.jpg
//This does the same thing but to all subfolders as well (Be careful with this one it will overwrite all original files)
@phil0v
phil0v / 000001_init_schema.down.sql
Created February 5, 2026 14:14 — forked from SafeEval/000001_init_schema.down.sql
Example of using SQLite with Golang. Create an in-memory DB, with load/save to disk and embedded migrations.
-- file: migrations/00001_init_schema.down.sql
DROP TABLE users;