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 | |
# This script is a very basic curl utility to analyze urls. | |
# To use it, download the file, make it executable, and run: | |
# ./curl_speedtest.sh https://www.byte.nl | |
URL="$1" | |
if [ "x${URL}" == "x" ] || [[ ! "${URL}" =~ "http" ]] ; then | |
echo "Usage: $0 <url>" | |
exit 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
#!/usr/bin/env python | |
""" | |
Set the base-urls for your Magento 2 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_magento2_staging_baseurls.py | |
After use, check your base-urls by issuing: | |
n98-magerun2 sys:store:config:base-url:list | |
This script requires n98-magerun2. |
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
#!/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. |
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
#!/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. |
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
#!/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. |
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
User-agent: * | |
# Directories | |
Disallow: /app/ | |
Disallow: /bin/ | |
Disallow: /dev/ | |
Disallow: /lib/ | |
Disallow: /phpserver/ | |
Disallow: /pkginfo/ | |
Disallow: /report/ |
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 | |
return array ( | |
'backend' => array ( | |
'frontName' => 'webshop_admin', | |
), | |
'crypt' => array ( | |
'key' => '355fb68f9e21189d170c1d759616cd58', | |
), | |
'db' => array ( |
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
360Spider | |
80legs\.com | |
ADmantX | |
Abonti | |
AcoonBot | |
Acunetix | |
AddThis\.com | |
AhrefsBot | |
AngloINFO | |
Antelope |
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 | |
# 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 |
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
'cache' => array ( | |
'frontend' => array ( | |
'default' => array ( | |
'backend' => 'Cm_Cache_Backend_Redis', | |
'backend_options' => array ( | |
'server' => '127.0.0.1', | |
'port' => '6379', | |
), | |
), | |
// Start of snippet |