Magento has recently merged an architecture proposal with the goal of removing non-composer modules.
At first this seems like a good idea, but I think there are some problems.
Magento listens to the community. That is a good thing.
// I want to see errors | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
// Modify the PHP Environment | |
ini_set('memory_limit', '2048M'); | |
// Load Up Magento Core | |
define('MAGENTO', realpath('..')); | |
require_once(MAGENTO . '/app/Mage.php'); |
delimiter ;; | |
drop procedure if exists sort_categories;; | |
create procedure sort_categories() | |
begin | |
DECLARE cur_id BIGINT UNSIGNED; | |
DECLARE cur_eof INT DEFAULT FALSE; | |
DECLARE cur CURSOR FOR | |
SELECT entity_id | |
FROM catalog_category_entity_varchar | |
WHERE attribute_id = ( |
################################################################# | |
################################################################# | |
# ○ The number and percentage of customers who placed an order # | |
# ○ VS. number and percentage of repeat customer orders # | |
# # | |
# +------------------+-------+------------+ # | |
# | Type | Count | Percentage | # | |
# +------------------+-------+------------+ # | |
# | Total Customers | 35 | 100.0% | # | |
# | Single Customers | 1 | 2.9% | # |
<?php | |
require_once 'app/Mage.php'; | |
Mage::app(); | |
Mage::app()->getStore()->setId(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$products = Mage::getModel('catalog/product')->getCollection(); | |
//->addAttributeToFilter('entity_id', array('gt' => 14000)); | |
$mediaApi = Mage::getModel("catalog/product_attribute_media_api"); |
<?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'; |
FROM php:7.2-fpm | |
RUN apt-get -qq update && apt-get -qq install libxml++2.6-dev > /dev/null | |
RUN apt-get update && apt-get install -y \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libpng-dev \ | |
zlib1g-dev \ | |
libicu-dev \ | |
g++ \ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ |
### MAGENTO DIRECTORIES | |
# Ignore everything in media, except for the htaccess files | |
# Also include the Lazy Catalog Images (LCI) .htaccess if that's installed | |
# (https://github.com/AOEpeople/Aoe_LazyCatalogImages) | |
/media/* | |
!/media/.htaccess | |
!/media/customer/.htaccess | |
!/media/downloadable/.htaccess | |
!/media/catalog/product/LCI/.htaccess |
Magento has recently merged an architecture proposal with the goal of removing non-composer modules.
At first this seems like a good idea, but I think there are some problems.
Magento listens to the community. That is a good thing.
#!/bin/bash | |
# | |
# Whitelist Pingdom probe-servers in iptables. | |
# | |
# Create a chain called "PINGDOM" and jump to it somewhere before | |
# the final REJECT/DROP, e.g. | |
# | |
# # New chain for Pingdom rules | |
# :PINGDOM - [0:0] | |
# |
#!/bin/sh | |
# | |
# Script to run innobackupex script (for all databases on server), check for success, and apply logs to backups. | |
# | |
# (C)2010 Owen Carter @ Mirabeau BV | |
# This script is provided as-is; no liability can be accepted for use. | |
# You are free to modify and reproduce so long as this attribution is preserved. | |
# | |
INNOBACKUPEX=innobackupex-1.5.1 |