Skip to content

Instantly share code, notes, and snippets.

@roydejong
roydejong / commit_convention.md
Last active January 22, 2021 14:04
Commit message conventions

Goals

Consistent commit messages that are easily readable & searchable.

Syntax

commit_type(project_component): [issue_reference] short_message 

optional_extended_message
@roydejong
roydejong / mysql-backup-to-s3
Last active August 13, 2021 07:29
Cron script: MySQL Nightly Backups to S3
#!/bin/bash
# /etc/cron.daily/mysql-s3-backup
# Before use, install AWS CLI and use "aws configure" to set up credentials with write access to your s3 bucket
# See https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html#cliv2-linux-install
DB_USER=XXX
DB_NAME=XXX
DB_PASS=XXX