Skip to content

Instantly share code, notes, and snippets.

@najmam
Created April 5, 2017 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save najmam/a58962149ca529c5165c800c494d40df to your computer and use it in GitHub Desktop.
Save najmam/a58962149ca529c5165c800c494d40df to your computer and use it in GitHub Desktop.
Script that opens today's Garfield strip in the browser
#!/bin/sh
year=$(date +%Y)
month=$(date +%m)
day=$(date +%d)
xdg-open https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/${year}/${year}-${month}-${day}.gif
# if you're on Mac, use open instead of xdg-open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment