This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
In the bootstrap/app.php file, add one of the following above the return statement. | |
*/ | |
/* | |
Option 1, if you want to be ballsey and load before any service provider in the config/app.php file. | |
*/ | |
$app->resolving(Illuminate\Foundation\Bootstrap\RegisterProviders::class, function () use ($app) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WP_Query_CustomSQL extends WP_Query | |
{ | |
function get_posts() { | |
$posts = parent::get_posts(); | |
// overwrite max_num_pages settings if set | |
$q = &$this->query_vars; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// hack to over write the max_num_queries var | |
class WP_Query_CustomSQL extends WP_Query | |
{ | |
function get_posts() { | |
$posts = parent::get_posts(); | |
// overwrite max_num_pages settings if set | |
$q = &$this->query_vars; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant plugin install json --debug | |
INFO global: Vagrant version: 2.2.2 | |
INFO global: Ruby version: 2.4.4 | |
INFO global: RubyGems version: 2.6.14.1 | |
INFO global: VAGRANT_DISABLE_PLUGIN_INIT="1" | |
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.2\\gems\\vagrant-2.2.2\\bin\\vagrant" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_LOG="debug" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! function_exists('ddd')) | |
{ | |
/** | |
* Dump the passed variables and end the script. | |
* | |
* @param mixed | |
* @return void | |
*/ | |
function ddd($v, $asString = false) |