up docs
This commit is contained in:
parent
9ee0d820cb
commit
123aad138c
@ -1,4 +1,4 @@
|
|||||||
# Workflow avec Nextcloud
|
# Workflow avec Nextcloud
|
||||||
Gérer ses flux de travaux et autres gestion de projets avec des scripts.
|
Gérer ses flux de travaux et autres gestion de projets avec des scripts.
|
||||||
J'unifie le comportement de mes stations de travail avec une gestion syncronisée de certains scripts pemettant d'installer certains programmes avec des configurations par défaut.
|
J'unifie le comportement de mes stations de travail avec une gestion syncronisée de certains scripts pemettant d'installer certains programmes avec des configurations par défaut.
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# these bash aliases are meant to be added in your user folder,
|
# these bash aliases are meant to be added in your user folder,
|
||||||
# in a file named: .bash_aliases (with the dot at the beginning)
|
# in a file named: .bash_aliases (with the dot at the beginning)
|
||||||
# done for my blog http://www.cipherbliss.com
|
# done for my blog http://www.cipherbliss.com
|
||||||
#
|
#
|
||||||
# load variables
|
# load variables
|
||||||
source ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh
|
source ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh
|
||||||
source $ALIASES_PATH
|
source $ALIASES_PATH
|
@ -5,20 +5,13 @@
|
|||||||
#
|
#
|
||||||
# load variables
|
# 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
|
source $HOME/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh
|
||||||
|
|
||||||
|
|
||||||
############################ current
|
############################ current
|
||||||
alias work="cd $www_folder/scripts/mapping_geojson_to_osm_tags"
|
alias work="cd $www_folder/scripts/mapping_geojson_to_osm_tags"
|
||||||
|
|
||||||
########## lieux ###########
|
########## lieux ###########
|
||||||
alias dok="docker-compose"
|
|
||||||
alias dc="docker-compose"
|
|
||||||
|
|
||||||
# tuer tous les conteneurs docker
|
|
||||||
function dckill() {
|
|
||||||
docker container kill $(docker container ls -q)
|
|
||||||
}
|
|
||||||
alias gow="cd $WORKFLOW_PATH" # go to folder of nextcloud where i store my scripts
|
alias gow="cd $WORKFLOW_PATH" # go to folder of nextcloud where i store my scripts
|
||||||
|
|
||||||
###### lieux locaux
|
###### lieux locaux
|
||||||
@ -78,7 +71,7 @@ alias yre="yarn run encore --dev"
|
|||||||
alias yrep="yarn run encore --production"
|
alias yrep="yarn run encore --production"
|
||||||
|
|
||||||
################ system without graphic interface - command line ################
|
################ system without graphic interface - command line ################
|
||||||
alias basha="gedit $ALIASES_PATH" # éditer les alisas
|
alias basha="echo $ALIASES_PATH && gedit $ALIASES_PATH" # éditer les alisas
|
||||||
alias bashare="source $ALIASES_PATH" # recharger les alias
|
alias bashare="source $ALIASES_PATH" # recharger les alias
|
||||||
alias ainstall="sudo apt-get install" # installer un programme
|
alias ainstall="sudo apt-get install" # installer un programme
|
||||||
|
|
||||||
@ -128,8 +121,7 @@ alias ft="filetags --tagtrees --tagtrees-handle-no-tag \"has_no_tag\" --tagtrees
|
|||||||
alias netre="sudo service network-manager restart"
|
alias netre="sudo service network-manager restart"
|
||||||
|
|
||||||
# syncronisations
|
# syncronisations
|
||||||
alias getrise="rsync root@proxmox.coussinet.org:/poule/encrypted /home/poule/borg_archives/production-servers-backup/rise/ -avzPW --inplace --delete-before --exclude borgbackup_tkland" # get the backups of the riseup server
|
alias getrise="rsync root@proxmox.coussinet.org:/poule/encrypted /home/poule/borg_archives/production-servers-backup/rise/ -avzPW --inplace --delete-before --exclude borgbackup_tkland"
|
||||||
alias getrisefromjuvisy="rsync tykayn@proxmox.coussinet.org:/poule/encrypted/* /media/tykayn/disque_usb/backup_rise/encrypted -rvzPW --delete-before --exclude borgbackup_tkland --no-perms --no-group --exclude borg2 --exclude=do_not_sync_back"
|
|
||||||
|
|
||||||
alias ascan="sudo arp-scan --local"
|
alias ascan="sudo arp-scan --local"
|
||||||
|
|
||||||
@ -163,8 +155,13 @@ export PATH="$WORKFLOW_PUBLIC_PATH/bin:$HOME/.emacs.d/bin:$HOME/.symfony/bin:$PA
|
|||||||
export RAILS_ENV=development
|
export RAILS_ENV=development
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
# logiciels
|
||||||
|
alias ws="bash $HOME/Nextcloud/ressources/ide/WebStorm-2023.2.8/bin/webstorm.sh &"
|
||||||
|
alias j="java -jar $HOME/Nextcloud/ressources/logiciels/josm-tested.jar"
|
||||||
|
alias jup="wget https://josm.openstreetmap.de/josm-tested.jar -O $HOME/Nextcloud/ressources/logiciels/josm-tested.jar"
|
||||||
|
alias dok="docker-compose"
|
||||||
|
alias dc="docker-compose"
|
||||||
|
|
||||||
alias ws="nohup bash $HOME/Téléchargements/WebStorm-232.10335.13/bin/bin/webstorm.sh &"
|
|
||||||
export HISTTIMEFORMAT="%d/%m/%y %T "
|
export HISTTIMEFORMAT="%d/%m/%y %T "
|
||||||
export EDITOR=nano
|
export EDITOR=nano
|
||||||
export HUGO_BASE_DIR="~/Nextcloud/textes/hugo"
|
export HUGO_BASE_DIR="~/Nextcloud/textes/hugo"
|
||||||
@ -176,7 +173,7 @@ source $WORKFLOW_PATH/install/functions_sync.sh
|
|||||||
source $WORKFLOW_PATH/install/functions_tk.sh
|
source $WORKFLOW_PATH/install/functions_tk.sh
|
||||||
export HISTTIMEFORMAT="%d/%m/%y %T "
|
export HISTTIMEFORMAT="%d/%m/%y %T "
|
||||||
|
|
||||||
# node version manager
|
# node version manager
|
||||||
if command -v nvm &> /dev/null
|
if command -v nvm &> /dev/null
|
||||||
then
|
then
|
||||||
# echo "nvm chargé"
|
# echo "nvm chargé"
|
||||||
@ -199,11 +196,14 @@ if [ "$(id -u)" = 0 ]; then
|
|||||||
echo "root: partition ZFS déchiffrée et montée"
|
echo "root: partition ZFS déchiffrée et montée"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# tempo notif
|
# tempo notif
|
||||||
alias tempo="python ~/Nextcloud/tempo.py"
|
alias tempo="python ~/Nextcloud/tempo.py"
|
||||||
|
|
||||||
|
|
||||||
|
# tuer tous les conteneurs docker
|
||||||
|
function dckill() {
|
||||||
|
docker container kill $(docker container ls -q)
|
||||||
|
}
|
||||||
# créer un post de blog: new cipher bliss
|
# créer un post de blog: new cipher bliss
|
||||||
ncb(){
|
ncb(){
|
||||||
python /home/poule/encrypted/stockage-syncable/www/development/html/orgmode-to-gemini-blog/new_article.py cipherbliss_blog fr "$@"
|
python /home/poule/encrypted/stockage-syncable/www/development/html/orgmode-to-gemini-blog/new_article.py cipherbliss_blog fr "$@"
|
||||||
@ -214,14 +214,8 @@ function gc() {
|
|||||||
git commit -m "$1"
|
git commit -m "$1"
|
||||||
git push
|
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
|
export PATH="~/.npm-global/bin:$PATH"
|
||||||
|
export PATH="$HOME/.symfony5/bin:$PATH"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# variables à ne pas versionner
|
# variables à ne pas versionner
|
||||||
#
|
#
|
||||||
|
|
||||||
export secret_key="bidule"
|
export secret_key="bidule"
|
@ -9,13 +9,14 @@ Pour récupérer seulement les alias de commande sans prendre toutes les section
|
|||||||
cd
|
cd
|
||||||
wget https://forge.chapril.org/tykayn/workflow/raw/branch/main/assets/.bashrc
|
wget https://forge.chapril.org/tykayn/workflow/raw/branch/main/assets/.bashrc
|
||||||
wget https://forge.chapril.org/tykayn/workflow/raw/branch/main/assets/.bash_custom_aliases -O .bash_aliases
|
wget https://forge.chapril.org/tykayn/workflow/raw/branch/main/assets/.bash_custom_aliases -O .bash_aliases
|
||||||
|
source .bash_aliases
|
||||||
|
|
||||||
```
|
```
|
||||||
## Installation de programmes
|
## Installation de programmes
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install ansible python3-pip arp-scan borgbackup curl docker docker-compose etckeeper git gnupg jq meld nano ncdu nginx restic npm pandoc php python3 python3-pip tig zsh testdisk texlive rbenv htop btop python3-setuptools autopostgresqlbackup automysqlbackup certbot smartmontools fail2ban snapd unattended-upgrades php php-fpm php-xml php-mysql rsync php-dom php-curl vrms syncthing sshfs geeqie
|
sudo apt install ansible python3-pip arp-scan borgbackup curl docker docker-compose etckeeper git gnupg jq meld nano ncdu nginx restic npm pandoc php python3 python3-pip tig zsh testdisk texlive rbenv htop btop python3-setuptools autopostgresqlbackup automysqlbackup certbot smartmontools fail2ban snapd unattended-upgrades php php-fpm php-xml php-mysql rsync php-dom php-curl vrms syncthing sshfs geeqie calibre
|
||||||
pip install yt-dlp
|
pip install yt-dlp --user
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installation de configuration de programmes
|
### Installation de configuration de programmes
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# vérifier que les dossiers nécessaires au workflow existent,
|
# vérifier que les dossiers nécessaires au workflow existent,
|
||||||
# les créer au besoin,
|
# les créer au besoin,
|
||||||
# alerter sur l'impossibilité de créer en ajoutant une tâche orgmode au dossier de textes
|
# alerter sur l'impossibilité de créer en ajoutant une tâche orgmode au dossier de textes
|
||||||
#
|
#
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# variables globales qui seront importées dans chaque terminal ouvert par l'utilisateur
|
# variables globales qui seront importées dans chaque terminal ouvert par l'utilisateur
|
||||||
if [ "$debug" = true ]; then
|
if [ "$debug" = true ]; then
|
||||||
echo "# chargement des variables de public workflow ..."
|
echo "# chargement des variables de public workflow ..."
|
||||||
fi
|
fi
|
||||||
@ -48,7 +48,7 @@ export today=`date` # to log current time
|
|||||||
export ARCHIVE_SYNCABLE=$stockage_syncable_folder # place where we have our things sorted, other than home
|
export ARCHIVE_SYNCABLE=$stockage_syncable_folder # place where we have our things sorted, other than home
|
||||||
export BORG_PASSCOMMAND="cat $ARCHIVE_SYNCABLE/.tk-borg-passphrase-light" # get the borg repo pass
|
export BORG_PASSCOMMAND="cat $ARCHIVE_SYNCABLE/.tk-borg-passphrase-light" # get the borg repo pass
|
||||||
|
|
||||||
export a_dispatcher="$ARCHIVE_SYNCABLE/photos/a_dispatcher" # dossier où sont stockées les photos en provenance du smartphone
|
export a_dispatcher="$ARCHIVE_SYNCABLE/photos/a_dispatcher" # dossier où sont stockées les photos en provenance du smartphone
|
||||||
export PHOTOS_TO_DISPATCH="$a_dispatcher"
|
export PHOTOS_TO_DISPATCH="$a_dispatcher"
|
||||||
export PHOTOS_FOLDER="$ARCHIVE_SYNCABLE/photos/"
|
export PHOTOS_FOLDER="$ARCHIVE_SYNCABLE/photos/"
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ export CURRENT_YEAR=$(date +%Y)
|
|||||||
export PATH=$WORKFLOW_PATH:$PATH
|
export PATH=$WORKFLOW_PATH:$PATH
|
||||||
|
|
||||||
|
|
||||||
########## colors for logging #########
|
########## colors for logging #########
|
||||||
# https://wiki.archlinux.org/title/Bash/Prompt_customization#List_of_colors_for_prompt_and_Bash
|
# https://wiki.archlinux.org/title/Bash/Prompt_customization#List_of_colors_for_prompt_and_Bash
|
||||||
#
|
#
|
||||||
# echo -e "${txtred}asd${txtwht}"
|
# echo -e "${txtred}asd${txtwht}"
|
||||||
|
@ -43,7 +43,7 @@ if [ -z ${load_only_once+x} ]; then
|
|||||||
export ARCHIVE_SYNCABLE=$stockage_syncable_folder # place where we have our things sorted, other than home
|
export ARCHIVE_SYNCABLE=$stockage_syncable_folder # place where we have our things sorted, other than home
|
||||||
export BORG_PASSCOMMAND="cat $ARCHIVE_SYNCABLE/.tk-borg-passphrase-light" # get the borg repo pass
|
export BORG_PASSCOMMAND="cat $ARCHIVE_SYNCABLE/.tk-borg-passphrase-light" # get the borg repo pass
|
||||||
|
|
||||||
export a_dispatcher="$ARCHIVE_SYNCABLE/photos/a_dispatcher" # dossier où sont stockées les photos en provenance du smartphone
|
export a_dispatcher="$ARCHIVE_SYNCABLE/photos/a_dispatcher" # dossier où sont stockées les photos en provenance du smartphone
|
||||||
export PHOTOS_TO_DISPATCH="$a_dispatcher"
|
export PHOTOS_TO_DISPATCH="$a_dispatcher"
|
||||||
export PHOTOS_FOLDER="$ARCHIVE_SYNCABLE/photos/"
|
export PHOTOS_FOLDER="$ARCHIVE_SYNCABLE/photos/"
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ if [ -z ${load_only_once+x} ]; then
|
|||||||
export PATH=$WORKFLOW_PATH:$PATH
|
export PATH=$WORKFLOW_PATH:$PATH
|
||||||
|
|
||||||
|
|
||||||
########## colors for logging #########
|
########## colors for logging #########
|
||||||
# https://wiki.archlinux.org/title/Bash/Prompt_customization#List_of_colors_for_prompt_and_Bash
|
# https://wiki.archlinux.org/title/Bash/Prompt_customization#List_of_colors_for_prompt_and_Bash
|
||||||
#
|
#
|
||||||
# echo -e "${txtred}asd${txtwht}"
|
# echo -e "${txtred}asd${txtwht}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user