Skip to content

Instantly share code, notes, and snippets.

Looking to relocate to the Seattle, WA area!

Brian J King brianjking

Looking to relocate to the Seattle, WA area!
Block or report user

Report or block brianjking

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am brianjking on github.
  • I am iamrobotbear ( on keybase.
  • I have a public key ASDLDmgY4cq1hp2A-BCKVImHndr33bHH9KyG_J9Z4lUxRQo

To claim this, I am signing this object:

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
# don't forget to update usN to your own MailChimp data center ID
TOTAL_ITEMS=`curl --silent --request GET --url "$MC_LIST_ID/members?fields=total_items" --user $MC_API_KEY | jq -r ".total_items"`
echo "id,email_address,status,avg_open_rate,avg_click_rate,timestamp_signup,last_changed,member_rating" > mailchimp_list.csv
echo "action,timestamp,url,type,campaign_id,title,parent_campaign,subscriber_id" > mailchimp_list_activity.csv
brianjking / subscribers-count.php
Created Jul 19, 2018 — forked from kovshenin/subscribers-count.php
Get subscribers count via the MailChimp API.
View subscribers-count.php
* Get subscribers count via the MailChimp API.
function mailchimp_get_subscribers_count() {
$cache_key = 'mailchimp-subscribers';
$api_key = '';
$username = '';
$dc = '';
$list_id = '';
brianjking / woocommerce-composites-variable-container-weight.php Use this snippet to have the weight of composited products added to the container weight when the Non-Bundled Shipping option is unchecked.
View woocommerce-composites-variable-container-weight.php
* Plugin Name: WooCommerce Composite Products - Variable Container Weight
* Plugin URI:
* Description: Use this snippet to have the weight of composited products added to the container weight when the Non-Bundled Shipping option is unchecked.
* Version: 1.0
* Author: SomewhereWarm
* Author URI:
* Developer: Manos Psychogyiopoulos
brianjking / woocommerce-optimize-scripts.php
Created Feb 23, 2018 — forked from DevinWalker/woocommerce-optimize-scripts.php
Only load WooCommerce scripts on shop pages and checkout + cart
View woocommerce-optimize-scripts.php
* Optimize WooCommerce Scripts
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages.
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );
function child_manage_woocommerce_styles() {
//remove generator meta tag
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );
brianjking /
Created Feb 14, 2018 — forked from ziadoz/
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# Versions
brianjking / style.css
Created Jan 9, 2018 — forked from mrkdevelopment/style.css
Divi WooCommerce Button Fix
View style.css
body .et_pb_button:hover, .woocommerce a.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button:hover, .woocommerce-page button.button:hover, .woocommerce input.button:hover, .woocommerce-page input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page #content input.button:hover {
color: #fff;
.woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerc
brianjking / .git-commit-template.txt
Created Mar 18, 2016 — forked from adeekshith/.git-commit-template.txt
Enforce good commit message practices across teams.
View .git-commit-template.txt
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
You can’t perform that action at this time.