Nouveau script

+backup_Joplin.sh
This commit is contained in:
2020-11-28 10:29:45 +01:00
parent 497cc8996a
commit 45718462ca
3 changed files with 45 additions and 0 deletions

13
README.md Normal file
View File

@@ -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

View File

@@ -1,5 +1,13 @@
#!/usr/bin/env bash #!/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/ profile=~/.config/joplin-desktop/
format=jex format=jex
bkp_date="$(date +"%d-%m-%Y")"; bkp_date="$(date +"%d-%m-%Y")";

24
install_adobe_apps.sh Executable file
View File

@@ -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"