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 / Vagrantfile
Last active August 29, 2015 14:01
Vagrantfile for vagrant-chassis-digitalocean
# -*- mode: ruby -*-
# vi: set ft=ruby :
require "yaml"
# Load git-managed configuration
_config = YAML.load(
File.open(
File.join(File.dirname(__FILE__), "config.yaml"),
File::RDONLY
@tareiking
tareiking / 0_reuse_code.js
Created June 5, 2014 23:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tareiking
tareiking / featured-image-column.php
Created July 14, 2014 23:56
Featured Image Column Plugin
@tareiking
tareiking / functions.php
Created July 23, 2014 01:49
Remove pico defaults and load yah own
/**
* Roll-your-own pico javascript settings
*/
function change_pico_settings(){
if ( is_front_page() && wp_script_is( 'slider-main', 'enqueued' ) ) {
wp_dequeue_script( 'slider-main');
wp_enqueue_script( 'slider-main-custom', get_template_directory_uri() . '/assets/js/jquery.slider-main.js', array( 'jquery' ), '1.0', true );
}
@tareiking
tareiking / TRT.sh
Created September 9, 2014 13:42
Theme Test Script
# Installer script for WP CLI and WP Theme testing
#
# @TODO: Add support for getting theme directly from TRAC.svn link which is given
# @TODO: Install pre-requisites
# @TODO: Install as an extension
###
# Install supercharger 'content' directory
git clone --recursive https://github.com/Chassis/Supercharger content
@tareiking
tareiking / notes.md
Last active September 28, 2015 18:40
CodeSchool Git Real notes
stdin: is not a tty
==> default: Checking for guest additions in VM...
==> default: Checking for host entries
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => /Users/tarei-air/Repo/chassis-109
default: /tmp/vagrant-puppet-3/manifests => /Users/tarei-air/Repo/chassis-109/puppet/manifests
==> default: Running provisioner: shell...
default: Running: /var/folders/cf/2zj6l2yd1xvgf643c_p_b30h0000gn/T/vagrant-shell20141203-34247-1ip46x4.sh
@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
@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 / gist:24840c80ec9110425223
Created February 25, 2015 01:23
Remove lockfile for chassis
rm /etc/chassis-updated