Skip to content

Instantly share code, notes, and snippets.

@floooh
Created November 21, 2019 14:10
Show Gist options
  • Save floooh/4a6e035236f74513ea6cfdd6578eea9d to your computer and use it in GitHub Desktop.
Save floooh/4a6e035236f74513ea6cfdd6578eea9d to your computer and use it in GitHub Desktop.
encode C64 PRG file in URL and open in browser
#!/bin/sh
#
# usage on Mac (assuming 'chmod u+x c64.sh'):
#
# ./c64.sh [PRG filename]
#
open $(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