To use watchman, run watchman file-to-watch sleep-time command-to-execute
like so.
watchman test.txt 1 echo 'Tada!'
To use watchman, run watchman file-to-watch sleep-time command-to-execute
like so.
watchman test.txt 1 echo 'Tada!'
// paste in your console | |
speechSynthesis.onvoiceschanged = function() { | |
var msg = new SpeechSynthesisUtterance(); | |
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0]; | |
msg.text = Object.keys(window).join(' '); | |
this.speak(msg); | |
}; |
<?php | |
/** | |
* Plugin Name: Send Reads to Master | |
* Description: Suggested fix for backend replication lag | |
* Author: WP Engine | |
* Version: 0.2 | |
* | |
*/ | |
if ( is_admin() ) { |
<?php | |
class WP_Filter_Return { | |
private $val=''; | |
public function __construct( $val ) { | |
$this->val = $val; | |
} | |
public function display() { | |
echo $this->val; | |
} |
Here are some handy git shortcuts I use with oh-my-zsh to both speed up and protect my workflow.
All merges are handled without a fast-forward. All merges use the default messaging. Whenever possible, autocompletion is provided.
Merges the current branch into another branch and prompts you to automatically push changes.
{ | |
"site": { | |
"name": "A Vetted VVV Venture", | |
"url": "generator-vvv.dev", | |
"liveUrl": "http://wpthemetestdata.wordpress.com/" | |
}, | |
"remoteDatabase": { | |
"url": "http://dbuser:[email protected]/remote-databases/generator-vvv.sql" | |
}, | |
"wordpress": { |
/** | |
* plugin.js | |
* | |
* Copyright, Moxiecode Systems AB | |
* Released under LGPL License. | |
* | |
* License: http://www.tinymce.com/license | |
* Contributing: http://www.tinymce.com/contributing | |
*/ |
#!/bin/bash | |
ip1='FILL-SOURCE-IP'; ip2='FILL-DEST-IP'; host='FILL-HOSTNAME'; curl http://$host | grep -o '<a.*href=.*>' | grep "http://$host" | sed -e 's/<a .*href=['"'"'"]//' -e 's/["'"'"'].*$//' -e '/^$/ d' > links.txt; for link in `cat links.txt`; do path=`echo -n $link | cut -d "/" -f 4-`; curl --header "Host: $host" "http://$ip1/$path" > ip1.html; curl --header "Host: $host" "http://$ip2/$path" > ip2.html; echo; echo "Diff http://$ip1/$path"; echo; diff ip1.html ip2.html; done |