This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder