mirror of
https://forge.chapril.org/tykayn/workflow
synced 2025-10-04 17:04:55 +02:00
up chemins source
This commit is contained in:
parent
123aad138c
commit
8b7acbd6dc
7 changed files with 167 additions and 28 deletions
|
@ -5,7 +5,11 @@
|
|||
#
|
||||
# load variables
|
||||
# echo "bash custom aliases: load functions to sync files"
|
||||
source $HOME/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh
|
||||
source "$HOME/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh"
|
||||
source "$HOME/Nextcloud/ressources/workflow_nextcloud/secrets_vars.sh"
|
||||
source "$WORKFLOW_PATH/install/functions_sync.sh"
|
||||
source "$WORKFLOW_PATH/install/functions_tk.sh"
|
||||
|
||||
|
||||
|
||||
############################ current
|
||||
|
@ -16,7 +20,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.156"
|
||||
alias gopi="ssh pi@192.168.1.19"
|
||||
alias gofat="ssh tykayn@192.168.1.7"
|
||||
alias gowork="work"
|
||||
alias gowww="cd $www_folder"
|
||||
|
@ -24,15 +28,15 @@ alias gox="ssh tykayn@proxmox.coussinet.org"
|
|||
alias gok="ssh debian@ns3247177.ip-164-132-173.eu" # hébergement kimsufi
|
||||
|
||||
|
||||
alias gonas="ssh $main_user@$IP_DU_NAS -p20522"
|
||||
alias gonas="ssh $main_user@$IP_DU_NAS"
|
||||
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 goo="cd $HOME/Nextcloud/textes/orgmode"
|
||||
alias goi="cd $HOME/Nextcloud/inbox"
|
||||
alias gov="cd '$HOME/vidéos à voir'"
|
||||
alias gown="cd $HOME/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
|
||||
################ personal info management - file management - PIM #########
|
||||
|
@ -49,8 +53,8 @@ alias exgps="exiftool '-filename<GPSDateTime' -d \"%Y-%m-%dT%H.%I.%S%%c -- has_g
|
|||
# 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"
|
||||
alias range="$HOME/.npm-global/bin/ts-node /home/poule/encrypted/stockage-syncable/www/development/html/rangement/index.ts --dry-run=true "
|
||||
alias rangereal="$HOME/.npm-global/bin/ts-node /home/poule/encrypted/stockage-syncable/www/development/html/rangement/index.ts"
|
||||
|
||||
################ symfony3 ######################
|
||||
alias sf="php bin/console"
|
||||
|
@ -81,7 +85,7 @@ alias tfa="tail -f /var/log/nginx/*.log" # suivi des erreurs de serveur
|
|||
alias aupg="sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get update -y && sudo apt-get upgrade -y"
|
||||
|
||||
################ système with X server ################
|
||||
alias phps="bash /home/poule/encrypted/stockage-syncable/ressources/logiciels/PhpStorm-2020.1.4/PhpStorm-201.8743.18/bin/phpstorm.sh"
|
||||
alias phps="bash /home/tykayn/Nextcloud/ressources/ide/PhpStorm-251.26927.60/bin/phpstorm.sh"
|
||||
|
||||
################ git helpers ################
|
||||
alias gci="git commit"
|
||||
|
@ -102,7 +106,8 @@ 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
|
||||
|
||||
alias pup='/home/tykayn/.local/pipx/venvs/panoramax-cli/bin/panoramax_cli upload --api-url https://panoramax.openstreetmap.fr .' #panoramax upload avec mon compte perso
|
||||
alias pum='/home/tykayn/.local/pipx/venvs/panoramax-cli/bin/panoramax_cli upload --api-url https://panoramax.openstreetmap.fr . --token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnZW92aXNpbyIsInN1YiI6IjQ1NmJmMWQ1LTgxNzEtNDdlMy05MmQ1LWNkNTM1MjBiOWZkMyJ9.JqedjxqgwVY6bB9vKe4v5HiSvZAndiXICre_iI06Auc" --disable-duplicates-check --parallel-uploads 15' #panoramax upload motocultrice
|
||||
|
||||
export RUBY_ENV=devlopment
|
||||
|
||||
|
@ -110,29 +115,33 @@ export GIT_AUTHOR_NAME="Tykayn"
|
|||
export GIT_AUTHOR_EMAIL="contact@cipherbliss.com"
|
||||
|
||||
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
|
||||
|
||||
# développement
|
||||
alias python=python3
|
||||
alias py=python3
|
||||
|
||||
# rangement
|
||||
alias lwc="ls -ls |wc -l" # compter les fichiers et dossiers
|
||||
alias findup="snap run czkawka"
|
||||
alias ft="filetags --tagtrees --tagtrees-handle-no-tag \"has_no_tag\" --tagtrees-depth 2 --recursive"
|
||||
|
||||
alias netre="sudo service network-manager restart"
|
||||
|
||||
# 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"
|
||||
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 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 ydlup='python3 -m pip install -U yt-dlp'
|
||||
alias ydlup='python3 -m pip install -U yt-dlp --break'
|
||||
alias upydl='ydlup'
|
||||
|
||||
# stopper les messageries pour être au calme
|
||||
alias oklm="killall gajim telegram-desktop signal-desktop dino-im java vlc"
|
||||
alias oklm="killall gajim telegram-desktop signal-desktop dino-im java vlc webstorm firefox-esr"
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
|
@ -156,18 +165,21 @@ export RAILS_ENV=development
|
|||
|
||||
# ----------------------------------------------------------------------
|
||||
# logiciels
|
||||
alias ws="bash $HOME/Nextcloud/ressources/ide/WebStorm-2023.2.8/bin/webstorm.sh &"
|
||||
alias ws="bash $HOME/Nextcloud/ressources/ide/WebStorm-232.10335.13/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 plz="sudo !!"
|
||||
alias please="plz"
|
||||
alias e="snap run emacs"
|
||||
|
||||
export HISTTIMEFORMAT="%d/%m/%y %T "
|
||||
export EDITOR=nano
|
||||
export HUGO_BASE_DIR="~/Nextcloud/textes/hugo"
|
||||
export PATH=~/.pyenv/bin/:~/.cargo/bin:/snap/bin:$WORKFLOW_PATH/bin:$PATH
|
||||
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
eval "$(rbenv init -)"
|
||||
|
||||
#eval "$(rbenv init -)"
|
||||
|
||||
source $WORKFLOW_PATH/install/functions_sync.sh
|
||||
source $WORKFLOW_PATH/install/functions_tk.sh
|
||||
|
@ -182,7 +194,7 @@ if command -v nvm &> /dev/null
|
|||
[ -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
|
||||
|
@ -206,16 +218,36 @@ function dckill() {
|
|||
}
|
||||
# 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 "$@"
|
||||
title_as_args="$@"
|
||||
echo "$title_as_args"
|
||||
|
||||
python /home/poule/encrypted/stockage-syncable/www/development/html/orgmode-to-gemini-blog/new_article.py --blog_dir="cipherbliss_blog" --lang="fr" --title="$title_as_args"
|
||||
}
|
||||
|
||||
# créer un post de tykayn blog
|
||||
ntk(){
|
||||
title_as_args="$@"
|
||||
echo "$title_as_args"
|
||||
|
||||
python /home/poule/encrypted/stockage-syncable/www/development/html/orgmode-to-gemini-blog/new_article.py --blog_dir="tykayn_blog" --lang="fr" --title="$title_as_args"
|
||||
}
|
||||
|
||||
# commit avec git
|
||||
function gc() {
|
||||
git add .
|
||||
git commit -m "$1"
|
||||
git push
|
||||
}
|
||||
|
||||
|
||||
export PATH="~/.pyenv/bin/:~/.cargo/bin:/snap/bin:$WORKFLOW_PATH/bin:$PATH"
|
||||
#export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
export PATH="~/.npm-global/bin:$PATH"
|
||||
export PATH="$HOME/.symfony5/bin:$PATH"
|
||||
export PATH="$PATH:$HOME/.npm-global/bin"
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
|
||||
eval "$(rbenv init -)"
|
||||
eval "$(zoxide init zsh)" # zoxyde, navigation de dossier avec fuzzy finder
|
||||
|
||||
|
||||
export alias please='sudo !!'
|
||||
export alias plz='please'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue