Code and data for arewedecentralizedyet.online and related projects
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix some paths

+6 -6
+2 -2
helpers/diff-from-current.sh
··· 4 4 CSV=$2 5 5 CSV2=$3 6 6 7 - CUR=$(python3 ./hhi.py --json $CSV | jq .shannon) 8 - PREV=$(python3 ./hhi.py --json $CSV2 | jq .shannon) 7 + CUR=$(python3 ./centralization-stats.py --json $CSV | jq .shannon) 8 + PREV=$(python3 ./centralization-stats.py --json $CSV2 | jq .shannon) 9 9 10 10 DIFF=$(echo "$CUR - $PREV" | bc -l) 11 11
+4 -4
helpers/update-datafile.sh
··· 3 3 ATFILE="data/at/$(./helpers/newest.sh data/at)" 4 4 FEDIFILE="data/fedi/$(./helpers/newest.sh data/fedi)" 5 5 GITFILE="data/git/$(./helpers/newest.sh data/git)" 6 - HOSTFILE="worldwide.csv" 7 - DNSFILE="dns-byid.csv" 8 - CERTFILE="cert-byid.csv" 6 + HOSTFILE="data-static/worldwide.csv" 7 + DNSFILE="data-static/dns-byid.csv" 8 + CERTFILE="data-static/cert-byid.csv" 9 9 10 10 ATFILE_OLD="data/at/$(ls -1 data/at | ./helpers/weekago.sh)" 11 11 FEDIFILE_OLD="data/fedi/$(ls -1 data/fedi | ./helpers/weekago.sh)" ··· 25 25 26 26 /usr/local/bin/jq --argjson val "$(sh ./helpers/diff-from-current.sh fedi $FEDIFILE $FEDIFILE_OLD)" '.trends.fedi.weekly_shannon = $val' www/data.json > data.json.tmp && mv data.json.tmp www/data.json 27 27 28 - /usr/local/bin/jq --argjson val "$(sh ./helphers/diff-from-current.sh at $ATFILE $ATFILE_OLD)" '.trends.at.weekly_shannon = $val' www/data.json > data.json.tmp && mv data.json.tmp www/data.json 28 + /usr/local/bin/jq --argjson val "$(sh ./helpers/diff-from-current.sh at $ATFILE $ATFILE_OLD)" '.trends.at.weekly_shannon = $val' www/data.json > data.json.tmp && mv data.json.tmp www/data.json 29 29 30 30 /usr/local/bin/jq --argjson val "$(sh ./helpers/diff-from-current.sh fedi $GITFILE $GITFILE_OLD)" '.trends.git.weekly_shannon = $val' www/data.json > data.json.tmp && mv data.json.tmp www/data.json 31 31