Skip to content

Instantly share code, notes, and snippets.

View frenck's full-sized avatar
🌱
Please, think about the environment 🌎

Franck Nijhof frenck

🌱
Please, think about the environment 🌎
View GitHub Profile
@frenck
frenck / dabblet.css
Last active October 18, 2017 12:04 — forked from Potherca/README.md
Badges for Project Stages
/**
* Badges for Project Stages
*
* @see: http://result.dabblet.com/gist/a2ae67caa3863a299ba0
* @see: http://bl.ocks.org/potherca/raw/a2ae67caa3863a299ba0
*/
@import url(https://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono);
@import url(https://pother.ca/CssBase/css/base.css);
@import url(https://pother.ca/CssBase/css/created-by-potherca.css);
@frenck
frenck / cleanImages.php
Created March 6, 2016 10:00 — forked from peterjaap/cleanImages.php
Script to clean up the images tables in a Magento installation. Removes references to non-existing images, removes duplicate images, sets correct default image and deletes orphaned images from the filesystem.
<?php
/*
* This script deletes duplicate images and imagerows from the database of which the images are not present in the filesystem.
* It also removes images that are exact copies of another image for the same product.
* And lastly, it looks for images that are on the filesystem but not in the database (orphaned images).
*
* This script can most likely be optimized but since it'll probably only be run a few times, I can't be bothered.
*
* Place scripts in a folder named 'scripts' (or similar) in the Magento root.