This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MAGE_BASE_URL="$1" | |
MAGE_SKU="$2" | |
PAYMENT_KEY="$3" | |
PAYMENT_METHOD="$4" | |
STORE_VIEW="$5" | |
CREDIT_CARD="$6" | |
CREDIT_CARD_CVC="$7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## get n98-magerun2 | |
curl -o /usr/local/bin/magerun2 https://files.magerun.net/n98-magerun2.phar | |
## reset magento admin password | |
MAGE_NEW_ADMIN_PASS="$(head -c 500 /dev/urandom | tr -dc 'a-zA-Z0-9!@#$%^&?=+_[]{}()<>-' | fold -w 15 | head -n 1)${RANDOM}" | |
read -e -p "---> Enter admin old login: " -i "admin" MAGE_OLD_ADMIN_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
myip=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
## monitor app folder and clear apc/opcode cache | |
/usr/bin/inotifywait -e modify \ | |
-mrq /var/www/html/magento/app | while read line; do | |
echo -n "$line " >> /var/log/app_monitor.log | |
echo `date | cut -d " " -f1-4` >> /var/log/app_monitor.log | |
wget -O /dev/null http://$myip/apc_opcache/apc_clear.php >/dev/null 2>&1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.7 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Error reporting | |
*/ | |
error_reporting(E_ALL | E_STRICT); | |
/** | |
* Compilation includes configuration file | |
*/ | |
define('MAGENTO_ROOT', getcwd()); |