Skip to content

Instantly share code, notes, and snippets.

@shebin512
shebin512 / magedeploy.sh
Created August 8, 2021 18:44 — forked from rafaelstz/magedeploy.sh
Magento 2 Deploy script
#!/usr/bin/env bash
LANGUAGES="en_US pt_BR"
# production or developer
ENVIRONMENT="production"
COMPOSER=$(which composer)
PHP=$(which php)
ROOT=$(pwd)
@shebin512
shebin512 / curl.sh
Last active September 22, 2020 18:52 — forked from exAspArk/curl.sh
Test CORS with cURL
curl -I -X OPTIONS \
-H "Origin: http://EXAMPLE.COM" \
-H 'Access-Control-Request-Method: GET' \
http://EXAMPLE.COM/SOMETHING 2>&1 | grep -i 'Access-Control-Allow-Origin'