Skip to content

Instantly share code, notes, and snippets.

@boyvanamstel
Created March 7, 2017 22:35
Show Gist options
  • Save boyvanamstel/0b21aa82f5a4af77093077f72fc12b38 to your computer and use it in GitHub Desktop.
Save boyvanamstel/0b21aa82f5a4af77093077f72fc12b38 to your computer and use it in GitHub Desktop.
MarkeyJester’s Motorola 68000 Beginner’s Tutorial Readability Update
#!/bin/sh
#
# Download a copy of the manual, you'll need wget (brew install wget)
#
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --random-wait --domains mrjester.hapisan.com --no-parent http://mrjester.hapisan.com/04_MC68/Index.html
cd mrjester.hapisan.com/04_MC68
#
# Update styles to be a little easier on the eyes
#
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/bgcolor\=white background\=\"Index_files\/image001\.gif\"//g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/bgcolor\=black background\=\"Index_files\/image001\.gif\"//g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\<body /\<body style\=\"max-width\:640px\;margin\:auto\;line-height\:1\.5\;\"/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/font-family\:\"Lucida Console\"\;color\:white/font-family\:\"Lucida Console\"\;color\:black/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\font-size\:12\.0pt\;/font-size\:14\.0pt\;/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\color\:yellow/color\:brown/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\color\:white/color\:black/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\color\:\#CC99FF/color\:darkmagenta/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\color\:\#FFCC00/color\:coral/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\color\:\#FFCC99/color\:crimson/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\color\:\#99CCFF/color\:cadetblue/g' {} \;
LC_ALL=C find ./ -type f -name *.html -exec sed -i '' 's/\color\:\#CCFFCC/color\:lightseagreen/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment