Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Green Myatu

  • United Kingdom
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am myatu on github.
  • I am myatu (https://keybase.io/myatu) on keybase.
  • I have a public key ASB3KBy0-hJSF7dw5t21h8uhj7KlWif1eDQKcm9-Gcx7swo

To claim this, I am signing this object:

@Myatu
Myatu / wp-cron.sh
Last active Dec 29, 2015 — forked from fcingolani/wp-cron.sh
Run wp-cron for a multi-site installation (accounts for path)
View wp-cron.sh
#!/bin/sh
db_host="host";
db_user="user";
db_pass="password";
db_name="database";
domains=`mysql --silent --skip-column-names --host $db_host --user $db_user -p$db_pass $db_name --execute "SELECT CONCAT(domain,path) as url FROM wp_blogs WHERE archived = '0' AND spam = '0' AND deleted = '0';"`;
for domain in $domains; do
the_date=`date`;
@Myatu
Myatu / extra
Created Sep 16, 2013
Grok IPv6 Pattern (Logstash)
View extra
IP6 (?:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{0,4}|:[0-9A-Fa-f]{1,4})?|(:[0-9A-Fa-f]{1,4}){0,2})|(:[0-9A-Fa-f]{1,4}){0,3})|(:[0-9A-Fa-f]{1,4}){0,4})|:(:[0-9A-Fa-f]{1,4}){0,5})((:[0-9A-Fa-f]{1,4}){2}|:(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])(\.(25[0-5]|(2[0-4]|1[0-9]|[1-9])?[0-9])){3})|(([0-9A-Fa-f]{1,4}:){1,6}|:):[0-9A-Fa-f]{0,4}|([0-9A-Fa-f]{1,4}:){7}:)
IP6OR4 (?:%{IP}|%{IP6})
@Myatu
Myatu / etc_garbd
Created Nov 24, 2012
garbd (Galera Arbitrator) init script
View etc_garbd
GARBD_ADDRESS="gcomm://192.168.1.2"
GARBD_GROUP="my_snazzy_cluster"
You can’t perform that action at this time.