This file contains hidden or 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
| This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
| Token for proof: | |
| [Verifying my OpenPGP key: openpgp4fpr:fec64e0b77737647fa0c5b34bb579336dd3efab9] |
This file contains hidden or 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
| phpcs_ipath=$(phpcs --config-show installed_paths); oldpath=${phpcs_ipath##*:}; phpcs --config-set installed_paths ${oldpath},$(pwd) |
This file contains hidden or 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 | |
| /** | |
| * Outputs the html aria-checked attribute. | |
| * | |
| * Compares the first two arguments and if identical marks as checked | |
| * | |
| * @since 2016-02-08 | |
| * @see checked() | |
| * | |
| * @param mixed $checked One of the values to compare. |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| COMPOSER_GLOBAL_VENDOR=$(composer global config -n --absolute --ansi -- vendor-dir) | |
| "$COMPOSER_GLOBAL_VENDOR/wp-coding-standards/wpcs/vendor/bin/phpcs" --standard=WordPress --colors "$@" |
This file contains hidden or 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
| #!/bin/sh | |
| geoip(){ | |
| ip=$1 || curl https://icanhazip.com | |
| curl "https://freegeoip.net/json/${ip}" | |
| } | |
| geoip "$@" |
This file contains hidden or 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
| find . -type d -depth 1 -exec svn up {} \; |
This file contains hidden or 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
| /** | |
| * Add classes to the DOM based on the current media query size defined by Foundation breakpoints. | |
| */ | |
| (function fdnMQClasses( window, document, $, undefined ) { | |
| var foundationPrefix = 'fdn-size-'; | |
| // Add the class on page load. | |
| $( document ).ready( function () { | |
| $( 'body' ).addClass( foundationPrefix + Foundation.MediaQuery.current ); | |
| } ); |
This file contains hidden or 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
| hosts: | |
| - wpdev.local | |
| apt_mirror: true | |
| php: 5.6 | |
| extensions: | |
| - Chassis/Tester | |
| - Chassis/memcache | |
| - Chassis/MailHog | |
| - Chassis/Cavalcade | |
| - Chassis/Xdebug |
This file contains hidden or 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
| sudo security add-trusted-cert -d -r trustRoot -p ssl -k /Library/Keychains/System.keychain /path/to/local.cert |