Last active
December 17, 2020 09:59
-
-
Save dbeley/72fb68609140795e823169c7125653b9 to your computer and use it in GitHub Desktop.
Automatically download favicons
This file contains hidden or 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
#!/usr/bin/env bash | |
./favd.sh google.com google.ico |
This file contains hidden or 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
#!/usr/bin/env bash | |
usage() { printf "%s" "\ | |
Usage: ./favd URL FILENAME | |
Examples: ./favd github.com github.ico | |
"; exit 0; | |
} | |
if [ -z "$1" ] || [ "$1" == "-h" ]; then | |
usage | |
fi | |
wget -qO $2 "http://favd.herokuapp.com/icon?url=$1&size=16..120..320" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment