trying to fix building of activities that fails because of OOM

This commit is contained in:
Davide Scaini
2026-04-15 09:30:22 +02:00
parent b01b00698c
commit 6890892654
3 changed files with 34 additions and 13 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Pull user feedback from the VPS into ./feedback/ locally.
# Usage: bash scripts/pull_feedback.sh [vps-host] (default: root@95.216.55.151)
set -e
VPS=${1:-root@95.216.55.151}
REMOTE=/var/bincio/data/_feedback
LOCAL=$(dirname "$0")/../feedback
mkdir -p "$LOCAL"
echo "Syncing feedback from $VPS:$REMOTE$LOCAL"
rsync -avz --progress "${VPS}:${REMOTE}/" "$LOCAL/"
echo ""
echo "=== Feedback summary ==="
for f in "$LOCAL"/*.json; do
[[ -f "$f" ]] || continue
handle=$(basename "$f" .json)
count=$(python3 -c "import json,sys; d=json.load(open('$f')); print(len(d) if isinstance(d, list) else 1)" 2>/dev/null || echo "?")
echo " @$handle: $count submission(s)"
done