Syncing RunCloud and Cloudflare firewalls for fail2ban IPs

Cloudflare Fail2ban Serverpilot

…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 More

Add WooCommerce add to cart button and quantity field to Shop archive page

Add Products To Cart Archive

…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 More

How to Add Web Fonts to Beaver Builder Plugin and Theme

Add Web Fonts Beaver Builder

…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 More

Filter 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 More

Add qty inputs next to add to cart button with and without Ajax reload on WooCommerce archives

Ajax Reload Woocommerce Qty Cart

…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 More

Remove MySQL database server from macOS or OSX via the command line

Remove Mysql Databse Macos

…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 More