Skip to content

Instantly share code, notes, and snippets.

View RoootTheFox's full-sized avatar

rooot RoootTheFox

View GitHub Profile
@pwign
pwign / ImageMagick Minecraft Skin
Created December 10, 2019 15:42
For converting 64x32 Minecraft skin to 64x64 format using ImageMagick
convert input.png -background transparent -extent 64x64 \
\( input.png -crop 4x4+4+16 -flop \) -geometry +20+48 -composite \
\( input.png -crop 4x4+8+16 -flop \) -geometry +24+48 -composite \
\( input.png -crop 4x12+8+20 -flop \) -geometry +16+52 -composite \
\( input.png -crop 4x12+4+20 -flop \) -geometry +20+52 -composite \
\( input.png -crop 4x12+0+20 -flop \) -geometry +24+52 -composite \
\( input.png -crop 4x12+12+20 -flop \) -geometry +28+52 -composite \
\( input.png -crop 4x4+44+16 -flop \) -geometry +36+48 -composite \
\( input.png -crop 4x4+48+16 -flop \) -geometry +40+48 -composite \
\( input.png -crop 4x12+48+20 -flop \) -geometry +32+52 -composite \
@aras-p
aras-p / preprocessor_fun.h
Last active March 20, 2026 15:26
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,