Skip to content

Instantly share code, notes, and snippets.

View eaguad1337's full-sized avatar
🚀

Eduardo Aguad eaguad1337

🚀
View GitHub Profile
@eaguad1337
eaguad1337 / sphp.sh
Last active August 6, 2020 13:08 — forked from rhukster/sphp.sh
Switch PHP in OS X with this Bash Script
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
# Modified: Eduardo Aguad
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
brew_array=("5.5","5.6","7.0","7.1","7.2", "7.3")
php_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]")
valet_support_php_version_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]")
php_installed_array=()
@eaguad1337
eaguad1337 / cloudflare-delete-all-records.sh
Created August 12, 2020 03:15 — forked from SuTree/cloudflare-delete-all-records.sh
Delete all DNS records for specified zone
#!/bin/bash
[email protected]
KEY=11111111111111111111111111
ZONE_ID=2222222222222222222222222
curl -sLX GET https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records?per_page=500 \
-H "X-Auth-Email: ${EMAIL}" \
-H "X-Auth-Key: ${KEY}" \
-H "Content-Type: application/json" | jq .result[].id | tr -d '"' | (