forked from STI/Astroport.ONE
62 lines
962 B
Markdown
62 lines
962 B
Markdown
|
# SCRIPT01/BLOCKCHAIN01
|
||
|
|
||
|
## ssh
|
||
|
|
||
|
https://pad.p2p.legal/keygen
|
||
|
|
||
|
## git
|
||
|
|
||
|
```
|
||
|
git add .
|
||
|
git commit -m "mon commentaire"
|
||
|
git push
|
||
|
```
|
||
|
|
||
|
## $() function
|
||
|
|
||
|
```
|
||
|
. ${MY_PATH}/my.sh
|
||
|
|
||
|
```
|
||
|
|
||
|
## Absolute ${MY_PATH}
|
||
|
|
||
|
```
|
||
|
MY_PATH="`dirname \"$0\"`" # relative
|
||
|
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||
|
ME="${0##*/}"
|
||
|
```
|
||
|
|
||
|
## ${} variable
|
||
|
|
||
|
```
|
||
|
VAR="value or list of terms"
|
||
|
TAB=("value or list of terms")
|
||
|
|
||
|
echo ${VAR}
|
||
|
echo ${TAB}
|
||
|
echo ${TAB[@]}
|
||
|
|
||
|
# for, while, select, ... done (< read source)
|
||
|
|
||
|
```
|
||
|
|
||
|
## bug des leviers
|
||
|
|
||
|
```
|
||
|
sed -i='' 's/off/on/' ../logic/stationlogic.ben
|
||
|
```
|
||
|
|
||
|
## WSL problème décodage
|
||
|
|
||
|
```
|
||
|
dos2unix
|
||
|
```
|
||
|
|
||
|
|
||
|
# FORMATION WEB3 : https://chaton.g1sms.fr
|
||
|
|
||
|
Ajoutez une "Zen Station" à votre Région.
|
||
|
|
||
|
* Installez Astroport.ONE et suivez la procédure : https://pad.p2p.legal/keygen pour relier votre clef SSH à IPFS et rejoindre la toile de confiance des Dragons, hébergeurs collectifs "LeClaude"
|