Skip to content

Instantly share code, notes, and snippets.

View tareiking's full-sized avatar
🥰
Inventing the future with friends

Tarei King tareiking

🥰
Inventing the future with friends
View GitHub Profile
@tareiking
tareiking / how-i-work.md
Last active June 9, 2022 22:01 — forked from willmot/how-i-work.md
Update feedback section: Im not the CEO!

Role Description

I'm the head of technology at FutureLab Digital based in New Zealand, where we invent the future with friends.

My responsibilities

We iterate on role responsibilities as we adapt to new opportunities at least weekly. But I am the Directly Responsible Individual for the following:

  • Engineering career pathways and progression.
  • Engineering teams role in project delivery.
@tareiking
tareiking / how-i-work-template.md
Last active October 4, 2020 23:31 — forked from jazzsequence/how-i-work-template.md
Template for How I Like to Work posts

How I work

A little gist to share How I Work with my fellow wonderful humans @ Human Made.

When I work

I live in the New Zealand Timezone: +12 or +13 UTC and typically work from 9am - 5pm. I am typically available later on NZ tuesday/wednesday/thursday for syncing with IST, WIT or UK timezones.

I aim for a 40 hour work week spread evenly across the board and find monday and friday are better focus days for me.

<?php
add_action( 'cmb2_after_init', function() {
$metaboxes = \CMB2_Boxes::get_all();
$unique_field_types = [];
foreach ( $metaboxes as $cmb_id => $cmb ) {
if ( ! $cmb->meta_box['fields'] ) {
continue;
}
foreach( $cmb->meta_box['fields'] as $field ) {
$unique_field_types[] = $field['type'];
<?php
add_action( 'cmb2_after_init', function() {
$metaboxes = \CMB2_Boxes::get_all();
foreach ( $metaboxes as $cmb_id => $cmb ) {
?><?php echo PHP_EOL;
echo PHP_EOL; ?>***<?php echo PHP_EOL;
echo PHP_EOL; ?>## <?php echo esc_html( $cmb->meta_box['title'] ); ?><?php echo PHP_EOL; ?><table>
<tr>
<th>
This file has been truncated, but you can view the full file.
60030 verbose gentlyRm don't care about contents; nuking /Users/Tarei/Repo/flair/node_modules/grunt-contrib-imagemin/node_modules/image-min/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property
60031 verbose tar unpack /Users/Tarei/.npm/is-property/1.0.2/package.tgz
60032 verbose tar unpacking to /Users/Tarei/Repo/flair/node_modules/grunt-contrib-imagemin/node_modules/image-min/node_modules/optipng-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property
60033 silly gentlyRm /Users/Tarei/Repo/flair/node_modules/grunt-contrib-imagemin/node_modules/image-min/node_modules/optipng-bin/node_modules/bin-wrapper/node_modules/download/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/gene
<?php
/*
Plugin Name: Delete All Subscriptions
Plugin URI:
Description: Delete all of those bad boys
Author:
Author URI:
Version: 1.0
*/
function mystic_delete_all_subscriptions() {
@tareiking
tareiking / functions.php
Created April 14, 2015 06:06
Remove WYSIWYG Editor for Custom Post Type
<?php
/**
* Remove the text-editor from CPT
*/
function disable_wysiwyg_for_CPT( $default ) {
global $post;
if ( 'CPT' == get_post_type( $post ) ) {
return false;
}
@tareiking
tareiking / gist:24840c80ec9110425223
Created February 25, 2015 01:23
Remove lockfile for chassis
rm /etc/chassis-updated
@tareiking
tareiking / actions.txt
Created February 10, 2015 12:03
A handful of WordPress actions as of 4.1
./wp-activate.php:32:do_action( 'activate_header' );
./wp-activate.php:45: do_action( 'activate_wp_head' );
./wp-admin/admin-ajax.php:44:do_action( 'admin_init' );
./wp-admin/admin-ajax.php:85: do_action( 'wp_ajax_' . $_REQUEST['action'] );
./wp-admin/admin-ajax.php:95: do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] );
./wp-admin/admin-footer.php:25: do_action( 'in_admin_footer' );
./wp-admin/admin-footer.php:67:do_action( 'admin_footer', '' );
./wp-admin/admin-footer.php:74:do_action( 'admin_print_footer_scripts' );
./wp-admin/admin-footer.php:86:do_action( "admin_footer-" . $GLOBALS['hook_suffix'] );
./wp-admin/admin-header.php:80:do_action( 'admin_enqueue_scripts', $hook_suffix );
@tareiking
tareiking / bash.sh
Created January 30, 2015 04:38
Force vagrant provision to start again
## If getting weird provisioning errors with chassis, you can remove the preprovision.sh file to force a completely fresh provision
vagrant ssh
rm /etc/chassis-updated
exit
vagrant provision