From bb90b3e6e9d2001868388c994a711189f0cc6980 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 30 Oct 2022 02:29:45 +0100 Subject: [PATCH] rnagemen,t --- 12345.sh | 2 +- crowdbridge.sh => ASTROBOT/_G1CrowdBunker.sh | 0 FirstBOOT.sh | 14 ----- ajouter_video.sh => ajouter_media.sh | 0 astroport.desktop | 2 +- kodi_uqload_downloader.sh | 28 ---------- story.fr.txt | 39 -------------- astroscan.sh => tools/astroscan.sh | 0 tools/instascan_login.sh | 77 ---------------------------- 9 files changed, 2 insertions(+), 160 deletions(-) rename crowdbridge.sh => ASTROBOT/_G1CrowdBunker.sh (100%) delete mode 100755 FirstBOOT.sh rename ajouter_video.sh => ajouter_media.sh (100%) delete mode 100755 kodi_uqload_downloader.sh delete mode 100644 story.fr.txt rename astroscan.sh => tools/astroscan.sh (100%) delete mode 100755 tools/instascan_login.sh diff --git a/12345.sh b/12345.sh index 1f8b4016..f0756d29 100755 --- a/12345.sh +++ b/12345.sh @@ -337,7 +337,7 @@ Content-Type: text/html; charset=UTF-8 [[ ${arr[4]} == "type" ]] && wtype="${arr[5]}" || wtype="Youtube" ## CREATION TIDDLER "G1Voeu" G1CopierYoutube - # /.zen/Astropor.ONE/ajouter_video.sh "$(urldecode $wsource)" "$wtype" "$QRCODE" & + # /.zen/Astropor.ONE/ajouter_media.sh "$(urldecode $wsource)" "$wtype" "$QRCODE" & echo "## Insertion tiddler : G1CopierYoutube" echo '[ { diff --git a/crowdbridge.sh b/ASTROBOT/_G1CrowdBunker.sh similarity index 100% rename from crowdbridge.sh rename to ASTROBOT/_G1CrowdBunker.sh diff --git a/FirstBOOT.sh b/FirstBOOT.sh deleted file mode 100755 index 1079cca4..00000000 --- a/FirstBOOT.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -######################################################################## -# Author: Fred (support@qo-op.com) -# Version: 2020.12.05 -# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) -######################################################################## -# FirstBOOT.sh -# Let AstrXbian ISO resize Filesystem -# Change /etc/rc.local to activate ISOconfig.sh n next reboot -# - -sudo sed -i "s/FirstBOOT/ISOconfig/g" /etc/rc.local - -exit 0 diff --git a/ajouter_video.sh b/ajouter_media.sh similarity index 100% rename from ajouter_video.sh rename to ajouter_media.sh diff --git a/astroport.desktop b/astroport.desktop index c91e2ba0..95729eb8 100755 --- a/astroport.desktop +++ b/astroport.desktop @@ -1,7 +1,7 @@ #!/usr/bin/env xdg-open [Desktop Entry] Name=Astroport -Exec=/home/_USER_/.zen/Astroport.ONE/ajouter_video.sh +Exec=/home/_USER_/.zen/Astroport.ONE/ajouter_media.sh Icon=/home/_USER_/.zen/Astroport.ONE/logo96.png Type=Application Categories=Utility diff --git a/kodi_uqload_downloader.sh b/kodi_uqload_downloader.sh deleted file mode 100755 index fb0342a3..00000000 --- a/kodi_uqload_downloader.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -######################################################################## -MY_PATH="`dirname \"$0\"`" # relative -MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized -ME="${0##*/}" -######## YOUTUBE-DL ########## -## NOW INSTALL yt-dlp AND LINK TO youtube-dl -# _ _ _ -#| | _____ __| (_) -#| |/ / _ \ / _` | | -#| < (_) | (_| | | -#|_|\_\___/ \__,_|_| -# COPY UQLOAD LINKS DETECTED IN KODI LOG -############################################## -### TODO INSTALL FROM START and AUTO SCRAPE KODI LOG -############################################## - if [[ ! -f $HOME/.local/bin/uqload_downloader ]]; then - cd /tmp - git clone https://github.com/papiche/uqload_downloader.git - cd uqload_downloader/cli - ./download_from_kodi_log.sh - [[ -f $HOME/.local/bin/uqload_downloader ]] && zenity --warning --width ${large} --text "INSTALLATION download_from_kodi_log.sh OK" - cp download_from_kodi_log.sh $HOME/.local/bin/ - else - ## UTILISEZ $HOME/.local/bin/download_from_kodi_log.sh - zenity --warning --width ${large} --text "UTILISEZ download_from_kodi_log.sh en ligne de commande..." - exit 0 - fi diff --git a/story.fr.txt b/story.fr.txt deleted file mode 100644 index 4fd06b53..00000000 --- a/story.fr.txt +++ /dev/null @@ -1,39 +0,0 @@ -Ce JEu est fait pour ceux qui veulent apprendre à construire un monde harmonieux et abondant. - -Vous découvrirez les nouvelles limites et possibilités que ce mode de vie respectueux de l'environnement vous offre. - -Ce guide interactif propose de répondre de façon réaliste aux défis du monde acuel. -Il partage des solutions faisant appel à des techniques traditionnelles et modernes pour réduire notre empreinte écologique. - -Les antiques architectes qui foulaient la terre à pied nus ont réussi à construire les jardin suspendus de Babylone. -En faisant circuler ce jeu chacun pourra l'enrichir, le partager et faire profiter des découvertes à tous. - -Ce manuel ne propose pas de méthode générale. -Il propose au contraire plusieurs façons de batir avec différents matériaux. -Ainsi vous disposerez d'une grande variété de choix pour créer votre Astroport. - -Le climat de votre région est le premier critère. -Choisir les bons matériaux, les bonnes techniques, apporter le plus de bénéfice pour un cout minimal. - -Climat tempéré -* Construisez dans une zone bien exposé au soleil durant l'hiver -* Isolez bien votre sol, toit et murs pour garder la chaleur -* Installez de larges fenètres au sud et de petites au nord - - -Maison passive -Jardin sol vivant -Eau chaude - -Puit canadien -Compost Papin -Mur en canettes - - -Astroport forme une strucutre informationnelle chainées faites de "TiddlyWiki" (TW) publiés sur IPFS. -Chaque soir à 20h12, Astro se met en marche pour - -- analyser les "tiddlers" du TW "Astronaute" -- repérer les amis dans IPFS (ayant échangé leur "Dessin de Moa") et récupérer leur TW. -- enfin opérer les enrichissements informationnels selon les canaux partagés et les règles établies (CrossTagging, PIN contract, Web Scrapping, etc ...) - diff --git a/astroscan.sh b/tools/astroscan.sh similarity index 100% rename from astroscan.sh rename to tools/astroscan.sh diff --git a/tools/instascan_login.sh b/tools/instascan_login.sh deleted file mode 100755 index 33b6977b..00000000 --- a/tools/instascan_login.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash -################################################################################ -MY_PATH="`dirname \"$0\"`" # relative -MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized -ME="${0##*/}" - -MOATS=$(date -u +"%Y%m%d%H%M%S%4N") -IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID) - -instascan=$(ps auxf --sort=+utime | grep -w nc | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) -[[ $instascan ]] && echo "already running" && exit 1 - -# Check who is .current PLAYER -PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null) || ( echo "noplayer" && exit 1 ) -PSEUDO=$(cat ~/.zen/game/players/.current/.pseudo 2>/dev/null) || ( echo "nopseudo" && exit 1 ) -G1PUB=$(cat ~/.zen/game/players/.current/.g1pub 2>/dev/null) || ( echo "nog1pub" && exit 1 ) -IPFSNODEID=$(cat ~/.zen/game/players/.current/.ipfsnodeid 2>/dev/null) || ( echo "noipfsnodeid" && exit 1 ) -PLAYERNS=$(cat ~/.zen/game/players/.current/.playerns 2>/dev/null) || ( echo "noplayerns" && exit 1 ) - -# Check if Astroport Station already has a "captain" -echo "Connected Astronaute $PLAYER ($PSEUDO) " - -xdg-open "file://$HOME/.zen/Astroport.ONE/templates/instascan.html" 2>/dev/null - -function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; } - -while true; do - - URL=$(echo -e 'HTTP/1.1 200 OK\r\n' | nc -l -p 1234 -q 1 | grep '^GET' | cut -d ' ' -f2 | cut -d '?' -f2) - echo "==================================================" - echo "GET RECEPTION : $URL" - arr=(${URL//[=&]/ }) - echo "PARAM : ${arr[0]} = ${arr[1]} & ${arr[2]} = ${arr[3]} & ${arr[4]} = ${arr[5]}" - - if [[ ${arr[0]} == "qrcode" ]]; then - ## Astroport.ONE local use QRCODE Contains PLAYER G1PUB - QRCODE=$(echo $URL | cut -d ' ' -f2 | cut -d '=' -f 2 | cut -d '&' -f 1) && echo "Instascan.html QR : $QRCODE" - g1pubpath=$(grep $QRCODE ~/.zen/game/players/*/.g1pub | cut -d ':' -f 1 2>/dev/null) - PLAYER=$(echo "$g1pubpath" | rev | cut -d '/' -f 2 | rev 2>/dev/null) - - ## FORCE LOCAL USE ONLY. Remove to open 1234 API - [[ ! -d ~/.zen/game/players/$PLAYER || $PLAYER == "" ]] && echo "AUCUN PLAYER !!" && exit 1 - - ## LOGIN - rm -f ~/.zen/game/players/.current - ln -s ~/.zen/game/players/$PLAYER ~/.zen/game/players/.current - - - [[ ${arr[2]} == "" ]] && continue - fi - - ## Demande de copie d'une URL reçue. - if [[ ${arr[0]} == "qrcode" && ${arr[2]} == "url" ]]; then - wsource="${arr[3]}" - [[ ${arr[4]} == "type" ]] && wtype="${arr[5]}" || wtype="Youtube" - - ## LANCEMENT COPIE - ~/.zen/astrXbian/ajouter_video.sh "$(urldecode $wsource)" "$wtype" "$QRCODE" & - - if [[ $PLAYER == $CAPTAIN ]]; then - echo "running as captain" - else - # running for another player than captain. - # Captain copy for all PLAYER (Gchange key conversion TODO) - echo "$QRCODE $wsource" - - fi - fi - - ## ENVOYER MESSAGE GCHANGE POUR QRCODE - - ## Une seule boucle !!! - [[ "$1" == "ONE" ]] && exit 0 -done - - -