From 45718462ca0dbdb90e4377480e43adb337aa2b1d Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Sat, 28 Nov 2020 10:29:45 +0100 Subject: [PATCH] Nouveau script +backup_Joplin.sh --- README.md | 13 +++++++++++++ backup_Joplin.sh | 8 ++++++++ install_adobe_apps.sh | 24 ++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 README.md create mode 100755 install_adobe_apps.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..c54e268 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# README + + + +- **apache_tools.sh**: Edit Apache/PHP/MySQL configurations files, restart Apache, view Log files, switch PHP version +- **backup-conf.sh**: Backup several files and folders and send them on 2 servers (rsync) +- **backup_mysql.sh**: Sauvegarde toutes les bases MySQL et les envoie sur 2 serveurs (rsync). +- **bash_tools.sh**: Edit/backup/restore .bash_profile file +- **mkbuild.sh**: Build MkDocs project and send him on 2 servers (rsync) +- **zsh_tools.sh**: Edit/backup/restore .zshrc file + + + diff --git a/backup_Joplin.sh b/backup_Joplin.sh index 1528c2b..84fd5a6 100755 --- a/backup_Joplin.sh +++ b/backup_Joplin.sh @@ -1,5 +1,13 @@ #!/usr/bin/env bash +# Joplin.job +# Changement de version de node: supprimer/ remettre variable PATH +# ❯ nvm which current +# /Users/bruno/.nvm/versions/node/v14.15.0/bin/node +# ❯ which joplin +# /Users/bruno/.nvm/versions/node/v14.15.0/bin/joplin + +#joplin_exe=$(which joplin) profile=~/.config/joplin-desktop/ format=jex bkp_date="$(date +"%d-%m-%Y")"; diff --git a/install_adobe_apps.sh b/install_adobe_apps.sh new file mode 100755 index 0000000..2c2e0e8 --- /dev/null +++ b/install_adobe_apps.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +venv_path=$HOME/Documents/venv/ +folder=adobeCC + +# Virtual environnment +cd $venv_path +python3 -m venv $folder +$folder/bin/pip3 install -U pip setuptools +$folder/bin/pip3 install -U requests tqdm + +cd $venv_path$folder + +# dl gist +wget https://gist.github.com/ayyybe/a5f01c6f40020f9a7bc4939beeb2df1d/raw/6e82a23d381059a345cdf77fc29595ef11985d31/ccdl.py + +# Launch script +echo "#!/usr/bin/env bash" > $folder.command +echo "$venv_path$folder/bin/python3 $venv_path$folder/ccdl.py" > $folder.command + +chmod +x $folder.command + +# Link in /Applications +ln -s "$venv_path$folder/$folder.command" "/Applications/Adobe CC_Offline_Package_Generator_2"