Skip to content

Instantly share code, notes, and snippets.

@layerssss
Last active December 11, 2015 15:08
Show Gist options
  • Save layerssss/4618705 to your computer and use it in GitHub Desktop.
Save layerssss/4618705 to your computer and use it in GitHub Desktop.
# Usage: `curl https://gist.github.com/raw/4618705/mirror.sh | sh`
rm -Rf /srv/mdn.micy.in.new
wget \
--recursive \
--level=3 \
--wait=1 \
--adjust-extension \
--convert-links \
--backup-converted \
--no-host-directories \
--page-requisites \
--timestamping \
--force-html \
--no-parent \
--directory-prefix=/srv/mdn.micy.in.new/ \
-rH -Ddeveloper.mozilla.org,developer.cdn.mozilla.net,mozorg.cdn.mozilla.net,google.com,google-analytics.com,mozilla.org,statse.webtrendslive.com \
http://developer.mozilla.org/en-US/docs/
rm -Rf /srv/mdn.micy.in
mv /srv/mdn.micy.in.new /srv/mdn.micy.in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment