Syncing RunCloud and Cloudflare firewalls for fail2ban IPs
…better source, last updated Jan 2021. The Cloudflare conf below is from version 0.11.2 https://github.com/fail2ban/fail2ban/blob/master/config/action.d/cloudflare.conf https://gist.github.com/neilgee/9e89fced25ee515876dee125758330a4 You just rename/backup the old cloudflare.conf.original and add in the new one above best…
Read MoreAdd WooCommerce add to cart button and quantity field to Shop archive page
…the quantity field use… add_filter( ‘woocommerce_loop_add_to_cart_link’, ‘quantity_inputs_for_woocommerce_loop_add_to_cart_link’, 10, 2 ); /** * Override loop template and show quantities next to add to cart buttons * @link https://gist.github.com/mikejolley/2793710 */ function quantity_inputs_for_woocommerce_loop_add_to_cart_link(…
Read MoreHow to Add Web Fonts to Beaver Builder Plugin and Theme
…in your theme folder. Then add in via enqueuing… https://gist.github.com/neilgee/b70262f6ff2f9b0c1774dbebb6c8c91c#file-enqueue-php Once enqueued add for the Beaver Builder modules in via fl_builder_font_families_system filter… https://gist.github.com/neilgee/b70262f6ff2f9b0c1774dbebb6c8c91c#file-fonts-php Just repeat the formatting as above…
Read MoreFilter WooCommerce Order Received Thank You Text
…which you can do using the filter woocommerce_thankyou_order_received_text https://gist.github.com/neilgee/a570907ec8bb4d54741f#file-order-received-append-replace-php Above the original text is being replaced. Or below the original text is being retained with some new text added. https://gist.github.com/neilgee/a570907ec8bb4d54741f#file-order-received-append-php…
Read MoreBlock wp-login.php and xmlrpc.php via fail2ban on RunCloud
…logpath = /home/*/logs/nginx/*_access.log maxretry = 2 findtime = 10800 bantime = 86400 destemail = you@at-your-local-machine.com sender = root@the-remote-machine.com sendername = Fail2ban.`hostname -f` mta = sendmail action = %(action_mwl)s Change the…
Read MoreFilter CPT Archive by Custom Taxonomy with Isotope
…this instance it uses ‘cpt‘. The Isoptope library is loaded to the archive page as well as an isotope-init file and also imagesloaded is called which comes bundled with WordPress….
Read MoreRemotely connect to Amazon S3 Bucket from the macOS command line
…Key: XXX Secret Key: XXX Default Region: Asia Pacific S3 Endpoint: s3.amazonaws.com DNS-style bucket+hostname:port template for accessing a bucket: %(bucket)s.s3.amazonaws.com Encryption password: XXX Path to GPG program: /usr/local/bin/gpg Use HTTPS…
Read MoreAdd qty inputs next to add to cart button with and without Ajax reload on WooCommerce archives
…Override loop template and show quantities next to add to cart buttons * @link https://gist.github.com/mikejolley/2793710 */ function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) { if ( is_user_logged_in() && is_shop() || is_product_category() &&…
Read MoreRemove MySQL database server from macOS or OSX via the command line
…sudo rm /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist sudo rm -rf /Library/StartupItems/MySQLCOM sudo rm -rf /Library/PreferencePanes/My* rm -rf ~/Library/PreferencePanes/MySQL* sudo rm -rf /Library/Receipts/mysql* sudo rm -rf /Library/Receipts/MySQL* sudo rm -rf /private/var/db/receipts/*mysql* Optionally check any processes…
Read MoreDeploying a WordPress site via Git Hooks on a ServerPilot Server
This guide looks at setting up a git deployment using hooks to push local commits from a local development to a remote development branch which then published those changes live,…
Read More