#!/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) # done for my blog http://www.cipherbliss.com # # load variables # echo "bash custom aliases: load functions to sync files" source ~/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 alias goj="ssh -p 3910 tykayn@bbb.liness.org" alias gopi="ssh pi@192.168.1.156" alias gofat="ssh tykayn@192.168.1.7" alias gowork="work" alias gowww="cd $www_folder" 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 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 ################ personal info management - file management - PIM ######### alias gf="python $WORKFLOW_PATH/files_management/guessfilename_custom.py" alias rff="python $WORKFLOW_PATH/files_management/rename_photo_folder.py" alias m2a="move2archive --archivepath $stockage_syncable_folder/photos" alias ex="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 if [ "$(pwd)" = "/var/www/html/" ] || [ "$(pwd)" = "/var/www/html/*" ]; then echo "chargement de node version stable" nvm use stable fi # lancer le montage ZFS Poule seulement si on est root if [ "$(id -u)" = 0 ]; then 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