It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
| SELECT * FROM `catalog_product_entity` WHERE `entity_id` NOT IN (SELECT `entity_id` FROM `catalog_product_entity_media_gallery_value_to_entity`) AND `entity_id` IN (SELECT entity_id FROM `catalog_product_entity_int` WHERE attribute_id = ( SELECT attribute_id FROM `eav_attribute` WHERE `attribute_code` = 'status' ) AND `catalog_product_entity_int`.value = 1) |
It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
| <?php | |
| use Magento\Rule\Model\Condition\Sql\Builder as SqlBuilder; | |
| ... | |
| /** @var $collection Collection */ | |
| $collection = $this->productCollectionFactory->create(); | |
| $conditions = $this->getConditions(); | |
| $productConditions = $this->getProductConditions(); | |
| $conditions->collectValidatedAttributes($collection); |
| SET FOREIGN_KEY_CHECKS=0; | |
| TRUNCATE TABLE `customer_entity`; | |
| TRUNCATE TABLE `customer_entity_datetime`; | |
| TRUNCATE TABLE `customer_entity_decimal`; | |
| TRUNCATE TABLE `customer_entity_int`; | |
| TRUNCATE TABLE `customer_entity_text`; | |
| TRUNCATE TABLE `customer_entity_varchar`; | |
| TRUNCATE TABLE `customer_address_entity`; | |
| TRUNCATE TABLE `customer_address_entity_datetime`; |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| The HTTP Content-Security-Policy response header allow you to control what pages to load for specific | |
| user agents. | |
| This mostly involves defining rules for specific origins or script endpoints, and helps guard against | |
| cross-site scripting attacks (XSS). | |
| --> | |
| <csp_whitelist | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index.html$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.html [L] |
| <?php | |
| /* Source: https://mage2.pro/t/topic/1741/11 */ | |
| namespace Yourcompany\Yourmodule\Controller\Test; | |
| use Magento\Framework\Api\Data\VideoContentInterface; | |
| use Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface; | |
| use Magento\Framework\App\Action\Context; | |
| use Magento\ProductVideo\Model\Product\Attribute\Media\ExternalVideoEntryConverter; | |
| use Magento\Store\Model\Store; | |
| use Magento\Framework\Exception\InputException; |
| $api_key = "API Key" | |
| $video_id = "Video ID" | |
| $url = "https://www.googleapis.com/youtube/v3/videos?id=" . $video_id . "&key=" . $api_key . "&part=snippet,contentDetails,statistics,status"; | |
| $json = file_get_contents($url); | |
| $getData = json_decode( $json , true); | |
| foreach((array)$getData['items'] as $key => $gDat){ | |
| $title = $gDat['snippet']['title']; | |
| } | |
| // Output title | |
| echo $title; |
| <?php | |
| // Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
| // http://youtu.be/dQw4w9WgXcQ | |
| // http://www.youtube.com/embed/dQw4w9WgXcQ | |
| // http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/v/dQw4w9WgXcQ | |
| // http://www.youtube.com/e/dQw4w9WgXcQ | |
| // http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
| <?xml version="1.0"?> | |
| <!-- | |
| Credits: https://mdotacademy.snippets.cc/collection/magento-2/create-route | |
| Place this file in either the "frontend" or "adminhtml" folder to define either | |
| a frontend or admin route, respectively: | |
| ex. app/code/Foo/Bar/etc/frontend/routes.xml | |
| The "urn:magento:framework:App/etc/routes.xsd" file is used to validate this | |
| XML file. You can inspect it at vendor/magento/framework/App/etc/routes.xsd |