Skip to content

Instantly share code, notes, and snippets.

@klipach
klipach / 0_reuse_code.js
Created August 16, 2016 09:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@klipach
klipach / gist:cc6d9d8a467c085d37ee36ac7118d6cd
Created June 16, 2016 12:44 — forked from JeroenBoersma/gist:60a4acb8e56498bce41c
Magento cleanup unused product images
<?php
/**
* Cleanup images from Magento
*/
require 'app/Mage.php';
if (!Mage::isInstalled()) {
echo "Application is not installed yet, please complete install wizard first.";
exit;
<?php
// Helper/Data.php
...
public function prepareIndexdata($index, $separator = ' ', $entity_id = NULL)
{
$_attributes = array();