Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kenzik on github.
  • I am kenzik (https://keybase.io/kenzik) on keybase.
  • I have a public key ASAR6mxnTA7_WFp9dm6ARk7Ky_xJH0lVP54OAEZKsYuUEQo

To claim this, I am signing this object:

@kenzik
kenzik / setting-up-babel-nodemon.md
Last active April 7, 2018 13:42 — forked from sam-artuso/setting-up-babel-nodemon.md
Setting up Babel and nodemon

Setting up Babel and nodemon

Inital set-up

Set up project:

mkdir project
cd project
npm init -y
@kenzik
kenzik / facet.css
Last active September 25, 2017 19:33 — forked from djrmom/facet.css
facetwp css classes
/**
** facet classes
**/
.facetwp-facet {
/* class of div that wraps each facet type */
}
.facetwp-facet-FACET-NAME {
/* class for a facet where facet name is FACET-NAME, applied to same div as .facetwp-facet */
}
{
"compilerOptions": {
"target": "ES6"
},
"exclude": [
"node_modules"
]
}
@kenzik
kenzik / functions.php
Created January 6, 2017 00:44 — forked from billerickson/functions.php
Genesis infinite scroll, supporting column classes, custom settings by page, and both auto + button loading
<?php
/**
*
* Infinite Scroll
*
* @since 1.0.0
*
* @author Lauren Gray
* @author Bill Erickson
@kenzik
kenzik / README.md
Last active October 28, 2017 17:00
Beaver Builder Theme CSS Mods

Mods that can't be done using the Beaver Builder Theme customizer.

// https://css-tricks.com/responsive-data-tables/
// https://css-tricks.com/examples/ResponsiveTables/responsive.php
// http://elvery.net/demo/responsive-tables/
.no-more-tables-container {
@mixin no-more-tables-mixin {
// Force table to not be like tables anymore
table, thead, tbody, th, td, tr {
display: block;
}
@kenzik
kenzik / remove-rev-slider-metabox.php
Created March 30, 2016 12:09 — forked from DevinWalker/remove-rev-slider-metabox.php
This code removed the Revolution Slider metabox on pages, posts and CTPs
/**
* Remove Rev Slider Metabox
*/
if ( is_admin() ) {
function remove_revolution_slider_meta_boxes() {
remove_meta_box( 'mymetabox_revslider_0', 'page', 'normal' );
remove_meta_box( 'mymetabox_revslider_0', 'post', 'normal' );
remove_meta_box( 'mymetabox_revslider_0', 'YOUR_CUSTOM_POST_TYPE', 'normal' );
}
@kenzik
kenzik / gist:fc33913acf94c5a45c59
Created February 23, 2016 14:43 — forked from ericandrewlewis/gist:95239573dc97c0e86714
Setting up a WordPress site on AWS

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

@kenzik
kenzik / register-post-type.php
Created February 10, 2016 13:29 — forked from justintadlock/register-post-type.php
Help file when registering post types.
<?php
# Register custom post types on the 'init' hook.
add_action( 'init', 'my_register_post_types' );
/**
* Registers post types needed by the plugin.
*
* @since 1.0.0
* @access public