up doc
This commit is contained in:
parent
db5d2c679f
commit
c6190f5adb
|
@ -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]
|
|
@ -5,4 +5,4 @@
|
|||
#
|
||||
# load variables
|
||||
source ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh
|
||||
source $WORKFLOW_PATH/install/.bash_custom_aliases
|
||||
source $ALIASES_PATH
|
|
@ -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<ModifyDate' -d \"%Y-%m-%dT%H.%I.%S%%c.%%le\" -r"
|
|||
alias ex5="exiftool '-filename<CreateDate' -d \"%Y-%m-%dT%H.%I.%S%%c.%%le\" -r"
|
||||
alias exgps="exiftool '-filename<GPSDateTime' -d \"%Y-%m-%dT%H.%I.%S%%c -- has_gps.%%le\" -r"
|
||||
|
||||
# lister les disques en blocs sans les snaps
|
||||
alias lsb="lsblk |grep -v loop"
|
||||
|
||||
alias range="ts-node /home/poule/encrypted/stockage-syncable/www/development/html/rangement/index.ts --dry-run=true "
|
||||
alias rangereal="ts-node /home/poule/encrypted/stockage-syncable/www/development/html/rangement/index.ts"
|
||||
|
||||
|
@ -103,6 +108,8 @@ alias mysr="mysql -uroot -p"
|
|||
alias hgrep="history |grep"
|
||||
alias whatport="sudo netstat -pna | grep "
|
||||
alias runport="firefox https://localhost:$1"
|
||||
alias dff='df -h --exclude-type=squashfs --exclude-type=devtmpfs --exclude-type=tmpfs' # voir l'espace libre sans les paritions snap
|
||||
|
||||
|
||||
export RUBY_ENV=devlopment
|
||||
|
||||
|
@ -110,7 +117,7 @@ export GIT_AUTHOR_NAME="Tykayn"
|
|||
export GIT_AUTHOR_EMAIL="contact@cipherbliss.com"
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
# développement
|
||||
# développement
|
||||
alias python=python3
|
||||
alias py=python3
|
||||
|
||||
|
@ -124,19 +131,16 @@ alias netre="sudo service network-manager restart"
|
|||
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 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 syncnas='export RSYNC_PASSWORD="pzqAaGRBMNoEnuXLAmWxjIHHhmTr2qgFCsD2hzZkGQfrkZ7g3WtFyHfYeDK9vWE7S9oMXMFH2XhcjvqrCWi5MDWX2tK9k5nf9M66Ad" &&
|
||||
#rsync -avP --delete \
|
||||
#"tykayn@192.168.1.8:/volume1/bidules_partagés/videos/*" \
|
||||
# /home/poule/medias/videos'
|
||||
|
||||
alias ascan="sudo arp-scan --local"
|
||||
|
||||
# youtube dl
|
||||
alias ydl='yt-dlp -o "%(title)s.f%(format_id)s.%(ext)s" '
|
||||
alias ydla='yt-dlp -o "%(title)s.f%(format_id)s.%(ext)s" '
|
||||
alias ydl='yt-dlp -o "%(title)s.f%(format_id)s.%(ext)s"'
|
||||
alias ydla='yt-dlp -o "%(title)s.f%(format_id)s.%(ext)s"'
|
||||
alias ydlup='python3 -m pip install -U yt-dlp'
|
||||
alias upydl='ydlup'
|
||||
|
||||
# stopper les messageries pour être au calme
|
||||
alias oklm="killall gajim telegram-desktop signal-desktop dino-im"
|
||||
alias oklm="killall gajim telegram-desktop signal-desktop dino-im java vlc"
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
|
@ -146,15 +150,13 @@ if [ -x /usr/bin/dircolors ]; then
|
|||
alias fgrep="fgrep --color=auto"
|
||||
alias egrep="egrep --color=auto"
|
||||
fi
|
||||
|
||||
# some more ls aliases
|
||||
alias ll="ls -alF"
|
||||
alias la="ls -A"
|
||||
alias l="exa -lh --git --all"
|
||||
alias l="exa -lh"
|
||||
|
||||
# extensions du path
|
||||
# extensions du path
|
||||
export PATH=~/.local/bin:$PATH
|
||||
export PATH="$WORKFLOW_PATH:$HOME/.emacs.d/bin:$HOME/.symfony/bin:$PATH"
|
||||
export PATH="$WORKFLOW_PUBLIC_PATH/bin:$HOME/.emacs.d/bin:$HOME/.symfony/bin:$PATH"
|
||||
|
||||
# fix mastodon development
|
||||
# export LD_PRELOAD=libjemalloc.so
|
||||
|
@ -162,10 +164,11 @@ export RAILS_ENV=development
|
|||
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
alias ws="nohup bash $HOME/Téléchargements/WebStorm-232.10335.13/bin/bin/webstorm.sh &"
|
||||
export HISTTIMEFORMAT="%d/%m/%y %T "
|
||||
export EDITOR=nano
|
||||
export HUGO_BASE_DIR="~/Nextcloud/textes/hugo"
|
||||
export PATH=~/.cargo/bin:/snap/bin:$WORKFLOW_PATH/bin:$PATH
|
||||
export PATH=~/.pyenv/bin/:~/.cargo/bin:/snap/bin:$WORKFLOW_PATH/bin:$PATH
|
||||
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
eval "$(rbenv init -)"
|
||||
|
||||
|
@ -173,35 +176,52 @@ source $WORKFLOW_PATH/install/functions_sync.sh
|
|||
source $WORKFLOW_PATH/install/functions_tk.sh
|
||||
export HISTTIMEFORMAT="%d/%m/%y %T "
|
||||
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# node version manager
|
||||
if command -v nvm &> /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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue