Skip to content

Instantly share code, notes, and snippets.

@aboritskiy
aboritskiy / README.md
Last active May 9, 2018 09:44
Magento 1 attribute usage statistic

Magento 1 attribute usage statistic

The idea here is super simple - check how much is current attribute used and decide which can be removed from the shop to increase the performance and/or reduce database load. Script might be quite heavy to run at once, thus consider splitting it in two by commenting out some left joins and corresponding count selects.

@aboritskiy
aboritskiy / keybase.md.
Created April 12, 2017 08:53
keybase.md.
### Keybase proof
I hereby claim:
* I am aboritskiy on github.
* I am aboritskiy (https://keybase.io/aboritskiy) on keybase.
* I have a public key ASA1HtFaV9H65HO0wuDSigZpBchwDzkQAecJV0FRA0AHvQo
To claim this, I am signing this object:
@aboritskiy
aboritskiy / SyncURLsCommand.php
Last active July 1, 2021 15:15
Magento2 EE Cloud tips and tricks
<?php
namespace Sitewards\SyncURLs\Console\Command;
use \Symfony\Component\Console\Command\Command;
use \Symfony\Component\Console\Input\InputInterface;
use \Symfony\Component\Console\Output\OutputInterface;
use \Magento\Framework\App\Config\ConfigResource\ConfigInterface;
use \Magento\Store\Model\StoreManagerInterface;