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
redis-cli -p 6379 | |
127.0.0.1:6380> SELECT 0 | |
OK | |
127.0.0.1:6380> KEYS *CAHCE* | |
1) "zc:k:446_FPC_CACHE_SIZE_CAHCE_KEY" | |
127.0.0.1:6380> HGET zc:k:446_FPC_CACHE_SIZE_CAHCE_KEY d | |
"3439338" |
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 | |
# One time only, to create wpa.conf: | |
# wpa_passphrase ESSID secret > wpa.conf | |
# su to root, or use sudo for following commands | |
su | |
# Bring the wlan interface up | |
ifconfig wlan0 up |
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 | |
# magento-transfer-1.sh | |
# Marko Martinovic | |
# | |
# Initiate on a new web server | |
# Maintenance mode not required | |
# Prints command traces | |
set -x |
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 | |
# magento-transfer-2.sh | |
# Marko Martinovic | |
# | |
# Initiate on a destination web server | |
# Maintenance mode required | |
# Prints command traces | |
set -x | |
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 | |
/** | |
* Product Attribute Installer | |
*/ | |
try { | |
/* @var $installer Mage_Catalog_Model_Resource_Setup */ | |
$installer = $this; | |
$installer->startSetup(); |
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
# Console setup | |
magento setup:install --base-url=http://magento2.loc/ \ | |
--db-host=localhost --db-name=magento2 --db-user=magento2 --db-password=magento2 \ | |
--admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com \ | |
--admin-user=admin --admin-password=magento2 --language=en_US \ | |
--currency=USD --timezone=Europe/Zagreb --use-rewrites=1 |
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 | |
# Marko Martinović | |
# Print command traces | |
set -x | |
# SSH user | |
SSHUSER="" | |
# SSH host |
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 | |
grep -Ein "get(Singleton|(Resource)?Model)" $(find -name "*.phtml") |
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
--- app/code/core/Mage/Core/Block/Abstract.php 2016-03-25 14:22:51.934883000 +0100 | |
+++ app/code/local/Mage/Core/Block/Abstract.php 2016-03-25 14:39:53.806883000 +0100 | |
@@ -1,4 +1,17 @@ | |
<?php | |
+/* | |
+ * Prevent unnecessary requests to cache storage on | |
+ * | |
+ * core_block_abstract_to_html_after | |
+ * | |
+ * due to |