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