rnagemen,t

This commit is contained in:
fred 2022-10-30 02:29:45 +01:00
parent f9b782cf62
commit bb90b3e6e9
9 changed files with 2 additions and 160 deletions

View File

@ -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 '[
{

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 ...)

View File

@ -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