Skip to content

Instantly share code, notes, and snippets.

View isyan's full-sized avatar

Michael Young isyan

  • Ecommercecanada
  • Canada
View GitHub Profile
@isyan
isyan / Alternate H1
Last active August 29, 2015 14:00 — forked from electricjesus/gist:7a165c651926f02a79d6
add an alternate H1 field in the manage category section
<?php
require_once 'app/Mage.php';
Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID));
$installer = new Mage_Sales_Model_Mysql4_Setup;
$attribute = array(
'type' => 'text',
'label'=> 'Alternate H1',
'input' => 'text',
<?php
if(!isset($_GET['auth']) || $_GET['auth'] !== '3ebb68a6f75c4c32bd04fe8ed5d76f18') {
header("HTTP/1.1 301 Moved Permanently");
header("Location: /");
header("X-Custom-Message: Please Authenticate");
die();
}
require_once "app/Mage.php";
header("X-Robots-Tag: noindex,nofollow");
@isyan
isyan / mysql-docker.sh
Created October 26, 2016 03:49 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE