Skip to content

Instantly share code, notes, and snippets.

View rafilkmp3's full-sized avatar
🏎️
100% Racing

Rafael Sathler rafilkmp3

🏎️
100% Racing
View GitHub Profile
@jsamuel1
jsamuel1 / 012_ecs_long_ids.tf
Created February 13, 2019 03:05
Terraform to enable long ARN formats for aws ecs, so that we can use fargate on all our workload accounts.
// Ensure we enroll ecs with long resource IDs
// Delete after April 1st as all new accounts will be enrolled by default
resource "null_resource" "enable_long_ecs_resource_ids" {
provisioner "local-exec" {
command = <<EOF
# $1=account_id, $2=region
source ${path.root}/../scripts/assume_role.sh \
${var.workload_account_id} \
${var.workload_provider_region}
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# 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