Skip to content

Instantly share code, notes, and snippets.

View reillo's full-sized avatar

Ner Atillo reillo

View GitHub Profile
# HTML5 BOILERT PLATE HTACCESS/ APPACHE CONFIGURATION
# Apache Server Configs v1.1.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
# to the main server config file (usually called `httpd.conf`), you should add
# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html.

Magento testing scenarios

For use after an upgrade to verify the correct working of Magento

SHIP IT

Frontend

General

  • Activate all logs on the server (PHP, MySQL, Magento, mail, etc)
  • Check meta tags in HTML
@reillo
reillo / CertiLinks.md
Created November 11, 2017 16:21 — forked from marcusthor/CertiLinks.md
Magento Certification Study Links
@reillo
reillo / collection_copy
Created November 5, 2017 15:15 — forked from aleron75/collection_copy
Copy a Magento collection
$originalCollection = Mage::getModel('catalog/product')
->getCollection();
$newCollection = Mage::getModel('catalog/product')
->getCollection();
$selectParts = array(
Varien_Db_Select::DISTINCT,
Varien_Db_Select::COLUMNS,
Varien_Db_Select::UNION,
<?php
/**
* A simple fix for a shell execution on preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version);
* The only edit that was done is that shell_exec('mysql -V') was changed to mysql_get_server_info() because not all
* systems have shell access. XAMPP, WAMP, or any Windows system might not have this type of access. mysql_get_server_info()
* is easier to use because it pulls the MySQL version from phpinfo() and is compatible with all Operating Systems.
* @link http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento
* @author Magento Inc.
*/
@reillo
reillo / IndexController.php
Last active October 10, 2017 08:23
Magestore bug on paypal payments pro . app/code/local/Magestore/Onestepcheckout/controllers/IndexController.php
<?php
/**
* Magestore
*
* NOTICE OF LICENSE
*
* This source file is subject to the Magestore.com license that is
* available through the world-wide-web at this URL:
* http://www.magestore.com/license-agreement.html
*
@reillo
reillo / deploy.sh
Created October 7, 2017 06:01
deploy.sh (Magento)
#!/usr/bin/env bash
## author: reillo <[email protected]>
## add to .gitignore deployment_log
## description: purpose of this is to update the development or live server with belmont packages.
## > bash ./deploy.sh Deploy project to develop without composer update
## > bash ./deploy.sh -l Deploy project to live!.
## configuration
devDomain=mage.lmweb.com.au
devBranch=master
@reillo
reillo / .htaccess.example
Last active August 10, 2018 03:37
.htaccess (Magento)
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php
############################################
## GoDaddy specific options
@reillo
reillo / deploy.sh
Created August 4, 2016 02:19
Deploy git to live or dev server
#!/usr/bin/env bash
## author: reillo <[email protected]>
## add to .gitignore deployment_log
## description: purpose of this is to update the development or live server with using git and packages.
## > bash ./deploy.sh Deploy project to develop without composer update
## > bash ./deploy.sh -l Deploy project to live!.
## > bash ./deploy.sh -u package/name Deploy to develop and update package name
## > bash ./deploy.sh -l -u package/name Deploy to live and update package name
## configuration