Skip to content

Instantly share code, notes, and snippets.

View asyraaf92's full-sized avatar

Daniel Asyraaf asyraaf92

  • Malaysia
View GitHub Profile
#!/bin/bash
# r53_export
usage() {
local cmd=$(basename "$0")
echo -e >&2 "\nUsage: $cmd {--id ZONE_ID|--domain ZONE_NAME}\n"
exit 1
}
while [[ $1 ]]; do
#!/bin/bash
# Fetch list of enabled regions
enabled_regions=$(aws account list-regions --region-opt-status-contains 'ENABLED' 'ENABLED_BY_DEFAULT' --output json | jq -r '.Regions[].RegionName')
# Loop through each enabled region
for REGION_NAME in $enabled_regions
do
echo "Working in region $REGION_NAME"
@asyraaf92
asyraaf92 / hdretention.sh
Last active February 8, 2018 09:48
Hard Disk Retention
#!/bin/bash
#888 888 8888888b. 8888888b. 888 888 d8b
#888 888 888 "Y88b 888 Y88b 888 888 Y8P
#888 888 888 888 888 888 888 888
#8888888888 888 888 888 d88P .d88b. 888888 .d88b. 88888b. 888888 888 .d88b. 88888b.
#888 888 888 888 8888888P" d8P Y8b 888 d8P Y8b 888 "88b 888 888 d88""88b 888 "88b
#888 888 888 888 888 T88b 88888888 888 88888888 888 888 888 888 888 888 888 888
#888 888 888 .d88P 888 T88b Y8b. Y88b. Y8b. 888 888 Y88b. 888 Y88..88P 888 888
#888 888 8888888P" 888 T88b "Y8888 "Y888 "Y8888 888 888 "Y888 888 "Y88P" 888 888
#

Keybase proof

I hereby claim:

  • I am asyraaf92 on github.
  • I am asyraaf92 (https://keybase.io/asyraaf92) on keybase.
  • I have a public key whose fingerprint is 59A6 956D D286 1AB2 6071 59F4 FBC3 661E 50F1 F34F

To claim this, I am signing this object: