You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
lolisafe/scripts
Bobby Wibowo df9887386a
Merge branch 'camjac251-camjac251-build-action' into safe.fiery.me
3 years ago
..
README.md Updated scripts/README.md again again 3 years ago
bump-versions.js Merge branch 'camjac251-camjac251-build-action' into safe.fiery.me 3 years ago
cf-purge.js Updates (very important to read) 3 years ago
clean-up.js Updated 3 years ago
delete-expired.js Updated 3 years ago
thumbs.js Updated thumbs.js 3 years ago

README.md

README

cf-purge.js

$ yarn cf-purge
$ node ./scripts/cf-purge.js

Purge Cloudflare's cache.

Usage:
node scripts/cf-purge.js ...filename

filename:
Upload names separated by space (will automatically include their thumbs if available).

clean-up.js

$ yarn clean-up -h
$ node ./scripts/clean-up.js -h

Clean up files that are not in the database.

Usage:
node scripts/clean-up.js [mode=0|1|2]

mode:
0 = Only list names of files that are not in the database.
1 = Clean up the files.

delete-expired.js

$ yarn delete-expired -h
$ node ./scripts/delete-expired.js -h

Bulk delete expired files.

Usage:
node scripts/delete-expired.js [mode=0|1|2]

mode:
0 = Only list names of the expired files.
1 = Delete expired files (output file names).
2 = Delete expired files (no output).

thumbs.js

[...]

bump-versions.js

[...]