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
ls -1 *.jpg | xargs -n 1 bash -c '/usr/local/lib/libwebp-0.4.0/bin/cwebp "$0" -o "${0%.*}.webp" -quiet -q 90' | |
ls -1 *.png | xargs -n 1 bash -c '/usr/local/lib/libwebp-0.4.0/bin/cwebp "$0" -o "${0%.*}.webp" -quiet -q 0 -lossless' |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_ACCEPT} image/webp | |
RewriteCond %{DOCUMENT_ROOT}/$1.webp -f | |
RewriteRule (.+)\.(jpe?g|png)$ $1.webp [T=image/webp,E=accept:1] | |
</IfModule> | |
<IfModule mod_headers.c> | |
Header append Vary Accept env=REDIRECT_accept | |
</IfModule> |
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 echo rtrim($_SERVER['DOCUMENT_ROOT'], '/') ?> |
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
## GZIP | |
gzip_static on; | |
## CHARSET | |
charset utf-8; | |
## INDEX LOCATION | |
location / { | |
error_page 404 405 = @nocache; |
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
... | |
image/webp webp; | |
... |
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
# Fail2Ban configuration file | |
# | |
# List of blocked ip addresses | |
# | |
# Server: Nginx | |
# Author: Sergej Müller | |
# | |
# File path: /etc/fail2ban/filter.d/ip-blacklist.conf | |
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
addEventListener( | |
'scroll', | |
function() { | |
var i, | |
img, | |
rect, | |
images = document.querySelectorAll('[lazyload-src]'); | |
if ( ! images.length ) { | |
return; |
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/sh | |
ntpdate 0.de.pool.ntp.org |
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
[wp-auth] | |
enabled = true | |
filter = wp-auth | |
port = http,https | |
logpath = /var/log/nginx*/access*.log | |
maxretry = 1 | |
findtime = 86400 | |
bantime = -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
http { | |
... | |
include /etc/nginx/conf.d/wemonit.map; | |
... | |
} |