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 | |
| function camel_to_snake($input) | |
| { | |
| return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $input)); | |
| } | |
| function snakeToCamel($input) | |
| { | |
| return lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', $input)))); | |
| } |
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
| DELETE FROM eav_attribute_option_value | |
| WHERE value_id IN ( | |
| SELECT tmp.value_id from ( | |
| SELECT value_id | |
| FROM eav_attribute_option_value | |
| GROUP BY option_id, store_id | |
| HAVING COUNT(*) > 1 | |
| ) as tmp | |
| ); |
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
| javascript:void(( | |
| function() { | |
| const images = document.querySelectorAll('img'); | |
| const missingAlt = [...images].filter(img => !img.hasAttribute('alt') || img.alt === ''); | |
| missingAlt.forEach(img => { | |
| img.style.border = '2px solid red'; | |
| console.log(img); }); | |
| alert("Found wrong alts: "+missingAlt.length); | |
| } | |
| )()) |
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
| 'queue' => [ | |
| 'amqp' => [ | |
| 'host' => 'rabbitmq', | |
| 'port' => '5672', | |
| 'user' => 'magento', | |
| 'password' => 'magento', | |
| 'virtualhost' => '/', | |
| 'ssl' => '' | |
| ], |