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/';
@jrodriguez-ifuelinteractive
jrodriguez-ifuelinteractive / lbcheck.php
Last active July 16, 2018 12:29
Magento load balancer health check script
<?php
include './app/Mage.php';
try {
Mage::app();
echo gethostname();
} Catch (Exception $e) {
header("HTTP/1.0 503 Service Unavailable");
}
@a-bx
a-bx / copy_git.sh
Created March 8, 2012 14:40
Copy git repositories with all history
#Origin
$ git clone <origin repo>
$ cd <origin directory>
$ git remote rm origin
$ git filter-branch --subdirectory-filter ./ -- --all
$ git add .
$ git commit
$ pwd
#Target