Skip to content

Instantly share code, notes, and snippets.

View nmicht's full-sized avatar

Michelle Torres nmicht

View GitHub Profile
convert -define jpeg:size=800x800 'MC-SFC002 Sófa Cama Queen Aloise.png' -thumbnail '800x800>' \
-gravity center -crop 800x800+0+0\! \
-background white -flatten 'thumbs/MC-SFC002 Sófa Cama Queen Aloise.png'
mogrify -format jpg -path thumbs -thumbnail '300x300>' -gravity center -crop 300x300+0+0\! -background white -flatten *.png
@nmicht
nmicht / squash.sh
Last active March 21, 2018 05:04 — forked from richistron/squash.sh
#! /bin/bash
# move to your local branch
git checkout local_branch
# pull the remotes
git fetch --all
# merge and squash
git merge origin/dirty_branch --squash
@nmicht
nmicht / curl-http-code.sh
Last active August 31, 2019 23:57
This script do a loop to read all the lines in file "url-list" and with curl get the http code response
# This script do a loop to read all the lines in file "url-list"
# Usign curl with get the http code of the url and print it with the url
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE"
echo ' '$LINE
done < url-list