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
root@ip-10-253-143-111:/mnt/www/lojamodelo/shell# ./warm-cache.sh http://lojamodelo.inovarti.com.br/sitemap.xml | |
Getting URLs from sitemap... | |
Warming 130 URLs using 1 processes... | |
HTTP/1.1 200 1.05 secs: 12187 bytes ==> GET /women/new-arrivals.html | |
HTTP/1.1 200 1.10 secs: 12098 bytes ==> GET /women/tops-blouses.html | |
HTTP/1.1 200 0.90 secs: 11632 bytes ==> GET /women/pants-denim.html | |
HTTP/1.1 200 0.93 secs: 12415 bytes ==> GET /women/dresses-skirts.html | |
HTTP/1.1 200 1.13 secs: 12117 bytes ==> GET /men/new-arrivals.html | |
HTTP/1.1 200 0.92 secs: 11867 bytes ==> GET /men/shirts.html | |
HTTP/1.1 200 1.08 secs: 11365 bytes ==> GET /men/tees-knits-and-polos.html |
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
SET FOREIGN_KEY_CHECKS = 0; | |
TRUNCATE TABLE `catalog_product_bundle_option`; | |
TRUNCATE TABLE `catalog_product_bundle_option_value`; | |
TRUNCATE TABLE `catalog_product_bundle_selection`; | |
TRUNCATE TABLE `catalog_product_entity_datetime`; | |
TRUNCATE TABLE `catalog_product_entity_decimal`; | |
TRUNCATE TABLE `catalog_product_entity_gallery`; | |
TRUNCATE TABLE `catalog_product_entity_int`; | |
TRUNCATE TABLE `catalog_product_entity_media_gallery`; |
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
SET FOREIGN_KEY_CHECKS = 0; | |
TRUNCATE TABLE `catalog_category_entity`; | |
TRUNCATE TABLE `catalog_category_entity_datetime`; | |
TRUNCATE TABLE `catalog_category_entity_decimal`; | |
TRUNCATE TABLE `catalog_category_entity_int`; | |
TRUNCATE TABLE `catalog_category_entity_text`; | |
TRUNCATE TABLE `catalog_category_entity_varchar`; | |
TRUNCATE TABLE `catalog_category_product`; | |
TRUNCATE TABLE `catalog_category_product_index`; |
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
By Klaus Wuestefeld | |
1) Torne-se excelente. | |
Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
anos numa faculdade ouvindo um professor falar sobre software q vc | |
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo | |
aula. Ele pratica. Instrumentistas geniais nao aprendem a tocar tendo | |
aula. Eles praticam. Pratique. Chegue em casa depois do trabalho e da |
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
include_once 'app/Mage.php'; | |
//Mage::app('default'); | |
Mage::app(); | |
$installer = Mage::getResourceModel('sales/setup', 'default_setup'); | |
//$installer = $this; | |
$installer->startSetup(); | |
/** |
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
jQuery('input[name="payment[method]"]').on('click', function () { | |
jQuery('#mundipagg_cc_type').removeClass('required-entry validate-cc-type-select'); | |
jQuery('#mundipagg_cc_parcelamento').removeClass('required-entry validate-type-select'); | |
jQuery('#mundipagg_cc_number').removeClass('validate-cc-number validate-cc-type'); | |
jQuery('#mundipagg_cc_owner').removeClass('required-entry'); | |
jQuery('#mundipagg_cc_cpf').removeClass('required-entry'); | |
jQuery('#mundipagg_expiration').removeClass('validate-cc-exp required-entry'); | |
jQuery('#mundipagg_expiration_yr').removeClass('required-entry'); | |
jQuery('#mundipagg_cc_cid').removeClass('cvv required-entry validate-cc-cvn'); |
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 | |
require_once('app/Mage.php'); | |
umask(0); | |
#Mage::app('default'); | |
Mage::app(); | |
#Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$collection = Mage::getResourceModel('catalog/product_collection') | |
->addAttributeToSelect('entity_id') |
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
sudo aptitude install mcrypt | |
sudo aptitude install php5-mcrypt | |
execute e veja se agora existe na listagem o mcrypt | |
php -m | |
fonte: http://askubuntu.com/questions/350942/cannot-get-mcrypt-for-php5 |
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 | |
/* | |
Executar via cron com o comando php container.php | |
*/ | |
require_once('app/Mage.php'); | |
umask(0); | |
#Mage::app('default'); | |
Mage::app(); |
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 | |
require_once 'abstract.php'; | |
/** | |
* Generate a CSV of modules with admin routes that haven't implemented _isAllowed() | |
*/ | |
class Mpchadwick_Missing_Acl_Checker extends Mage_Shell_Abstract | |
{ | |
const MODULES_PATH = 'modules'; |