Skip to content

Instantly share code, notes, and snippets.

View brianjking's full-sized avatar
Doin' cool stuff at BrandMuscle AI

Brian J King brianjking

Doin' cool stuff at BrandMuscle AI
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:

brianjking / tmux-cheatsheet.markdown
Created August 23, 2018 17:07 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

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 July 19, 2018 17:52 — forked from kovshenin/subscribers-count.php
Get subscribers count via the MailChimp API.
* 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
Created May 3, 2018 02:06
Use this snippet to have the weight of composited products added to the container weight when the Non-Bundled Shipping option is unchecked.
* 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 February 23, 2018 17:22 — forked from DevinWalker/woocommerce-optimize-scripts.php
Only load WooCommerce scripts on shop pages and checkout + cart
* 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 February 14, 2018 17:39 — forked from ziadoz/
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# Versions
brianjking / style.css
Created January 9, 2018 23:08 — forked from mrkdevelopment/style.css
Divi WooCommerce Button Fix
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 / 0_reuse_code.js
Created February 25, 2017 21:18
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