Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Created August 14, 2014 02:36
Show Gist options
  • Save shichao-an/d69391c06a264a1836ad to your computer and use it in GitHub Desktop.
Save shichao-an/d69391c06a264a1836ad to your computer and use it in GitHub Desktop.
Get icon
#!/bin/bash
pattern="http://dcbdluf1ahqio.cloudfront.net/%s/%s.png"
service="$1"
width=${2:-42}
size="${width}x${width}"
url=$(printf "$pattern" "$service" "$size")
wget $url -O "${service}_icon.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment