This file contains hidden or 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
| // store/auth.js | |
| // reusable aliases for mutations | |
| export const AUTH_MUTATIONS = { | |
| SET_USER: 'SET_USER', | |
| SET_PAYLOAD: 'SET_PAYLOAD', | |
| LOGOUT: 'LOGOUT', | |
| } | |
| export const state = () => ({ |
This file contains hidden or 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
| S3_ACCESS_KEY_ID_GITLAB_BACKUP=<ACCESS_KEY> | |
| S3_SECRET_ACCESS_KEY_GITLAB_BACKUP=<SECRET_KEY> |
This file contains hidden or 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
| sudo apt-get install dcraw | |
| # convert CR2 to PPM | |
| for i in *.CR2; do dcraw $i; done | |
| # convert PPM to JPG | |
| for i in *.ppm; do convert $i $(basename $i .ppm).jpg; done | |
| # remove intermediate PPM files | |
| rm *ppm |
This file contains hidden or 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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
This file contains hidden or 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
| some_cmd > some_file 2>&1 & | |
| nohup php -f check_phone.php > /var/log/check_phone.log 2>&1 & |
This file contains hidden or 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
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt-get update | |
| sudo apt-get install php7.2-cli | |
| sudo apt-get install php7.2-zip | |
| sudo apt-get install php7.2-curl | |
| sudo apt-get install php7.2-mysqli | |
| sudo apt-get install php7.2-dom | |
| sudo apt-get install php7.2-gd |
This file contains hidden or 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 | |
| sudo apt-get update | |
| /* | |
| sudo apt-get install nodejs | |
| sudo apt-get install npm | |
| */ | |
| cd ~ | |
| curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh | |
| sudo bash nodesource_setup.sh |