Skip to content

Instantly share code, notes, and snippets.

View kubami9's full-sized avatar

Kuba Michalski kubami9

View GitHub Profile
@kubami9
kubami9 / recursive-resize.sh
Last active March 11, 2021 12:25
Resize all images in the given directory and all its subdirectories (recursively) to given width (if they're bigger) while keeping the ratio.
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
SIZE=$1
DIR=$2
function resizeImages {
for IMAGE in $@
do
# Installs vs-code extensions I use
# After the install is done, I manually remove Winter-something theme, Peacock, NxConsole and I think one more,
# they come with John Papa's Angular essentials package
code --install-extension alefragnani.pascal
code --install-extension alefragnani.pascal-formatter
code --install-extension Angular.ng-template
code --install-extension arthurwhite.white
code --install-extension asvetliakov.vscode-neovim
code --install-extension BriteSnow.vscode-toggle-quotes