This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
SELECT `e`.*, IF(at_status.value_id > 0, at_status.value, at_status_default.value) AS `status` | |
FROM `catalog_product_entity` AS `e` | |
INNER JOIN `catalog_product_entity_int` AS `at_status_default` | |
ON (`at_status_default`.`entity_id` = `e`.`entity_id`) | |
AND (`at_status_default`.`attribute_id` = '98') | |
AND `at_status_default`.`store_id` = 0 | |
LEFT JOIN `catalog_product_entity_int` AS `at_status` | |
ON (`at_status`.`entity_id` = `e`.`entity_id`) | |
AND (`at_status`.`attribute_id` = '98') | |
AND (`at_status`.`store_id` = 1) |
aplicar patch magento
cp -ar patch/* .
sudo mysql -uroot -proot database_prod -e "select sku from catalog_product_entity;" | tr '\t' ',' > skus.csv |
#!/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" |
rsync -rave "ssh -i PEMKEYFILE.pem" /path/to/local/files/* ec2-user@EC2_INSTANCE_HOSTNAME:/path/to/remote/files |
<?php | |
function getWorkingDays($startDate, $endDate) { | |
$begin = strtotime($startDate); | |
$end = strtotime($endDate); | |
if ($begin > $end) { | |
return 0; | |
} | |
else { | |
$holidays = array('01/01', '03/04', '21/04', '01/05', '07/09', '12/10', '02/11', '15/11', '25/12'); | |
$weekends = 0; |
<?xml version="1.0"?> | |
<!-- | |
... | |
--> | |
<config> | |
<global> | |
<install> | |
<date><![CDATA[Sun, 28 Oct 2012 13:09:07 +0000]]></date> | |
</install> | |
<crypt> |
##Code
<?php
class Package_Module_Model_System_Config_Backend_ProcessCsv extends Varien_Object
{
private $_csvFilePath;
private $_headerIsValid;
private $_validCsvHeader;
private $_csvFileAsVarienFileCsv;
private $_csvFileAsVarienObject;