View vm_ware.sh
chassis ⟩ vagrant up --provider=vmware_fusion
Bringing machine 'default' up with 'vmware_fusion' provider...
==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Fixed port collision for 22 => 2222. Now on port 2203.
==> default: Starting the VMware VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 172.16.138.166:22
default: SSH username: vagrant
View dem_queries.php
$taxonomies = Fusion()->get_content_taxonomies();
foreach ( $taxonomies as $taxonomy ) {
$tax_query['tax_query'][] = array(
'field' => 'term_id',
'terms' => $tags,
'taxonomy' => $taxonomy,
);
}
View gist:ebedaafafe5f2eb1cc0819069ae659c2
### Keybase proof
I hereby claim:
* I am BronsonQuick on github.
* I am bronsonquick (https://keybase.io/bronsonquick) on keybase.
* I have a public key whose fingerprint is 9697 FB93 A316 562E 7930 341E 7576 844C 8CBE AA39
To claim this, I am signing this object:
View gist:62589e4ea2b273e985a0
<?php
function sennza_backtrace() {
echo implode( '<br>', explode( ',', wp_debug_backtrace_summary( null, 4 ) ) );
};
add_action( 'deprecated_function_run', 'sennza_backtrace' );
add_action( 'deprecated_argument_run', 'sennza_backtrace' );
add_action( 'doing_it_wrong_run', 'sennza_backtrace' );
View wp-cli-batch-import.sh
# Activate the wordpress importer
wp plugin activate wordpress-importer --url=http://localhost/example.com/
# Iterate over all of the import files in a given folder.
for f in myfolder/*.xml; do wp import $f --authors=skip --skip=attachment --url=localhost/example.com/; done
View no_index.php
<?php
/*
Plugin Name: United Influencers Stop Indexing On Staging
Plugin URI: https://hmn.md/
Description: This plugin prevents search engines from indexing our staging sites.
Author: Human Made Limited
Version: 0.1
Author URI: https://hmn.md/
*/
View facts.pp
class all_facts_file {
file { '/tmp/facts.yaml':
content => inline_template('<%= scope.to_hash.reject { |k,v| !( k.is_a?(String) && v.is_a?(String) ) }.to_yaml %>'),
}
}
View otto-wordpress
bronsonquick@Zero:/Volumes/Sites $ git clone git@github.com:WordPress/WordPress.git ottowordpress
Cloning into 'ottowordpress'...
remote: Counting objects: 219711, done.
remote: Compressing objects: 100% (524/524), done.
remote: Total 219711 (delta 343), reused 0 (delta 0), pack-reused 219187
Receiving objects: 100% (219711/219711), 138.54 MiB | 1.35 MiB/s, done.
Resolving deltas: 100% (173810/173810), done.
Checking connectivity... done.
bronsonquick@Zero:/Volumes/Sites $ cd ottowordpress/
bronsonquick@Zero:/Volumes/Sites/ottowordpress (master) $ otto compile
View wordcamp_brisbane_jetpack_SCSS.scss
/*
Welcome to Custom CSS!
CSS (Cascading Style Sheets) is a kind of code that tells the browser how
to render a web page. You may delete these comments and get started with
your customizations.
By default, your stylesheet will be loaded after the theme stylesheets,
which means that your rules can take precedence and override the theme CSS
rules. Just write here what you want to change, you don't need to copy all