This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<META NAME="ROBOTS" CONTENT="NOINDEX, FOLLOW"> | |
</head> | |
<body> | |
<?php | |
/** | |
* Created by PhpStorm. | |
* User: erik.simonic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @sql NVARCHAR(MAX) = N''; | |
SELECT @sql += N'ALTER DATABASE '+QUOTENAME(name)+N' SET RECOVERY SIMPLE WITH NO_WAIT; GO;' | |
from sys.databases | |
where database_id > 4; | |
PRINT @sql; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Temporary edit the lib/Varien/Autoload.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$_product = Mage::getModel('catalog/product')->loadByAttribute( 'sku', 'ABC123' ); | |
$coll = $_product->getTypeInstance()->getAssociatedProductCollection() | |
->joinAttribute( 'my_custom_attribute', 'catalog_product/my_custom_attribute', 'entity_id', null, 'left' ) | |
->addAttributeToSelect( 'my_custom_attribute' ) | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Admin | |
* Date: 20. 06. 2015 | |
* Time: 15:21 | |
*/ | |
///catalog_product_entity_media_gallery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Admin | |
* Date: 20. 06. 2015 | |
* Time: 08:21 | |
*/ | |
// env config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Admin | |
* Date: 20. 06. 2015 | |
* Time: 11:48 | |
*/ | |
ini_set('display_errors', 1); | |
umask(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: Admin | |
* Date: 20. 06. 2015 | |
* Time: 08:21 | |
*/ | |
// env config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208 | |
# Configuration name server-38 generated for erik.simonic@gmail.com at 2015-06-21 11:02:58 | |
[mysql] | |
# CLIENT # | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
[mysqld] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SOURCE=source/ | |
DESTINATION=destination/ | |
DESTINATION_DIFF=destination_diff/ | |
DIFF_FILE=differences.txt | |
DIFF_FILE_TMP=differences_tmp.txt | |
diff -bBqTrqN $SOURCE $DESTINATION >$DIFF_FILE | |
sed 's/Files //' $DIFF_FILE > $DIFF_FILE_TMP | |
sed 's/ and .*$//' $DIFF_FILE_TMP > $DIFF_FILE |
OlderNewer