Skip to content

Instantly share code, notes, and snippets.

class ConfigExporter extends Mage_Shell_Abstract
{
public function run()
{
$xml = new Varien_Simplexml_Element('<config />');
foreach ($this->getConfigValues($this->getArg('path')) as $item) {
try {
$path = $this->_getConfigPath($item['scope'], $item['scope_id'], $item['path']);
$xml->setNode($path, $item['value']);
} catch (Exception $e) {
Verifying that +therouv is my blockchain ID. https://onename.com/therouv

Keybase proof

I hereby claim:

  • I am therouv on github.
  • I am therouv (https://keybase.io/therouv) on keybase.
  • I have a public key ASDMKCEic1_6D2pc_GTcfxH-9nsblfNhTF9o9PNhZHl-dwo

To claim this, I am signing this object:

@therouv
therouv / magento-db-cleanup.sql
Last active November 10, 2020 06:54
DB cleanup script for Magento with some common database tables.
SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE `customer_entity`;
TRUNCATE `customer_entity_datetime`;
TRUNCATE `customer_entity_decimal`;
TRUNCATE `customer_entity_int`;
TRUNCATE `customer_entity_text`;
TRUNCATE `customer_entity_varchar`;