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
| ## set WP-CLI variables ## | |
| WP_CLI_CACHE_DIR="/var/www/cache/.wp-cli" | |
| WP_CLI_CONFIG_PATH="/var/www/meta/wp-cli.yml" | |
| WP_CLI_CUSTOM_SHELL="/bin/bash" | |
| WP_CLI_DISABLE_AUTO_CHECK_UPDATE="true" | |
| WP_CLI_PACKAGES_DIR="/tmp" | |
| # WP_CLI_PHP="" | |
| # WP_CLI_PHP_ARGS="" | |
| # WP_CLI_SSH_PRE_CMD="" | |
| WP_CLI_STRICT_ARGS_MODE="false" |
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
| ## disable ipv6 | |
| ## after saving or editing this file | |
| ## reload settings with: sudo sysctl -p | |
| ## confirm with: cat /proc/sys/net/ipv6/conf/all/disable_ipv6 | |
| # net.ipv6.conf.all.disable_ipv6 = 1 | |
| # net.ipv6.conf.default.disable_ipv6 = 1 | |
| # net.ipv6.conf.lo.disable_ipv6 = 1 | |
| # net.ipv6.conf.eth0.disable_ipv6 = 1 |
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
| .woocommerce del, | |
| .woocommerce-page del { | |
| color: #abaeaf; | |
| } | |
| .woocommerce ins, | |
| .woocommerce-page ins { | |
| color: #272b2b; | |
| text-decoration: none; | |
| } |
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
| LittleBizzy started out as a consulting service by founder Jesse Nickles for WordPress clients looking to speed up and secure their website. Several of these clients were from oDesk (Upwork), or referrals, and beyond, as well as direct customers that are still hosted with us today; below is a mix of real reviews (Google them!) from the past few years. | |
| “Hands down one of the best partners we’ve worked with in our businesses. Can’t speak more highly of the experience we’ve had with LittleBizzy.” | |
| — Cyrus, United States | |
| “Jesse migrated and optimised my page load times and got them from around 10 seconds to 1 second. He totally exceeded my expectations and even suggested further improvements to my page load speeds. Within 24 hours of hiring Jesse much of the work was complete and I found that I was the only real bottleneck. A rare find, thanks.” |
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
| ## replace entire line containing string with new line content ## | |
| sed -i '/error_log/c\error_log = /var/www/logs/error.log' /etc/php/7.2/fpm/php-fpm.conf |
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
| add_filter( 'woocommerce_helper_suppress_admin_notices', '__return_true' ); |
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 | |
| /////////////////////////////// | |
| // HOW TO SANITIZE RADIO BOX // | |
| /////////////////////////////// | |
| function theme_slug_customizer($wp_customize) { | |
| //your section | |
| $wp_customize->add_section( | |
| 'theme_slug_customizer_your_section', | |
| array( | |
| 'title' => esc_html__('Your Section', 'theme_slug'), |
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 -e | |
| clear | |
| echo "============================================" | |
| echo "Instalador de Wordpress" | |
| echo "============================================" | |
| echo "Host do Banco de dados: " | |
| read -e dbhost | |
| echo "Nome do Banco de dados: " | |
| read -e dbname | |
| echo "Usúario do Banco de dados: " |
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
| ## install redis-server ## | |
| DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/bin/apt-get -q --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install redis-server | |
| ## install php-redis ## | |
| DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/bin/apt-get -q --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install php-redis | |
| ## delete tmp files ## | |
| rm -R -f /tmp/redis-conf.txt /tmp/redis.conf | |
| ## download latest versions ## |
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
| apt-get update | |
| systemctl disable [email protected] | |
| systemctl disable [email protected] | |
| apt-get -y remove --purge rsyslog | |
| apt-get -y install ca-certificates dash inetutils-syslogd | |
| rm -f /bin/sh | |
| ln -s dash /bin/sh | |
| #chsh -s /bin/dash | |
| invoke-rc.d inetutils-syslogd stop | |
| for file in /var/log/*.log /var/log/mail.* /var/log/debug /var/log/syslog |