Skip to content

Instantly share code, notes, and snippets.

delimiter ;;
drop procedure if exists build_catalog;;
create procedure build_catalog(IN categories INT, IN products INT)
begin
SET @category_count = 1;
SET @CATNAMEPREFIX = "Category ";
SET @CATURLKEYPREFIX = "cat-";
SET @CATURLPATHPREFIX = "catpath-";
SET @ROOTCATEGORY = 2;
SET @INCLUDEINMENU = 1;
@aepod
aepod / gist:2c2afa9640265d70f2be
Created September 15, 2015 16:12
Magento 2 Error --- Area code not set: Area code must be set before starting a session.
Area code not set: Area code must be set before starting a session.
#0 /var/www/magento2/lib/internal/Magento/Framework/Session/SessionManager.php(130): Magento\Framework\Session\SessionManager->start()
#1 /var/www/magento2/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php(115): Magento\Framework\Session\SessionManager->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Framework\Session\Storage), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), Object(Magento\Framework\App\State))
#2 /var/www/magento2/lib/internal/Magento/Framework/ObjectManager/Factory/Dynamic/Developer.php(91): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#3 /var/www/magento2/lib/internal/

##php[world] Tutorial Attendee Guide ###Scaling Magento - Reaching Peak Performance

####When / Where Monday, November 17th 9:00AM-12:30PM Ash Grove B

####General Overview We will be talking about clustering Magento and using Vagrant with Digital Ocean to back the tutorial. Vagrant and

Verifying that +mathewbeane is my blockchain ID. https://onename.com/mathewbeane
{
"title": "Medium - Some logging event",
"text": "Test event",
"priority": "normal",
"tags": [
"elk"
],
"alert_type": "logz.io"
}
#include <iostream>
#include <string>
#include <map>
using namespace std;
string province(string);
typedef map<string,string> , ProvinceList;
int main(){
string city, abbrev, prov;
@aepod
aepod / GSWP Lab Commands.md
Created December 7, 2018 15:25 — forked from josephoaks/GSWP Lab Commands.md
The Exercise Guide PDF does not copy and paste commands that are multi line very well...

Lab 2.2: Running commands

Task 1: Run local system commands

Step 1
  Steps for Windows:
    PS C:\> bolt command run 'net stop w32time' --nodes winrm://localhost --user Administrator --no-ssl --password
  
  Steps for Linux:
    $ bolt command run 'sudo systemctl stop ntpd' --nodes ssh://localhost --user centos --no-host-key-check

Task 2: Run remote system commands