Skip to content

Instantly share code, notes, and snippets.

@Neo-Desktop
Last active December 1, 2022 15:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neo-Desktop/b9388b03159862e0b0541de907c37a08 to your computer and use it in GitHub Desktop.
Save Neo-Desktop/b9388b03159862e0b0541de907c37a08 to your computer and use it in GitHub Desktop.
Modern.ie Hyper-V (2012) Instances

These are scripts to download all the modern.ie hyper-v (2012) instaces from archive.org's web crawler archive

# archive.org cloudflare worker proxy
addEventListener('fetch', event => {
const url = new URL(event.request.url);
var t = url.pathname.split('/');
t.shift();
t.forEach((v,k) => { if (v.startsWith(`http`)) t[k] += `/`; })
event.passThroughOnException();
console.log(event.request);
event.respondWith(fetch(t.join(`/`), {
method: event.request.method,
headers: event.request.headers,
redirect: event.request.redirect
}));
})
#!/bin/sh
# downloading script
if command -v aria2c &> /dev/null; then
aria2c -c -i .links
else if command -v wget &> /dev/null; then
wget -c -i .links
else if command -v curl &> /dev/null; then
curl -O < $(cat .links)
else
echo "please install aria, wget, or curl"
fi
#!/bin/sh
# md5 verification
if [ -f md5sum.txt ]; then
rm -rf md5sum.txt
fi
for i in *.md5.txt; do
echo "`cat $i | tr '[:upper:]' '[:lower:]'` ${i%.md5.txt}" >> md5sum.txt
done
md5sum -c md5sum.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment