Skip to content

Instantly share code, notes, and snippets.

Ramon Fincken ramonfincken

Block or report user

Report or block ramonfincken

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View drop wordfence tables
DROP TABLE `wf_fBadLeechers`, `wp_wfBlockedIPLog`, `wp_wfBlocks`, `wp_wfBlocksAdv`, `wp_wfConfig`, `wp_wfCrawlers`, `wp_wfFileMods`, `wp_wfHits`, `wp_wfHoover`, `wp_wfIssues`, `wp_wfLeechers`, `wp_wfLockedOut`, `wp_wfLocs`, `wp_wfLogins`, `wp_wfReverseCache`, `wp_wfScanners`, `wp_wfStatus`, `wp_wfThrottleLog`;
@ramonfincken
ramonfincken / WooCommerce_search_order_ip.php
Created May 16, 2019
Add search by customer IP address to Woocommerce order search
View WooCommerce_search_order_ip.php
<?php
/**
* Inspired by https://stackoverflow.com/questions/53140009/add-search-by-customer-ip-address-to-woocommerce-order-search
* Code idea borrowed from https://www.skyverge.com/blog/filtering-woocommerce-orders/ && https://gist.github.com/bekarice/41bce677437cb8f312ed77e9f226a812
*/
add_filter( 'request', 'filter_orders_by_payment_method_query' );
function filter_orders_by_payment_method_query( $vars ) {
global $typenow;
@ramonfincken
ramonfincken / composer.json
Created Dec 21, 2017
WordPress Composer multiple mu-plugins fix: composer.json (2 of 2)
View composer.json
"scripts": {
"test": [
"web/vendor/bin/phpcs"
],
"post-update-cmd": "bash muplugins.sh",
"post-install-cmd": "bash muplugins.sh"
}
@ramonfincken
ramonfincken / composer.json
Created Dec 21, 2017
WordPress Composer multiple mu-plugins fix: composer.json (1 of 2)
View composer.json
"extra": {
"wordpress-install-dir": "web/wp",
"installer-paths": {
"web/app/plugins/{$name}": [
"type:wordpress-plugin"
],
"web/app/mu-plugins/{$name}": [
"type:wordpress-muplugin"
],
"web/app/themes/{$name}": [
@ramonfincken
ramonfincken / muplugins.sh
Created Dec 21, 2017
WordPress Composer multiple mu-plugins fix: muplugins.sh
View muplugins.sh
#!/bash
# Author: Ramon Fincken, https://www.mijnpress.nl
BASEDIR=web/app/mu-plugins
muplugindirs=`ls $BASEDIR`
for i in $muplugindirs
do
if [[ -d ${BASEDIR}/${i} ]]
then
@ramonfincken
ramonfincken / Instructions.md
Last active Jun 1, 2016 — forked from pgilad/Instructions.md
Git commit-msg hook to validate for jira issue or the word merge
View Instructions.md

Instructions

  • copy the file commit-msg to .git/hooks/commit-msg
  • make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
View haproxy_blocklists
acl country_cn src -f /etc/haproxy/subnets/CN.subnets
acl country_ng src -f /etc/haproxy/subnets/NG.subnets
acl country_ua src -f /etc/haproxy/subnets/UA.subnets
acl country_ru src -f /etc/haproxy/subnets/RU.subnets
acl network_ovh src -f /etc/haproxy/subnets/OVH.subnets
You can’t perform that action at this time.