This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VACUUM (FULL, ANALYSE, VERBOSE ) entities; | |
REINDEX TABLE CONCURRENTLY entities; | |
VACUUM (FULL, ANALYSE, VERBOSE ) entity_roles; | |
REINDEX TABLE CONCURRENTLY entity_roles; | |
VACUUM (FULL, ANALYSE, VERBOSE ) entity_users; | |
REINDEX TABLE CONCURRENTLY entity_users; | |
VACUUM (FULL, ANALYSE, VERBOSE ) worksites; | |
REINDEX TABLE CONCURRENTLY worksites; | |
select count(*), 'entities' as source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
convert(){ | |
readonly FILENAME=`echo $1 | sed -r "s/.+\/(.+)\..+/\1/" | tr - _` | |
readonly SIZES=( | |
48 mdpi | |
72 hdpi | |
96 xhdpi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set -xe | |
readonly BACKUP_FOLDERS=( /mnt/data/Projects ) | |
readonly TARGET=server:/folder | |
sync(){ | |
rsync -avz --exclude={.git,build,.idea,__pycache__,node_modules,target} --rsync-path=/usr/bin/rsync $1 $2 | |
} |