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
yum install epel-release -y | |
yum install jpegoptim -y | |
yum install optipng -y | |
for i in `ls --hide='system' /var/cpanel/users/`; do | |
find /home/$i/ -type f -iname '*.jpg' -print0 | xargs -0 -n4 -P5 sudo -H -u $i jpegoptim -s | |
find /home/$i/ -type f -iname '*.jpeg' -print0 | xargs -0 -n4 -P5 sudo -H -u $i jpegoptim -s | |
find /home/$i/ -type f -iname '*.png' -print0 | xargs -0 -n4 -P5 sudo -H -u $i optipng -o1 -strip all | |
sleep 5 |
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
if ( isset( $_SERVER['HTTP_CF_CONNECTING_IP'] ) ) { | |
$http_x_headers = explode( ',', $_SERVER['HTTP_CF_CONNECTING_IP'] ); | |
$_SERVER['REMOTE_ADDR'] = $http_x_headers[0]; | |
} |
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 | |
# Converts all InnoDB tables in all databases to MyISAM | |
#DATABASES="db1 db2" # Convert databases db1 and db2 only | |
DATABASES="ALL" # Convert all databases | |
MYSQL_USER=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
<?php if(cs_get_option('map_type') != 'code'): ?> | |
<section class="<?php echo cs_get_option('dzsparallaxer') ? 'dzsparallaxer dzsparallaxer-map auto-init use-loading' : 'simple-map' ?>"> | |
<div class="dzsparallaxer--target"> | |
<div id="map"></div> | |
</div> | |
</section> | |
<script type=text/javascript> | |
<?php |
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 | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/vesta/bin | |
SHELL=/bin/bash | |
MULTILINE=$(ls \ | |
-1) | |
#Get latest WP-CLI | |
rm -rf /home/wp | |
wget --quiet https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /home/wp |
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
<!-- Hotjar Tracking Code for https://yazolewatches.com/ --> | |
<script> | |
jQuery(document).ready(function(c){window.cbload232="no",c(window).scroll(function(){var n,t,o,e;1<c(document).scrollTop()&&"no"==window.cbload232&&(window.cbload232="yes",n=window,t=document,n.hj=n.hj||function(){(n.hj.q=n.hj.q||[]).push(arguments)},n._hjSettings={hjid:1187058,hjsv:6},o=t.getElementsByTagName("head")[0],(e=t.createElement("script")).async=1,e.src="https://static.hotjar.com/c/hotjar-"+n._hjSettings.hjid+".js?sv="+n._hjSettings.hjsv,o.appendChild(e))})}); | |
</script> |
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
# WebP Express rules | |
# -------------------- | |
location ~* ^/?wp-content/.*\.(png|jpe?g)$ { | |
add_header Vary Accept; | |
expires 365d; | |
if ($http_accept !~* "webp"){ | |
break; | |
} | |
try_files | |
/wp-content/webp-express/webp-images/doc-root/$uri.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
location ~* /wp-content/resources/.*\.(js|css)$ { | |
try_files $uri $uri/ /wp-content/autoptimize_404_handler.php; | |
} |
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
location ~* ^.+\.(css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ { | |
expires max; | |
add_header Pragma public; | |
add_header Cache-Control "public"; | |
} |
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
location ~* ^.+\.(css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ { | |
expires max; | |
add_header Pragma public; | |
add_header Cache-Control "public"; | |
} |