Skip to content

Instantly share code, notes, and snippets.

@olublessed
olublessed / mysql_secure.sh
Created July 25, 2017 14:23 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@olublessed
olublessed / gist:d0c8474aef81e175a094afb8219ed98c
Created August 3, 2022 15:55 — forked from iann0036/gist:b473bbb3097c5f4c656ed3d07b4d2222
List of expensive / long-term effect AWS IAM actions
route53domains:RegisterDomain
route53domains:RenewDomain
route53domains:TransferDomain
ec2:ModifyReservedInstances
ec2:PurchaseHostReservation
ec2:PurchaseReservedInstancesOffering
ec2:PurchaseScheduledInstances
rds:PurchaseReservedDBInstancesOffering
dynamodb:PurchaseReservedCapacityOfferings
s3:PutObjectRetention