Skip to content

Instantly share code, notes, and snippets.

@ljay79
ljay79 / shell_delete_unused_images.php
Last active January 18, 2019 09:38 — forked from aleron75/shell_delete_unused_images
Delete no more used Product Images on Magento 1.x - tested on Magento CE v1.9.3.10
<?php
require_once 'abstract.php';
class Mage_Shell_CheckImages extends Mage_Shell_Abstract
{
const CATALOG_PRODUCT = '/catalog/product';
const CACHE = '/cache/';
const PLACEHOLDER = '/placeholder/';
@ljay79
ljay79 / lbcheck.php
Last active August 22, 2016 14:07 — forked from jrodriguez-ifuelinteractive/lbcheck.php
Magento load balancer health check script
<?php
include './app/Mage.php';
try {
Mage::app();
// echo gethostname();
echo $_SERVER["SERVER_ADDR"]; // local IP, for instances behind ELB
} Catch (Exception $e) {
header("HTTP/1.0 503 Service Unavailable");
}