Update 'README.md'
This commit is contained in:
parent
a746a32f31
commit
c212c807b4
20
README.md
20
README.md
@ -1,3 +1,19 @@
|
||||
# syn3h_releases-mirror
|
||||
The mirror is large so it is at https://hmbp.gq/syn3h_releases-mirror/
|
||||
|
||||
Mirror of syn3h_releases S3 bucket (http://releases.syn3h.com, formerly http://releases.terra.vision)
|
||||
Also here's a copy of the code I used in case it goes missing or something
|
||||
```js
|
||||
var child_process = require("child_process");
|
||||
var fs = require("fs");
|
||||
var parser = require("fast-xml-parser");
|
||||
|
||||
child_process.execSync(`wget -nv http://releases.terra.vision/ -O ListBucketResult.xml`);
|
||||
|
||||
var xml = fs.readFileSync(`ListBucketResult.xml`, 'utf8');
|
||||
var jso = parser.parse(xml);
|
||||
|
||||
var urls = jso.ListBucketResult.Contents.map(x => "http://releases.terra.vision/" + x.Key).filter(x => !x.endsWith("/"));
|
||||
|
||||
fs.writeFileSync("urllist.txt", urls.join("\n"));
|
||||
|
||||
child_process.spawnSync(`wget`, ["-nv", "-x", "-N", "-i", "urllist.txt"], {stdio:"inherit"});
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user