I hereby claim:
- I am joehoyle on github.
- I am joehoyle (https://keybase.io/joehoyle) on keybase.
- I have a public key whose fingerprint is C78E F7AF 4784 FD5E 12F9 68CA F5DA AF1F AC1A 2F53
To claim this, I am signing this object:
<?php | |
define( 'DB_NAME', 'unitedbloggers' ); | |
define( 'DB_USER', 'root' ); | |
define( 'DB_PASSWORD', '' ); | |
define( 'DB_HOST', 'localhost' ); | |
//define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/wordpress' ); | |
//define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] ); |
I hereby claim:
To claim this, I am signing this object:
class Test_Restrict_Articles extends WP_UnitTestCase { | |
function test_mr_get_article_stats_for_yahoo_ticker() { | |
add_filter( | |
'pre_http_request', | |
$this->get_http_request_overide( 'https://finance.yahoo.com/q?s=spy', | |
file_get_contents( __DIR__ . '/data/yahoo-finance-spy.html' ) | |
), 10, 3 ); |
function hm_add_term_meta_query_support( $pieces, $taxonomies, $args ) { | |
if ( empty( $args['meta_query'] ) ) { | |
return $pieces; | |
} | |
$meta_query = new WP_Meta_Query( $args['meta_query'] ); | |
$sql = $meta_query->get_sql( 'term', 't', 'term_id' ); | |
if ( ! $sql ) { |
2015-02-13 00:09:23,842 [salt.state ][INFO ] Loading fresh modules for state activity | |
2015-02-13 00:09:24,191 [salt.fileclient ][INFO ] Fetching file from saltenv 'base', ** done ** 'nginx.sls' | |
2015-02-13 00:09:24,289 [salt.fileclient ][INFO ] Fetching file from saltenv 'base', ** done ** 'appserver.sls' | |
2015-02-13 00:09:24,341 [salt.fileclient ][INFO ] Fetching file from saltenv 'base', ** done ** 'webserver-ssh-keys.sls' | |
2015-02-13 00:09:24,365 [salt.fileclient ][INFO ] Fetching file from saltenv 'base', ** done ** 'webserver.sls' | |
2015-02-13 00:09:24,416 [salt.fileclient ][INFO ] Fetching file from saltenv 'base', ** done ** 'php.sls' | |
2015-02-13 00:09:24,481 [salt.state ][INFO ] Running state [nginx] at time 00:09:24.480904 | |
2015-02-13 00:09:24,481 [salt.state ][INFO ] Executing state pkg.installed for nginx |
<?php | |
class Test_Restrict_Articles extends WP_UnitTestCase { | |
function test_mr_get_article_count_for_yahoo_ticker() { | |
add_filter( 'pre_http_request', $this->get_http_request_overide( | |
'https://finance.yahoo.com/q/h?s=aapl', | |
str_repeat( '<cite>Market Realist something</cite>', 5 ) | |
), 10, 3 ); |
<?php | |
function foo() { | |
sleep(1); | |
echo 'ran'; | |
} | |
foo(); |
### Keybase proof | |
I hereby claim: | |
* I am joehoyle on github. | |
* I am joehoyle (https://keybase.io/joehoyle) on keybase. | |
* I have a public key whose fingerprint is 558B E419 4C8B 27BF 2AC3 2232 6F94 241D D527 9DD0 | |
To claim this, I am signing this object: |
# Run wp-cli from the host machine | |
wp() { | |
DIR=`basename $PWD` | |
ARGS=$* | |
vagrant ssh -c "cd /srv/www/${DIR} ; wp ${ARGS}" | |
} | |
# SSH into vagrant directly to your current directory on the hostmachine | |
vssh() { | |
DIRS=`echo $PWD | sed -e 's,.*projects,/srv/www,'` |