This file contains hidden or 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 | |
| """ | |
| Hack to look for user agent strings in typical Apache style log and | |
| count up the number of requests by bots vs non-bots. The list of bot | |
| user agents comes from http://www.user-agents.org/ but has had some | |
| agents added to it, since the user-agents.org list is pretty out of date, e.g. | |
| no Bing?! | |
| """ |
This file contains hidden or 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
| # Optimized MySQL configuration by Fotis Evangelou - Updated Jan 2016 | |
| # | |
| # The settings provided below are a starting point for a 4GB-8GB RAM server with 4 CPU cores. | |
| # If you have less or more resources available you MUST adjust accordingly to save CPU, RAM and disk I/O usage. | |
| # To fine tune these settings for your system, use MySQL DB diagnostics tools like: | |
| # https://launchpad.net/mysql-tuning-primer | |
| # or | |
| # http://blog.mysqltuner.com/download/ | |
| # Note that if there is no comment beside a setting, then you don't need to adjust it. |
This file contains hidden or 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
| ################################################################################# | |
| ### The perfect Varnish configuration for Joomla (& other CMS based) websites ### | |
| ################################################################################# | |
| # USE: Place the contents of this configuration inside the main | |
| # Varnish configuration file, located in: /etc/varnish/default.vcl (root server access required - obviously) | |
| # IMPORTANT: The following setup assumes a 2 minute cache time. You can safely increase | |
| # this to 5 mins for less busier sites or drop it to 1 min or even 30s for high traffic sites. |
NewerOlder