Skip to content

Instantly share code, notes, and snippets.

View melvyn-sopacua's full-sized avatar

Melvyn Sopacua melvyn-sopacua

View GitHub Profile
<?php
/**
* Drop this into the shell directory in the Magento root and run with -h to see all options.
*/
require_once 'abstract.php';
/**
* Fix duplicate url keys for categories and products to work with the 1.8 alpha1 CE url key constraints.
@melvyn-sopacua
melvyn-sopacua / testsite.php
Created August 24, 2014 06:05
Test a local site using it's sitemap
<?php
// vim: ts=4 sw=4 noet tw=78 fo=croqn
/*
* Tests a site performance by using it's sitemap.
*
* The SiteFetcher class runs multiple URLs in parallel. In theory, you can
* instantiate multiple SiteFetcher objects, but unless you fork() this
* program, they will be running in sequence, not in parallel.
*
* Note that the settings are conservative defaults that may still put your