From acca2b2fb244bd2b77c4886f435182b13e806055 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 20 Feb 2021 01:38:13 +0100 Subject: [PATCH] /// --- README.md | 14 ++++++++++++++ zen/bash_template.sh | 4 ++-- zen/new_file_in_astroport.sh | 4 ++-- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cd2253119..0a615f247 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,20 @@ Les publications IPNS de tous les amis "ipfs swarm peers" alimentent ~/.zen/ipfs L'essaim se restructure avec ```cron_MINUTE.sh``` pour se synchroniser et diffuser les données de façon intelligente. +# Magic commands + +``` +# Obtenir la liste de tous ses amis (gchange+) +cat ~/.zen/ipfs_swarm/.12*/G1SSB/_g1.gchange_title + +# Obtenir les PIN IPFS de votre essaim +for astrofile in $(ls ~/.zen/ipfs_swarm/.*/PIN/*/* |sort | uniq); do echo $astrofile; done + + + +``` + + # ANNEXES BROCHURE https://www.copylaradio.com/en_US/blog/blog-1/post/astrxbian-20 diff --git a/zen/bash_template.sh b/zen/bash_template.sh index 9e015c0dc..4ff2ba527 100755 --- a/zen/bash_template.sh +++ b/zen/bash_template.sh @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## -# Author: Fred (support@qo-op.com) -# Version: 2020.12.25 +# Author: +# Version: 0.1 # License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) ######################################################################## MY_PATH="`dirname \"$0\"`" # relative diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 8c8e5ec3d..a9f4a0e04 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -71,11 +71,11 @@ if [[ $KEY ]]; then touch ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/.zen mv ~/astroport/${CAT}/${TMDB}/ajouter_video.txt ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/ # echo "" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/ipns.html -# $MY_PATH/jaklis/lib/natools.py encrypt -k $G1PUB -i ~/.ipfs/keystore/$KEYFILE -o ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/.ipns.key.encrypt.natools +# TRY NATOOLS FOR SECURE SHARING # $MY_PATH/jaklis/lib/natools.py encrypt -k $G1PUB -i ~/.ipfs/keystore/$KEYFILE -o ~/.zen/ipfs/.${IPFSNODEID}/KEY/TMDB_$TMDB/.ipns.key.encrypt.natools fi # IPNS index.html Redirect to ipfs streaming link (could be contract or anything !!) echo "" > ~/.zen/KEY/TMDB_$TMDB/${G1PUB}/index.html -NEWIPFS=$(ipfs add -rHq ~/.zen/KEY/TMDB_$TMDB | tail -n 1 ) +NEWIPFS=$(ipfs add -rHq ~/.zen/KEY/TMDB_$TMDB/ | tail -n 1 ) ipfs name publish --key="TMDB_$TMDB" $NEWIPFS ########################################################################