This commit is contained in:
2025-01-26 17:56:09 +01:00
parent 4b5d07fd12
commit fc7dcd107c
6 changed files with 60 additions and 18 deletions

30
deprecati/make_stats.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# Scarica pagine "test" da ip pre CF
curl --no-progress-meter -L http://52.203.236.205:8080/ -o stats1.html
curl --no-progress-meter -L http://52.203.236.205:8081/ -o stats2.html
curl --no-progress-meter -L http://52.203.236.205:8080/download/userViewer.json -o userViewer.json
curl --no-progress-meter -L http://52.203.236.205:8080/download/userVieweOperation.json -o userVieweOperation.json
# Aggiusta link
sed -i 's|/download/userViewer.json|./userViewer.json|g' stats1.html
sed -i 's|/download/userViewer.json|./userViewer.json|g' stats2.html
sed -i 's|/download/userVieweOperation.json|./userVieweOperation.json|g' stats1.html
sed -i 's|/download/userVieweOperation.json|./userVieweOperation.json|g' stats2.html
# Paranoid Hardenoid
sed -i 's/\.js/[.]js/g' stats1.html
sed -i 's/\.js/[.]js/g' stats2.html
sed -i 's/\.php/[.]php/g' stats1.html
sed -i 's/\.php/[.]php/g' stats2.html
sed -i 's/\.py/[.]py/g' stats1.html
sed -i 's/\.py/[.]py/g' stats2.html
sed -i 's/\.js/[.]js/g' userVieweOperation.json
sed -i 's/\.js/[.]js/g' userViewer.json
sed -i 's/\.php/[.]php/g' userVieweOperation.json
sed -i 's/\.php/[.]php/g' userViewer.json
sed -i 's/\.py/[.]py/g' userVieweOperation.json
sed -i 's/\.py/[.]py/g' userViewer.json
sed -i 's/\[\.]json/.json/g' stats1.html
sed -i 's/\[\.]json/.json/g' stats2.html