This file contains hidden or 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 | |
/** | |
* No activity within 1440 seconds; please log in again >>no more<< | |
* | |
* /etc/phpmyadmin/config.inc.php or wherever your PhpMyAdmin config file is | |
* | |
*/ | |
$cfg['Servers'][$i]['auth_type']= 'config'; | |
$cfg['Servers'][$i]['user'] = 'whatever'; |
This file contains hidden or 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 | |
class Whatever_Whatever_Model_Pagecache_Processor extends Enterprise_PageCache_Model_Processor | |
{ | |
/** | |
* Do additional validation for request to be cached. Add condition that request must | |
* have request subprocessor implemented in order to be considered cacheable. | |
* Deals with bug found by @tim_bezhashvyly. | |
* |
This file contains hidden or 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 | |
# Comma separated list of IPs to be excluded | |
echo "123.123.123.123,234.234.234.234">var/.maintenance.ip | |
# For the rest of the world we go down for maintenance NOW | |
touch var/.maintenance.flag |
This file contains hidden or 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
# Console setup | |
magento setup:install --base-url=http://magento2.loc/ \ | |
--db-host=localhost --db-name=magento2 --db-user=magento2 --db-password=magento2 \ | |
--admin-firstname=Magento --admin-lastname=User [email protected] \ | |
--admin-user=admin --admin-password=magento2 --language=en_US \ | |
--currency=USD --timezone=Europe/Zagreb --use-rewrites=1 |
This file contains hidden or 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 | |
return array ( | |
'backend' => | |
array ( | |
'frontName' => 'backend', | |
), | |
'db' => | |
array ( | |
'table_prefix' => '', | |
'connection' => |
This file contains hidden or 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
# Verified: Ubuntu 14.10 | |
sudo apt-get install ruby ruby-dev | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install python-software-properties python g++ make nodejs | |
sudo npm install -g bower grunt-cli |
This file contains hidden or 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 | |
# Varnish 3.x for Ubuntu 14.10 | |
# Add repository | |
sudo add-apt-repository ppa:marko-techytalk.info/varnish-3.0 | |
# Update sources | |
sudo apt-get update | |
# Install Varnish 3.x |
This file contains hidden or 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 | |
# Forward relevant Vagrant forwarded ports to standard ports using iptables (adjust 8080, 8443). | |
# To make persistent install and use "iptables-persistent" package. Just do a | |
# "sudo iptables-persistent save" and service will reload saved rules on each boot. | |
sudo iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080 | |
sudo iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 443 -j REDIRECT --to-ports 8443 |
This file contains hidden or 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 | |
# Generate sample data and trigger Magento2 performance toolkit jMeter test plan. | |
HOST="magento2.loc" | |
BASE_PATH="/" | |
USERS=100 | |
RAMP_PERIOD=300 | |
LOOPS=1 | |
ADMIN_USER="magento2" | |
ADMIN_PASSWORD="magento2" |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<jmeterTestPlan version="1.2" properties="2.8" jmeter="2.13 r1665067"> | |
<hashTree> | |
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Toolkit" enabled="true"> | |
<stringProp name="TestPlan.comments"></stringProp> | |
<boolProp name="TestPlan.functional_mode">false</boolProp> | |
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> | |
<collectionProp name="Arguments.arguments"> | |
<elementProp name="host" elementType="Argument"> |