brew uninstall --ignore-dependencies node icu4c
brew install node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* functions.php | |
*/ | |
/** | |
* Fix a long-standing issue with ACF, where fields sometimes aren't shown | |
* in previews (ie. from Preview > Open in new tab). | |
* | |
* @link https://support.advancedcustomfields.com/forums/topic/custom-fields-on-post-preview/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Suppress errors generated by specified WordPress plugins. | |
* | |
* Include in the auto_prepend_file php.ini directive to ignore globally. | |
* | |
* @see http://plugins.trac.wordpress.org/browser/ostrichcize/tags/0.1/ostrichcize.php#L146 | |
* | |
* @param string $errno The error number. | |
* @param string $errstr The error message. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* context-functions.php | |
* | |
* @package bc_starter | |
*/ | |
/** | |
* Get the primary category set in Yoast SEO | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dequeue_tribe_styles() { | |
// Dequeue events calendar stylesheets | |
wp_dequeue_style( 'tribe-events-full-calendar-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-full-mobile-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-mobile-style' ); | |
wp_dequeue_style( 'tribe-events-full-pro-calendar-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-pro-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-full-pro-mobile-style' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* maintenance.min.css | |
*/ | |
/* Web Fonts */ | |
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap'); | |
/* Styles */ | |
html { | |
font-size: 16px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// An example of creating two separate WP queries, combining the results, | |
// sorting by date and formatting the results for us in a loop like a regular query. | |
// order the posts by date in descending order (should go in functions.php to keep things tidy) | |
function order_by_date( $a, $b ) | |
{ | |
return strcmp( $b->post_date, $a->post_date ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git init | |
# Print & Set Some Basic Config Variables (Global) | |
$ git config --global user.email "MyEmail@Zoho.com" | |
$ git config --global user.name "My Name" | |
# Quickly check available commands | |
$ git help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN: SECURITY HEADERS | |
<ifModule mod_headers.c> | |
Header always set Strict-Transport-Security: "max-age=31536000" env=HTTPS | |
Header always set Content-Security-Policy "upgrade-insecure-requests;" | |
Header always set X-XSS-Protection "1; mode=block" | |
Header always set X-Content-Type-Options "nosniff" | |
Header always set Expect-CT "max-age=7776000, enforce" | |
Header always set Referrer-Policy: "no-referrer-when-downgrade" | |
</IfModule> | |
# END: SECURITY HEADERS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########### | |
# ALIASES # | |
########### | |
# Afplay | |
alias afp='afplay' | |
# Base64 | |
alias b64="base64" | |
alias base64='echo `echo "$1" | base64 --decode`' |
NewerOlder