View change_magento2_base_urls_to_https.py
#!/usr/bin/env python | |
""" | |
Set the base-urls for your Magento 2 installation to support only https. | |
To use, download the file and make it executable. Then run: | |
./change_magento2_base_urls_to_https.py | |
After use, check your base-urls by issuing: | |
n98-magerun2 sys:store:config:base-url:list | |
This script requires n98-magerun2. |
View change_magento1_base_urls_to_https.py
#!/usr/bin/env python | |
""" | |
Set the base-urls for your Magento 1 installation to support only https. | |
To use, download the file and make it executable. Then run: | |
./change_magento1_base_urls_to_https.py | |
After use, check your base-urls by issuing: | |
n98-magerun sys:store:config:base-url:list | |
This script requires n98-magerun. |
View change_magento1_staging_baseurls.py
#!/usr/bin/env python | |
""" | |
Set the base-urls for your Magento 1 staging environment by copying and adjusting the base-urls from your production site. | |
To use, download the file and make it executable. Then run: | |
./change_magento1_staging_baseurls.py | |
After use, check your base-urls by issuing: | |
n98-magerun sys:store:config:base-url:list | |
This script requires n98-magerun. |
View robots.txt
User-agent: * | |
# Directories | |
Disallow: /app/ | |
Disallow: /bin/ | |
Disallow: /dev/ | |
Disallow: /lib/ | |
Disallow: /phpserver/ | |
Disallow: /pkginfo/ | |
Disallow: /report/ |
View env.php
<?php | |
return array ( | |
'backend' => array ( | |
'frontName' => 'webshop_admin', | |
), | |
'crypt' => array ( | |
'key' => '355fb68f9e21189d170c1d759616cd58', | |
), | |
'db' => array ( |
View blocklist.txt
360Spider | |
80legs\.com | |
ADmantX | |
Abonti | |
AcoonBot | |
Acunetix | |
AddThis\.com | |
AhrefsBot | |
AngloINFO | |
Antelope |
View iopsmon.sh
#!/bin/bash | |
# monitors iops per 30 sec interval, and prints current http and sql transactions if iops avg > 100 | |
while true; do | |
iops=$(iostat xvdf -d 30 2 | tail -2 | head -1 | awk '{print $2}' | cut -d. -f1) | |
if [[ "$iops" -gt 100 ]]; then | |
echo "-------------------------------------------------------------------" | |
echo "IOPS: $iops" | |
echo |
View env.php
'cache' => array ( | |
'frontend' => array ( | |
'default' => array ( | |
'backend' => 'Cm_Cache_Backend_Redis', | |
'backend_options' => array ( | |
'server' => '127.0.0.1', | |
'port' => '6379', | |
), | |
), | |
// Start of snippet |
View env.php
'cache' => array( | |
'frontend' => array( | |
'default' => array( | |
'backend' => 'Cm_Cache_Backend_Redis', | |
'backend_options' => array( | |
'server' => '127.0.0.1', | |
'port' => '6379', | |
), | |
), | |
), |
View redis-sessions.php
'session' => array( | |
'save' => 'redis', | |
'redis' => array( | |
'host' => 'redismaster', | |
'port' => '6379', | |
'password' => '', | |
'timeout' => '2.5', | |
'persistent_identifier' => '', | |
'database' => '2', | |
'compression_threshold' => '2048', |