/var/www/site/ /var/www/site/app /var/www/site/web - webroot
This file contains 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
editor: | |
config: | |
extraAllowedContent: | |
- "iframe(*){*}[*]" | |
allowTags: | |
- iframe | |
processing: | |
allowTags: | |
- iframe | |
allowTagsOutside: |
This file contains 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 | |
$folderToScan = '.modman/3rdParty'; | |
$directories = scandir($folderToScan); | |
foreach ($directories as $directory) { | |
if ($directory === '.' || $directory === '..' || $directory === '3rdParty') { | |
continue; | |
} | |
if (!file_exists($folderToScan . '/' . $directory . '/modman') | |
|| file_exists($folderToScan . '/' . $directory . '/composer.json') |
This file contains 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 | |
$data = array( | |
'AddThis_SharingTool_Block_Share' => 'app/code/community/AddThis/SharingTool/Block/Share.php', | |
'AddThis_SharingTool_Model_Observer' => 'app/code/community/AddThis/SharingTool/Model/Observer.php', | |
'Amasty_Base_Model_Feed' => 'app/code/local/Amasty/Base/Model/Feed.php', | |
'Amasty_Promo_Helper_Data' => 'app/code/local/Amasty/Promo/Helper/Data.php', | |
'Amasty_Promo_Model_Observer' => 'app/code/local/Amasty/Promo/Model/Observer.php', | |
'Amasty_Rules_Block_Adminhtml_Promo_Quote_Edit' => 'app/code/local/Amasty/Rules/Block/Adminhtml/Promo/Quote/Edit.php', | |
'Amasty_Rules_Block_Checkout_Discount' => 'app/code/local/Amasty/Rules/Block/Checkout/Discount.php', |
This file contains 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 -v | |
PHP 7.2.7-0ubuntu0.18.04.2 | |
Opcache cli enabled: | |
php test.php | |
JSON serializing: 4.27 | |
2339.52req/s | |
content size: 141230 | |
JSON unserializing: 7.39 | |
1352.93req/s | |
Native serializing: 0.59 |
This file contains 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
#this makes local domain being available for crawling from within docker web container | |
#see https://github.com/drud/ddev/issues/842 | |
version: '3' | |
services: | |
web: | |
extra_hosts: | |
- "${DDEV_SITENAME}.ddev.local:127.0.0.1" |
This file contains 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 | |
/** | |
* @cli | |
*/ | |
public function addl18noriguidToDatasetsCommand() | |
{ | |
$column = 'l10n_origuid'; | |
$startPath = 'typo3/sysext/core/Tests/Functional/DataHandling/Regular/'; | |
$absStartPath = PATH_site . $startPath; | |
$Directory = new \RecursiveDirectoryIterator($absStartPath); |
This file contains 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
1. t3_origuid should not be equal to uid of the record | |
- potential fix - if a record has l10n_parent set, set t3_origuid set to the value of l0n_parent | |
2. l10n_parent should contain uid of record in default language only | |
3. // pid != pid parent | |
//uid == l10n_parent | |
//record in default language having l18n set | |
live records with t3ver_oid set ? |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
#Check if product eav tables contain values only for product entity_type_id =10 (no results == OK) | |
SELECT 'catalog_product_entity_datetime', entity_type_id, attribute_id, value FROM catalog_product_entity_datetime | |
where entity_type_id <> 10 | |
union SELECT 'catalog_product_entity_decimal', entity_type_id, attribute_id, value FROM catalog_product_entity_decimal | |
where entity_type_id <> 10 | |
union SELECT 'catalog_product_entity_int', entity_type_id, attribute_id, value FROM catalog_product_entity_int | |
where entity_type_id <> 10 | |
union SELECT 'catalog_product_entity_text', entity_type_id, attribute_id, value FROM catalog_product_entity_text | |
where entity_type_id <> 10 |
NewerOlder