TW plugins

This commit is contained in:
fred 2022-11-02 13:31:39 +01:00
parent 5d470a511b
commit 6e24410099
8 changed files with 25 additions and 1 deletions

View File

@ -59,7 +59,7 @@ while true; do
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
## CHANGE NEXT PORT (HERE YOU CREATE A SOCKET QUEUE)
[ ${PORT} -lt 12345 ] && PORT=$((PORT+${RANDOM:0:3})) || PORT=$((PORT-${RANDOM:0:3}))
[ ${PORT} -le 12345 ] && PORT=$((PORT+${RANDOM:0:3})) || PORT=$((PORT-${RANDOM:0:3}))
## RANDOM PORT SWAPPINESS
###############

20
_12345.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
################################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.1
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
################################################################################
# This script scan Swarm API layer from official bootstraps
# Then publish map of json DApp data
IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID)
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#") # remove comments
do
ipfsnodeid=${bootnode##*/}
mkdir -p ~/.zen/tmp/$IPFSNODEID/$ipfsnodeid
echo "IPFS get /ipns/$ipfsnodeid"
ipfs get -o ~/.zen/tmp/$IPFSNODEID/$ipfsnodeid /ipns/$ipfsnodeid
echo "Updated : ~/.zen/tmp/$IPFSNODEID/$ipfsnodeid"
ls ~/.zen/tmp/$IPFSNODEID/$ipfsnodeid
done

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long