This commit is contained in:
Tykayn 2025-01-13 12:00:58 +01:00 committed by tykayn
parent 9ee0d820cb
commit 123aad138c
8 changed files with 30 additions and 35 deletions

View file

@ -1,8 +1,8 @@
#!/bin/bash
# these bash aliases are meant to be added in your user folder,
# in a file named: .bash_aliases (with the dot at the beginning)
# these bash aliases are meant to be added in your user folder,
# in a file named: .bash_aliases (with the dot at the beginning)
# done for my blog http://www.cipherbliss.com
#
# load variables
# load variables
source ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh
source $ALIASES_PATH

View file

@ -5,20 +5,13 @@
#
# load variables
# 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
alias work="cd $www_folder/scripts/mapping_geojson_to_osm_tags"
########## 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
###### lieux locaux
@ -78,7 +71,7 @@ alias yre="yarn run encore --dev"
alias yrep="yarn run encore --production"
################ 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 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"
# 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 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 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"
@ -163,8 +155,13 @@ export PATH="$WORKFLOW_PUBLIC_PATH/bin:$HOME/.emacs.d/bin:$HOME/.symfony/bin:$PA
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 EDITOR=nano
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
export HISTTIMEFORMAT="%d/%m/%y %T "
# node version manager
# node version manager
if command -v nvm &> /dev/null
then
# echo "nvm chargé"
@ -199,11 +196,14 @@ if [ "$(id -u)" = 0 ]; then
echo "root: partition ZFS déchiffrée et montée"
fi
# tempo notif
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
ncb(){
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 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"