From c6190f5adb7ec72b8af80fa08de3b130eaea4704 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Thu, 2 Jan 2025 12:03:13 +0100 Subject: [PATCH] up doc --- README.md | 4 +- assets/.bash_aliases | 2 +- assets/.bash_custom_aliases | 100 +++++++++++++++++++++--------------- doc/sections.md | 10 ++++ workflow_variables.sh | 2 +- 5 files changed, 75 insertions(+), 43 deletions(-) create mode 100644 doc/sections.md diff --git a/README.md b/README.md index 2ee2907..5f166fe 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ idéalement dans: # débuter Récupérer le script d'initialisation ```bash -SETUP_WORKFLOW_FOLDER="~/Nextcloud/ressources/workflow_nextcloud" +SETUP_WORKFLOW_FOLDER="~/Nextcloud/ressources/workflow_nextcloud/public_workflow" mkdir -p "$SETUP_WORKFLOW_FOLDER" git clone https://forge.chapril.org/tykayn/workflow "$SETUP_WORKFLOW_FOLDER" cd "$SETUP_WORKFLOW_FOLDER" @@ -22,3 +22,5 @@ Configrer les variables, avoir le droit d'exécuter des scripts avec `sudo` puis editor workflow_variables.sh bash ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/initialization/init_workflow.sh ``` +# Ce que fait ce dépot +[doc/sections.md] \ No newline at end of file diff --git a/assets/.bash_aliases b/assets/.bash_aliases index 6611a36..1ac9be6 100644 --- a/assets/.bash_aliases +++ b/assets/.bash_aliases @@ -5,4 +5,4 @@ # # load variables source ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh -source $WORKFLOW_PATH/install/.bash_custom_aliases \ No newline at end of file +source $ALIASES_PATH \ No newline at end of file diff --git a/assets/.bash_custom_aliases b/assets/.bash_custom_aliases index b403bfa..20abec1 100644 --- a/assets/.bash_custom_aliases +++ b/assets/.bash_custom_aliases @@ -4,7 +4,7 @@ # done for my blog http://www.cipherbliss.com # # load variables -echo "bash custom aliases: load functions to sync files" +# echo "bash custom aliases: load functions to sync files" source ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh @@ -23,7 +23,7 @@ alias gow="cd $WORKFLOW_PATH" # go to folder of nextcloud where i store my scrip ###### lieux locaux alias goj="ssh -p 3910 tykayn@bbb.liness.org" -alias gopi="ssh pi@192.168.1.2" +alias gopi="ssh pi@192.168.1.156" alias gofat="ssh tykayn@192.168.1.7" alias gowork="work" alias gowww="cd $www_folder" @@ -37,6 +37,8 @@ alias gos="cd $stockage_syncable_folder" alias goa="ssh root@biliz.cluster.chapril.org" alias goad="cd /home/poule/encrypted/stockage-syncable/photos/a_dispatcher" alias goo="cd ~/Nextcloud/textes/orgmode" +alias goi="cd ~/Nextcloud/inbox" +alias gov="cd '~/vidéos à voir'" alias gown="cd ~/Nextcloud/ressources/workflow_nextcloud" alias gos="cd /home/poule/encrypted/stockage-syncable" alias gomob="ssh -6 tykayn@mobilizon.vm.openstreetmap.fr -i .ssh/id_rsa_spaceship" # go to mobilizon osm26 @@ -51,6 +53,9 @@ alias ex4="exiftool '-filename /dev/null -then - echo "nvm chargé" -else - export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -fi - -# ------------------- work stuff -# export DOTNET_ROOT=$HOME/.dotnet -# export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools - -#!/bin/bash - + then + # echo "nvm chargé" + else + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + fi + if [ "$(pwd)" = "/var/www/html/" ] || [ "$(pwd)" = "/var/www/html/*" ]; then echo "chargement de node version stable" nvm use stable fi -#echo "loading zfs keys" -#!/bin/bash -# lancer le montage seulement si on est root +# lancer le montage ZFS Poule seulement si on est root if [ "$(id -u)" = 0 ]; then - zfs load-key poule/encrypted - zfs mount -a - echo "root: partition ZFS déchiffrée et montée" + echo "loading zfs keys" + zfs load-key poule/encrypted + zfs mount -a + echo "root: partition ZFS déchiffrée et montée" fi + +# tempo notif +alias tempo="python ~/Nextcloud/tempo.py" + + +# créer un post de blog: new cipher bliss +ncb(){ +python /home/poule/encrypted/stockage-syncable/www/development/html/orgmode-to-gemini-blog/new_article.py cipherbliss_blog fr "$@" +} + +function gc() { + git add . + git commit -m "$1" + git push +} +# tempo + +# gestion datagouv + +export API="https://www.data.gouv.fr/api/1/" +export API_KEY="eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyIjoiNjM2ZTEzZDM0ZTA5ZGNlNGNiMzNiNmE1IiwidGltZSI6MTczMjIxMjQ1My44OTA2MzE0fQ.To5OUIqaZD7843RbygPAtQoLM85Tax9t91gntbgcmO6hLRHHdlTXm5UdCEhplkhZu2ZyvS5XQDFtUoF-HqtAHA" #api key pour cipherbliss datagouv https://www.data.gouv.fr/fr/admin/me/#apikey + + +export PATH=~/.npm-global/bin:$PATH + + diff --git a/doc/sections.md b/doc/sections.md new file mode 100644 index 0000000..70deb58 --- /dev/null +++ b/doc/sections.md @@ -0,0 +1,10 @@ +# Sections +Ce que fait ce dépot est détaillé ici. +Le lancement du script d'init réalise la mise en place de configuration pour chacune de ces sections. + +## Variables partagées +## Alias de commande +## Installation de programmes +### Installation de configuration de programmes +## Gestion de sauvegardes +## Base de connaissances \ No newline at end of file diff --git a/workflow_variables.sh b/workflow_variables.sh index 520786e..71140f9 100644 --- a/workflow_variables.sh +++ b/workflow_variables.sh @@ -23,7 +23,7 @@ if [ -z ${load_only_once+x} ]; then export WORKFLOW_PATH=~/Nextcloud/ressources/workflow_nextcloud export WORKFLOW_PATH_PUBLIC=~/Nextcloud/ressources/workflow_nextcloud/public_workflow export WORKFLOW_PATH_ROOT=/home/$main_user/Nextcloud/ressources/workflow_nextcloud - export ALIASES_PATH=$WORKFLOW_PATH/install/.bash_custom_aliases + export ALIASES_PATH=$WORKFLOW_PATH_PUBLIC/assets/.bash_custom_aliases # fichiers orgmode, wiki personnel export orgmode_path=~/Nextcloud/textes/orgmode export inbox_orgmode=$orgmode_path/incoming_inbox.org