Skip to content

Instantly share code, notes, and snippets.

@floooh
Created November 21, 2019 13:54
Show Gist options
  • Save floooh/738b54515398fb8e5ee2801dbaac9cb1 to your computer and use it in GitHub Desktop.
Save floooh/738b54515398fb8e5ee2801dbaac9cb1 to your computer and use it in GitHub Desktop.
Bash one liner to encode C64 PRG file into URL.
#
# c64url.sh
#
# on Mac run this to encode a PRG file into a URL and copy URL into clipboard:
#
# sh c64url.sh [PRG filename] | pbcopy
#
base64 $1 | php -r "echo 'https://floooh.github.com/tiny8bit/c64.html?prg='.urlencode(fgets(STDIN));"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment