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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Set-TaskbarOptions -Size Small | |
cinst php | |
cinst composer | |
cinst nvm.portable | |
cinst microsoft-windows-terminal | |
cinst git --params "/GitAndUnixToolsOnPath /WindowsTerminal" |
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 | |
/* Google Map WP Shortcode */ | |
function googleMap( $atts, $content = null ) { | |
extract( shortcode_atts( | |
[ | |
"id" => 'cpmap', | |
"type" => 'road', |
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 | |
/** | |
* Return an asociative array of nationalities | |
* | |
* @return array | |
*/ | |
function get_nationalities() { | |
return [ | |
'Irish' => 'Irish', |
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 | |
/** | |
* WP User Profiles + CMB2 | |
* | |
* CMB2 user meta doesn't play very nicely with WP User Profiles. This | |
* class is an example of getting them to work together. | |
* | |
* @see https://github.com/CMB2/CMB2 | |
* @see https://github.com/stuttter/wp-user-profiles |
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
#!/bin/sh | |
##################################################### | |
# Add new site to Homestead.yaml | |
##################################################### | |
# | |
# This scipt assumes the new site is already in a | |
# mapped directory and that is that its parent | |
# directory is the same as the domain. | |
# |
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 | |
/** | |
* Plugin Name: Optimise Google Fonts | |
* Description: Add optimisations for loading Google Fonts. | |
* Version: 0.1.0 | |
* Author: Gary Kealy | |
* Author URI: https://garykealy.dev | |
* License: GNU General Public License v2 or later | |
*/ |