DU + Astroport pre launching page + cron_MINUTE = Saveurs logicielles
This commit is contained in:
parent
db98244be5
commit
dbcb36b4ec
|
@ -38,10 +38,7 @@ fi
|
|||
##################################################################
|
||||
# Country Node Phone international prefix (TODO Worldwide)
|
||||
export COUNTRY="+33"
|
||||
##################################################################
|
||||
# DU has a G1 value changed every 6 month!
|
||||
# ./_DU Updated by cron_CODE.backup.sh
|
||||
if [[ -f "./_DU" ]]; then export DUFACTOR=$(bc <<< "scale=2; $(cat "./_DU") / 100"); else log "__SUB:init.sh: FAILING TO FIND ./_DU EXIT!!!"; exit; fi
|
||||
|
||||
##################################################################
|
||||
# Choose Default Unit: G1, DU, LOVE (DU cents), ZEN (G1 cents)
|
||||
export COIN="G1"
|
||||
|
@ -60,17 +57,27 @@ fi
|
|||
##################################################################
|
||||
# SMS SIM Card Phone Number
|
||||
export MASTERPHONE="+33695196729"
|
||||
export ADRESSE="G1FabLab"
|
||||
export ADRESSE="G1Pub"
|
||||
export G1DAB="NO"
|
||||
##################################################################
|
||||
# ADMIN COMMAND PHONE ORIGIN
|
||||
export ADMINPHONE="+33695196729"
|
||||
export ADMINPHONE="+33647683646"
|
||||
export ADMINPSEUDO="Fred"
|
||||
##################################################################
|
||||
# DUNITER/CESIUM+ DEFAULT SERVERS
|
||||
|
||||
export DUNITER="https://g1.duniter.org"
|
||||
export CESIUM="https://g1.data.le-sou.org"
|
||||
##################################################################
|
||||
# DU has a G1 value changed every 6 month!
|
||||
# "~/.zen/_DU" removed every 6 month for refresh
|
||||
if [[ -f ~/.zen/_DU ]]; then
|
||||
export DUFACTOR=$(bc <<< "scale=2; $(cat ~/.zen/_DU) / 100")
|
||||
else
|
||||
LASTDU=$(curl -s ${DUNITER}/blockchain/with/ud | jq '.result.blocks[]' | tail -n 1) || exit 1
|
||||
[[ $LASTDU != "" ]] && curl -s ${DUNITER}/blockchain/block/${LASTDU} | jq -r '.dividend' > ~/.zen/_DU || exit 1
|
||||
export DUFACTOR=$(bc <<< "scale=2; $(cat ~/.zen/_DU) / 100")
|
||||
fi
|
||||
|
||||
# TODO Use latest Silkaj from "sudo fredp3 install silkaj"
|
||||
# export SILKAJ="/usr/local/bin/silkaj"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
$to = "webmaster@zicmama.com"; // Your email address
|
||||
$subject = "MadeInZion Banque Libre Contact";
|
||||
$to = "support@qo-op.com"; // Your email address
|
||||
$subject = "Astroport Home Contact";
|
||||
|
||||
if (isset($_REQUEST['phone'])) $phone = $_REQUEST['phone']; else $phone = "";
|
||||
if (isset($_REQUEST['email'])) $email = $_REQUEST['email']; else $email = "";
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 226 KiB After Width: | Height: | Size: 109 KiB |
Binary file not shown.
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 17 KiB |
Binary file not shown.
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 114 KiB |
|
@ -44,7 +44,7 @@
|
|||
</div>
|
||||
|
||||
<div class="row">
|
||||
<h2>compte à rebour enclenché</h2>
|
||||
<h2>compte à rebour...</h2>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="clock" style="margin:2em;"></div>
|
||||
|
@ -58,7 +58,7 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xl-9 mx-auto">
|
||||
<h1>Activer une nouvelle Station</h1><br><br>
|
||||
<h1>Activer une Station</h1><br><br>
|
||||
</div>
|
||||
<div class="col-md-10 col-lg-8 col-xl-7 mx-auto">
|
||||
<form id="formphone">
|
||||
|
@ -77,7 +77,7 @@
|
|||
<div class="row">
|
||||
<div class="col-xl-9 mx-auto">
|
||||
<div id="phoneresultat">
|
||||
<br><h4>Recevez votre Clef<br>Libérez-vous... Soyez vous même</h4>
|
||||
<br><h4>LIBRE<br>vers un Futur plus Humain</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -85,14 +85,6 @@
|
|||
<div class="row">
|
||||
<div class="col-xl-9 mx-auto">
|
||||
<h3><div id="typed-strings">
|
||||
<p>Astroport c'est un code <strong>100% Libre</strong>^1000, tissé avec Amour !^1000</p>
|
||||
<p>Astroport est un <em>système de Communication</em> dernière génération.^1000 Pair à pair & ANOPTIQUE !!^1000</p>
|
||||
<p>Astroport connecte <strong>les Humains</strong>...^1000 Sans flicage! Ni contrôle.^1000</p>
|
||||
<p>Astroport accélère <strong>vos échanges !</strong> Et^1000 facilite les actions communes...^1000</p>
|
||||
<p>Astroport est un <strong>Système de Stockage</strong>^1000 partagé et hébergé entre amis^1000</p>
|
||||
<p>Astroport répartit la <em>Responsabilité Numérique</em>^1000 à ses Membres Forgerons^1000</p>
|
||||
<p>Astroport établit des <strong><em>Zones Economiques Naturelles</em></strong>^1000, où l'Humain échange <strong>ZEN</strong> ;)^1000</p>
|
||||
<p>Astroport est un <strong>Atelier Applicatif Distribué</strong>^1000 une Forge Logicielle Libre et Collective^1000</p>
|
||||
<p>Prenez place dans le <strong><em>Metavers Libre!</em></strong>^5000 Inscrivez-vous...^3000</p>
|
||||
</div>
|
||||
<span id="typed"></span></h3>
|
||||
|
@ -101,6 +93,32 @@
|
|||
|
||||
</div>
|
||||
</header>
|
||||
<!-- Image Showcases -->
|
||||
<section class="showcase">
|
||||
<div class="container-fluid p-0">
|
||||
<div class="row no-gutters">
|
||||
|
||||
<div class="col-lg-6 order-lg-2 text-white showcase-img" style="background-image: url('img/bg-showcase-1.jpg');"></div>
|
||||
<div class="col-lg-6 order-lg-1 my-auto showcase-text">
|
||||
<h2>Embarquez dans un nouvel Univers Numérique et Réel</h2>
|
||||
<p class="lead mb-0">Impossible à réaliser <b>jusqu'à aujourd'hui</b>!
|
||||
Nous avons mis au point un système d'information totalement décentralisé. Créé par les Humains qui le compose.
|
||||
Chacun y est souverain. <b>Forgeron monétaire </b> dans l'Oasis formé par son réseau d'amis.
|
||||
Ici nul privilège autre que celui consciemment admis.<br><br>
|
||||
<h4>Il suffit de se saisir d'une clef pour y entrer !</h4></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row no-gutters">
|
||||
<div class="col-lg-6 text-white showcase-img" style="background-image: url('img/bg-showcase-2.jpg');"></div>
|
||||
<div class="col-lg-6 my-auto showcase-text">
|
||||
<h2>Bâtisseurs d'un Monde Libre</h2>
|
||||
<p class="lead mb-0">Astroport compose le Metavers qui connecte nos mini-mondes
|
||||
<a href="https://gchange.fr" target="gchange">Gchange organise nos échanges</a> gratuitement !!<br>
|
||||
<h4>Devenons maitre de son Economie! Entre amis et collaborateurs !</h4></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Icons Grid -->
|
||||
<section class="features-icons bg-light text-center">
|
||||
|
|
|
@ -1,96 +0,0 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
# Author: Fred (support@qo-op.com)
|
||||
# Version: 2020.04.19
|
||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
||||
########################################################################
|
||||
MY_PATH="`dirname \"$0\"`" # relative
|
||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||
ME="${0##*/}"
|
||||
|
||||
# Change cron_MINUTE.sh cron PATH
|
||||
$MY_PATH/cron_VRFY.sh
|
||||
|
||||
# CORRECT PATH
|
||||
[[ ! $(echo $PATH | grep -F "/usr/local/bin") ]] && export PATH="$PATH:/usr/local/bin"
|
||||
[[ ! $(echo $PATH | grep -F "~/.local/bin") ]] && export PATH="$PATH:~/.local/bin"
|
||||
|
||||
[[ ! $(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) ]] && echo "ipfs daemon not running. EXIT" && exit 1
|
||||
|
||||
ipfsnodeid=$(/usr/local/bin/ipfs id -f='<id>\n')
|
||||
g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
||||
|
||||
# UNIVERSAL TIME (TODO ntpdate, but sudo problem)
|
||||
minute=$(date -u +%M)
|
||||
heure=$(date -u +%H)
|
||||
timebar="$heure:$minute"
|
||||
jourdelasemaine=$(date +%w)
|
||||
jourdumois=$(date +%d)
|
||||
numerosemaine=$(date +%V)
|
||||
echo $timebar
|
||||
# TIME NTP SYNC: TODO: Problem being root (stickybit INSTALL?)
|
||||
# sudo ntpdate ntp.pool.org
|
||||
|
||||
# #SWARM0 DEV MODE
|
||||
# ACTIVATE 5 MN "git pull" update
|
||||
[[ $(($minute % 5)) == 0 ]] && sleep $((1 + RANDOM % 12)) && cd $MY_PATH/../ && git pull && cd $MY_PATH
|
||||
|
||||
|
||||
|
||||
##################################################################
|
||||
# REFRESH IPFS SWARM DATA EVERY 12 minutes
|
||||
[[ $(($minute % 12)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/ssb_IPFS_swarm.sh
|
||||
##################################################################
|
||||
|
||||
##################################################################
|
||||
# MONITOR INPUT TX (TODO: DEBUG)
|
||||
# Activate later for DAB ZenTx Machines
|
||||
# [[ $(($minute % 5)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/g1_MONITOR_zen.sh "5 minutes"
|
||||
##################################################################
|
||||
|
||||
##################################################################
|
||||
# YOUTUBE-DL
|
||||
##################################################################
|
||||
# RANDOMLY RUN SSB GET zenytv (avoid simultaneous run in swarm)
|
||||
randh=$((1 + RANDOM % 24))
|
||||
# [[ $(($heure % $randh)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/ssb_GET_zenytv.sh
|
||||
##################################################################
|
||||
randh=$((1 + RANDOM % 24))
|
||||
# [[ $(($heure % $randh)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/ssb_GET_zenyta.sh
|
||||
##################################################################
|
||||
|
||||
|
||||
##################################################################
|
||||
# MIDNIGHT:01 : ZENBOT CLEANING & UPDATE
|
||||
if [[ "$timebar" == "00:01" ]]; then
|
||||
sleep $((1 + RANDOM % 10))
|
||||
|
||||
# UPGRADE youtube-dl
|
||||
youtube-dl --rm-cache-dir
|
||||
youtube-dl -U
|
||||
|
||||
sleep $((1 + RANDOM % 10))
|
||||
# LOG ROTATE EVERY SUNDAY
|
||||
[[ $jourdelasemaine == 0 ]] && mv -f /tmp/astroport.log ~/.zen/astroport.$numerosemaine.log # LOG BACKUP FOR 1 YEAR !!
|
||||
|
||||
sleep $((1 + RANDOM % 10))
|
||||
# GIT PULL
|
||||
cd $MY_PATH/../ && git pull && cd $MY_PATH # UPDATE CODE git pull
|
||||
|
||||
# Clear 24h ssb_GET markers
|
||||
rm ~/.zen/zenytv.last.ts
|
||||
rm ~/.zen/zenyta.last.ts
|
||||
|
||||
# SYNC SSB Friends with IPFS SWARM
|
||||
$MY_PATH/ssb_IPFS_swarm.sh
|
||||
|
||||
fi
|
||||
##################################################################
|
||||
|
||||
|
||||
# MAXSTORAGE UPDATE
|
||||
if [[ $jourdumois == 7 ]]; then
|
||||
availableDiskSize=$(df -P ~/ | awk 'NR>1{sum+=$4}END{print sum}')
|
||||
diskSize="$((availableDiskSize / 2))"
|
||||
ipfs config Datastore.StorageMax $diskSize
|
||||
fi
|
Loading…
Reference in New Issue