Skip to content

Instantly share code, notes, and snippets.

View danielck's full-sized avatar

Daniel Koskinen danielck

View GitHub Profile
@danielck
danielck / resize_local_machine.sh
Last active August 9, 2017 07:00 — forked from claygriffiths/resize_local_machine.sh
Resize Local by Flywheel VirtualBox image
# Steps we will take:
# 1. Change Local (Docker Machine) image type (this will take a bit)
# 2. Resize image
# 3. Resize partion
#
# Also see: https://docs.docker.com/articles/b2d_volume_resize/
# IMPORTANT: Make sure Local is not running!
VM_NAME="local-by-flywheel"
NEW_DISK_SIZE=50000
@danielck
danielck / zf-featured-image-in-rss.php
Created September 12, 2017 10:00
WordPress add featured image to RSS
@danielck
danielck / customizer-disable-postmessage-for-menus.php
Last active February 14, 2019 12:06
Disable postMessage for built-in WordPress menus in Customizer
<?php
/**
* Customizer customizations: some highly customized implementations of menus might not work correctly
* with the default postMessage transport in the WordPress Customizer. This code will revert menus
* to use the basic 'refresh' transport, which is slower but can be more reliable.
*
* @param \WP_Customize_Manager $wp_customize Core object for manipulating the Customizer.
*/
function my_customize_register( WP_Customize_Manager $wp_customize ) {