minikube version
minikube start
| diff -rupN mage_org/app/code/core/Mage/Catalog/Model/Url.php src_shop/app/code/core/Mage/Catalog/Model/Url.php | |
| --- mage_org/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:48:25.679009391 +0100 | |
| +++ src_shop/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:49:24.188005601 +0100 | |
| @@ -643,13 +643,24 @@ class Mage_Catalog_Model_Url | |
| $this->_rewrite = $rewrite; | |
| return $requestPath; | |
| } | |
| + | |
| + // avoid unnecessary creation of new url_keys for duplicate url keys | |
| + $noSuffixPath = substr($requestPath, 0, -(strlen($suffix))); |
| # Create New Application | |
| rails new <project-name> | |
| rails new <project-name> --api | |
| rails new <project-name> --database=postgresql | |
| # Bundle | |
| bundle install | |
| # Gem | |
| gem install <gem-name> |
| <?php | |
| // Parse json body to array | |
| $data = json_decode(file_get_contents("php://input"), true); | |
| // Set logs file destination | |
| $dir = getcwd()."/logs.log"; | |
| // Open file logs | |
| $file = fopen($dir,"a"); |
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE TABLE `gift_message`; | |
| TRUNCATE TABLE `quote`; | |
| TRUNCATE TABLE `quote_address`; | |
| TRUNCATE TABLE `quote_address_item`; | |
| TRUNCATE TABLE `quote_id_mask`; | |
| TRUNCATE TABLE `quote_item`; | |
| TRUNCATE TABLE `quote_item_option`; | |
| TRUNCATE TABLE `quote_payment`; | |
| TRUNCATE TABLE `quote_shipping_rate`; |
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE TABLE `customer_address_entity`; | |
| TRUNCATE TABLE `customer_address_entity_datetime`; | |
| TRUNCATE TABLE `customer_address_entity_decimal`; | |
| TRUNCATE TABLE `customer_address_entity_int`; | |
| TRUNCATE TABLE `customer_address_entity_text`; | |
| TRUNCATE TABLE `customer_address_entity_varchar`; | |
| TRUNCATE TABLE `customer_entity`; | |
| TRUNCATE TABLE `customer_entity_datetime`; | |
| TRUNCATE TABLE `customer_entity_decimal`; |
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE TABLE `review`; | |
| TRUNCATE TABLE `review_detail`; | |
| TRUNCATE TABLE `review_entity_summary`; | |
| TRUNCATE TABLE `review_store`; | |
| SET FOREIGN_KEY_CHECKS = 1; |
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE TABLE `cataloginventory_stock_item`; | |
| TRUNCATE TABLE `cataloginventory_stock_status`; | |
| TRUNCATE TABLE `cataloginventory_stock_status_idx`; | |
| TRUNCATE TABLE `cataloginventory_stock_status_tmp`; | |
| TRUNCATE TABLE `catalog_category_product`; | |
| TRUNCATE TABLE `catalog_category_product_index`; | |
| TRUNCATE TABLE `catalog_category_product_index_tmp`; | |
| TRUNCATE TABLE `catalog_compare_item`; | |
| TRUNCATE TABLE `catalog_product_bundle_option`; |
| <!-- Custom Script Start Here --> | |
| <script> | |
| require([ | |
| "jquery" | |
| ], function ($){ | |
| console.log($(window)) | |
| }) | |
| </script> | |
| <!-- Custom Script End Here --> |