Skip to content

Instantly share code, notes, and snippets.

View alexlii1971's full-sized avatar

Alexlee alexlii1971

  • Beijing
View GitHub Profile
@alexlii1971
alexlii1971 / brew update stuck
Created February 15, 2020 10:35
brew update stuck
MacBook-Pro-5:~ leealex1$ brew update --debug --verbose
+ [[ -z '' ]]
+ [[ -z '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ export HOMEBREW_UPDATE_TO_TAG=1
+ HOMEBREW_UPDATE_TO_TAG=1
+ [[ -z '' ]]
+ HOMEBREW_AUTO_UPDATE_SECS=60
+ [[ -e /usr/local/Cellar ]]
@alexlii1971
alexlii1971 / woo-endpoint-custom.php
Created February 23, 2019 16:21 — forked from neilgee/woo-endpoint-custom.php
WooCommerce Endpoint Order and Rename - My Account Page v2.6+
<?php
/*
Plugin Name: WooCustom My Account
Plugin URI: http://wpbeaches.com/
Description: WooCustom - add a custom area in my-account
Author: Neil Gee
Version: 1.0.0
Author URI: http://wpbeaches.com
License: GPL-2.0+
@alexlii1971
alexlii1971 / mycred-notifications-note-filter-example
Created April 24, 2018 03:34 — forked from gabrielmerovingi/mycred-notifications-note-filter-example
Adds support for use of shortcodes in notifications.
/**
* Render Shortcodes in Notifications
* @version 1.0
*/
function mycred_pro_render_shortcodes_in_notice( $notice ) {
return do_shortcode( $notice );
}
add_filter( 'mycred_notifications_note', 'mycred_pro_render_shortcodes_in_notice' );