Skip to content

Instantly share code, notes, and snippets.

View twoelevenjay's full-sized avatar
🏠
Working from home

Leon Francis Shelhamer twoelevenjay

🏠
Working from home
View GitHub Profile
@twoelevenjay
twoelevenjay / vvv-provision-08-25-2017
Created August 25, 2017 17:29
vvv-provision-08-25-2017 klog with VVV not resolving custom host correctly.
MacBook-Pro:vagrant-local leon.shelhamer$ vagrant provision
Ignoring ffi-1.9.10 because its extensions are not built. Try: gem pristine ffi --version 1.9.10
Ignoring nokogiri-1.6.3.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.3.1
Ignoring unf_ext-0.0.7.1 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.1
__ ___ ___ __ ____
\ \ / \ \ / \ \ / / |___ \
\ \ / / \ \ / / \ \ / / __) |
\ V / \ V / \ V / / __/
@twoelevenjay
twoelevenjay / vvv-custom.yml
Created August 25, 2017 17:30
Custom site file for VVV
sites:
trg:
repo: https://github.com/JPry/vvv-base.git
hosts:
- trg.dev
custom:
admin_user: trg
admin_password: trg
admin_email: [email protected]
title: TRG
@twoelevenjay
twoelevenjay / watch.rb
Created October 22, 2017 02:40 — forked from JamieMason/watch.rb
Watch a folder for changes to files, then reload Chrome
#!/usr/bin/env ruby
require 'tempfile'
require 'fileutils'
# Signals
trap("SIGINT") { exit }
# Setup
TARGET_FOLDER = ARGV[0]
TARGET_URL = ARGV[1]
@twoelevenjay
twoelevenjay / woocommerce-give-subcat-list-items-their-own-ul.php
Last active November 9, 2023 15:30
Move WooCommerce subcategory list items into their own <ul> separate from the product <ul>.
<?php
/**
* Move WooCommerce subcategory list items into
* their own <ul> separate from the product <ul>.
*/
add_action( 'init', 'move_subcat_lis' );
function move_subcat_lis() {
// Remove the subcat <li>s from the old location.