How can I find files that are bigger/smaller than x bytes?
find . -type f -size +4096c to find files bigger than 4096 bytes. And : find . -type f -size -4096c to find files smaller than 4096 bytes. Notice the + and – difference after the size switch. The -size switch explained: -size n[cwbkMG] File …
The attribute ‘title’ is required but missing – Magento 2.2
Dirty Solution Edit vendor/magento/framework/Acl/etc/acl_merged.xsd Find the line replace with …
Magento 2 change admin password – phpmyadmin
UPDATE admin_user SET admin_user.password = CONCAT(SHA2(‘xxxxxxxxpassword’, 256), ‘:xxxxxxxx:1’) WHERE admin_user.user_id = 1 …
Get Custom Attribute on Product List with Flat Catalog
$_getMyAttr = $_product->getResource()->getAttribute(‘my_attribute’); // Get Value $attrTestValue = $_getMyAttr->getFrontend()->getValue($_product); // Get Label $attrTestLabel = $_getMyAttr->getStoreLabel(); Important Make sure “Visible on Product View Page on Front-end” and “Used in Product Listing” options under storefront Properties are set to Yes. …
Plesk install yum issue
Issue Execution failed. Command: autoinstaller Arguments: Array ( [0] => –select-product-id [1] => plesk [2] => –select-release-current [3] => –upgrade-installed-components ) Solution yum clean all rpmdb –rebuilddb yum update cd /etc/yum.repos.d/ …