EC2-Classic Networking is Retiring – Here’s How to Prepare https://aws.amazon.com/blogs/aws/ec2-classic-is-retiring-heres-how-to-prepare/
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
EC2-Classic Networking is Retiring – Here’s How to Prepare https://aws.amazon.com/blogs/aws/ec2-classic-is-retiring-heres-how-to-prepare/
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
{ | |
"info": { | |
"name": "Magento Enterprise", | |
"_postman_id": "568abbbd-3033-0165-6f9e-748fc011684e", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "V1", |
<?php | |
$attribute_code = 'fashion_colour'; | |
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', $attribute_code); | |
$options = $attribute->getSource()->getAllOptions(); | |
$optionsDelete = array(); | |
$optionsValue = array(); | |
foreach($options as $option) { | |
if (in_array($option['label'], $optionsValue)) { | |
$optionsDelete['delete'][$option['value']] = true; | |
$optionsDelete['value'][$option['value']] = true; |
SELECT * FROM ( SELECT | |
ce.sku, | |
ea.attribute_id, | |
ea.attribute_code, | |
CASE ea.backend_type | |
WHEN 'varchar' THEN ce_varchar.value | |
WHEN 'int' THEN ce_int.value | |
WHEN 'text' THEN ce_text.value | |
WHEN 'decimal' THEN ce_decimal.value | |
WHEN 'datetime' THEN ce_datetime.value |
<?php | |
/** | |
* Copy all images from $productSrc to $productDest | |
* | |
* @param Mage_Catalog_Model_Product $productSrc | |
* @param Mage_Catalog_Model_Product $productDest | |
*/ | |
public function copyProductImages(Mage_Catalog_Model_Product $productSrc, Mage_Catalog_Model_Product $productDest) | |
{ | |
$images = array(); |
<?xml version="1.0"?> | |
<config> | |
<frontend> | |
<events> | |
<!--disable logs--> | |
<controller_action_predispatch> | |
<observers><log><type>disabled</type></log></observers> | |
</controller_action_predispatch> | |
<controller_action_postdispatch> | |
<observers><log><type>disabled</type></log></observers> |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
update core_config_data | |
set value = replace(value, 'intl.forever', 'oscarintl.forever') | |
where value like '%intl.forevernew%'; -- this is so the query doesn't spend time checking all other rows |
#!/bin/bash | |
export XDEBUG_CONFIG="idekey=PHPSTORM" && | |
export PHP_IDE_CONFIG="serverName=Unnamed" && | |
php "$@" | |
Also put this into | |
/etc/php/5.6/fpm/conf.d/20-xdebug.ini | |
xdebug.remote_host=192.168.56.1 |