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 bash | |
| # this script is intended to run with sudo privileges | |
| # It is using GeoLite2xtables to do csv's from MaxMind databases | |
| # Make this executable: sudo chmod +x /etc/cron.monthly/geoip-updater | |
| echo 'Removing old database---------------------------------------------------' | |
| rm -rf /usr/share/xt_geoip/* | |
| mkdir /usr/share/xt_geoip | |
| echo 'Downloading country databases-------------------------------------------' |
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
| /var/log/fail2ban.log { | |
| # weekly | |
| daily | |
| # rotate 4 | |
| rotate 30 | |
| # compress | |
| # delaycompress | |
| missingok |
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
| # Regular cron job for the geoipupdate package, used to update GeoIP databases | |
| # | |
| # According to MaxMind: "The GeoIP2 and GeoIP Legacy Country and City databases | |
| # are updated every Tuesday. The GeoIP2 ISP, GeoIP Legacy ISP and Organization | |
| # databases are updated every one to two weeks. All other databases are updated | |
| # on the first Tuesday of each month." | |
| # m h dom mon dow user command | |
| 47 6 * * 3 root test -x /usr/bin/geoipupdate && /usr/bin/geoipupdate |
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
| #Listen 80 | |
| Listen 127.0.0.1:81 | |
| <IfModule ssl_module> | |
| # Listen 443 | |
| </IfModule> | |
| <IfModule mod_gnutls.c> | |
| # Listen 443 | |
| </IfModule> |
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
| #!/bin/bash | |
| # For LS_COLORS, print type and description in the relevant color. | |
| # chmod u+x | |
| IFS=: | |
| for ls_color in $LS_COLORS; do | |
| color="${ls_color#*=}" | |
| type="${ls_color%=*}" | |
| # Add descriptions for named types. |
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
| [PHP] | |
| ;;;;;;;;;;;;;;;;;;;; | |
| ; php.ini Options ; | |
| ;;;;;;;;;;;;;;;;;;;; | |
| ;user_ini.filename = ".user.ini" | |
| ;user_ini.filename = | |
| ;user_ini.cache_ttl = 300 |
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
| bind 127.0.0.1 ::1 | |
| protected-mode yes | |
| port 6379 | |
| tcp-backlog 511 | |
| # unixsocket /var/run/redis/redis-server.sock | |
| # unixsocketperm 700 | |
| timeout 0 | |
| tcp-keepalive 300 | |
| daemonize yes |
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
| //define('WP_CACHE', true); | |
| $_SERVER['HTTPS'] = 'on'; | |
| //define('DISABLE_WP_CRON', true); | |
| define('WP_REDIS_DATABASE', 1); | |
| $redis_server = array( 'host' => '127.0.0.1', 'port' => 6379, ); | |
| define('WP_REDIS_MAXTTL', 900); | |
| define('WP_CACHE_KEY_SALT', 'eksis.dev'); |
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
| [www] | |
| listen = /run/php/php7.4-fpm.sock | |
| user = www-data | |
| group = www-data | |
| listen.owner = www-data | |
| listen.group = www-data | |
| pm = ondemand | |
| pm.max_children = 2 | |
| pm.process_idle_timeout = 10s | |
| pm.max_requests = 100 |
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
| # Check: https://onexa.nl/wordpress/toolbar-link-redis-object-cache/ | |
| /** | |
| * Add a link to the Admin Toolbar to easily flush the Redis cache (Redis Object Cache plugin) | |
| * | |
| * @author Hiranthi Herlaar, onexa.nl | |
| * | |
| * @var $wp_admin_bar > https://codex.wordpress.org/Class_Reference/WP_Admin_Bar | |
| **/ | |
| function redis_add_toolbar_link( $wp_admin_bar ) | |
| { |