Skip to content

Instantly share code, notes, and snippets.

👨‍🍳
Deploying Auto-Scalable Magento Cluster

MagenX magenx

👨‍🍳
Deploying Auto-Scalable Magento Cluster
Block or report user

Report or block magenx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View multipatch-7405.sh
#!/bin/bash
updatedb
PATCH1620="https://gist.githubusercontent.com/magenx/ee00c33a95a5c1d43100/raw/f4932a762d7bc344caf02d2446c87aa9cd797348/PATCH_SUPEE-7405_CE_1.6.2.0_v1-2016-01-20-06-27-39.sh"
PATCH1700="https://gist.githubusercontent.com/magenx/ebd84626fab92f1096e4/raw/a23ff3c029178e4ccd1f460670a224311c334948/PATCH_SUPEE-7405_CE_1.7.0.2_v1-2016-01-20-04-58-44.sh"
PATCH1701="https://gist.githubusercontent.com/magenx/ebd84626fab92f1096e4/raw/a23ff3c029178e4ccd1f460670a224311c334948/PATCH_SUPEE-7405_CE_1.7.0.2_v1-2016-01-20-04-58-44.sh"
PATCH1702="https://gist.githubusercontent.com/magenx/ebd84626fab92f1096e4/raw/a23ff3c029178e4ccd1f460670a224311c334948/PATCH_SUPEE-7405_CE_1.7.0.2_v1-2016-01-20-04-58-44.sh"
PATCH1800="https://gist.githubusercontent.com/magenx/72e4355b8eb7cd7abe54/raw/d2fbcd1c66e918e9d91603b6c0eaa59519d3f3b7/PATCH_SUPEE-7405_CE_1.8.0.0_v1-2016-01-20-04-48-23.sh"
PATCH1810="https://gist.githubusercontent.com/magenx/60c145ebe678391e6a35/raw/90dbc95ffaea56e96383729fa12d4d831ee2a25e/PATCH_SUPEE-
View multipatch-6788.sh
#!/bin/bash
updatedb
PATCH1700="https://gist.githubusercontent.com/magenx/09372634b0a2e0238ffe/raw/60a43ba1d2b45ab709259f79c8ae5a6ec5cbd46b/PATCH_SUPEE-6788_CE_1.7.0.1_v1-2015-10-27-12-00-41.sh"
PATCH1701="https://gist.githubusercontent.com/magenx/09372634b0a2e0238ffe/raw/60a43ba1d2b45ab709259f79c8ae5a6ec5cbd46b/PATCH_SUPEE-6788_CE_1.7.0.1_v1-2015-10-27-12-00-41.sh"
PATCH1702="https://gist.githubusercontent.com/magenx/680470726049ef132e3f/raw/49b1be73e4511810805794afbc2874698d0e808d/PATCH_SUPEE-6788_CE_1.7.0.2_v1-2015-10-27-12-00-16.sh"
PATCH1800="https://gist.githubusercontent.com/magenx/61599be47f0af1d66c7b/raw/e59ef41a69a1787722cab2d9e3420eea80ecad3c/PATCH_SUPEE-6788_CE_1.8.0.0_v1-2015-10-26-11-59-56.sh"
PATCH1810="https://gist.githubusercontent.com/magenx/53ec7f88d189f80a8aae/raw/75e928480f67ef1b59d14ec2ea3804f0c3f8b07f/PATCH_SUPEE-6788_CE_1.8.1.0_v1-2015-10-26-11-59-27.sh"
PATCH1900="https://gist.githubusercontent.com/magenx/12367c15400027dc52e6/raw/fb3428ab0c292dcbdf34ce504f745128a5f9265d/PATCH_SUPEE-
@magenx
magenx / gist:9604368
Last active Aug 29, 2015
Clear apc cache
View gist:9604368
#!/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
View 2500 config products
<?php
/**
* Error reporting
*/
error_reporting(E_ALL | E_STRICT);
/**
* Compilation includes configuration file
*/
define('MAGENTO_ROOT', getcwd());
@arosenhagen
arosenhagen / index.php
Last active Oct 17, 2018
[magento] multidomain-multistore-multistoreview setup with visible language codes
View index.php

Use these snippets to setup a magento installation with the following structure:

@ck-on
ck-on / ocp.php
Last active May 30, 2019
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
View ocp.php
<?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
@magento-team
magento-team / 2500 config products
Created Nov 8, 2012
Create 2500 configurable products, Magento CE 1.7.0.1
View 2500 config products
<?php
/**
* Error reporting
*/
error_reporting(E_ALL | E_STRICT);
/**
* Compilation includes configuration file
*/
define('MAGENTO_ROOT', getcwd());
You can’t perform that action at this time.