- veth device from CNI/CNM plugin: eth0
- tap device that connects to the VM: tap0
tc qdisc add dev eth0 ingress
tc filter add dev eth0 parent ffff: protocol all u32 match u8 0 0 action mirred egress redirect dev tap0
| function jtd_acf_auto_set_license_keys() { | |
| if ( !get_option('acf_pro_license') && defined('ACF_5_KEY') ) { | |
| $save = array( | |
| 'key' => ACF_5_KEY, | |
| 'url' => home_url() | |
| ); | |
| $save = maybe_serialize($save); |
| # Set the following script to "Actions -> Operations -> Remote command (target: current host, execute on: zabbix server)" | |
| # http://img.sorah.jp/z-20140328-045035.png | |
| # ruby is required | |
| bash <<'EOF' | |
| YOUR_ZABBIX_DOMAIN="zabbix" | |
| IDOBATA_HOOK="http://idobata.io/hooks/XXX" | |
| LABEL="$(ruby -e'puts %w(default inverse warning important important important)[ARGV[0].to_i]' -- {TRIGGER.NSEVERITY})" | |
| [ "_{TRIGGER.STATUS}" = "_OK" ] && LABEL="success" |
| #!/usr/bin/php | |
| <?php | |
| switch($argc) { | |
| case 1: | |
| case 2: | |
| echo "please input new site url and wp directory name!\n"; | |
| exit(); | |
| default: | |
| $old_site = isset($argv[3]) ? $argv[3] : ''; | |
| $path = $argv[2]; |