Skip to content

Instantly share code, notes, and snippets.


Michael Sale mikesale

  • Colorado
View GitHub Profile
mikesale / .gitignore
Created Feb 24, 2020 — forked from salcode/.gitignore
Please see for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
View .gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
# From the root of your project run
# curl -O
# to download this file
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
mikesale /
Created May 22, 2019 — forked from ahmadawais/
Debug WordPress with Visual Studio Code | VSCode WordPress Debug Setup | WordPress xDebug Setup for Local by FlyWheel with VSCode | Part of the VSCode Learning Course →

VSCode WordPress Debugging Setup: WordPress Xdebug Setup for Local by FlyWheel with VSCode

Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User


  • Make sure your Local by FlyWheel WordPress install is a custom install
mikesale / furacodemono.css
Created Dec 20, 2018
Fura Code Nerd Font Complete Mono in CSS sans Retina font
View furacodemono.css
This file has been truncated, but you can view the full file.
@font-face {
font-family: "Fura Code Mono";
font-style: normal;
font-weight: normal;
mikesale / OpenInNeoVim.applescript
Created Oct 10, 2018
AppleScript for Automator application to open file in Neovim in an iTerm window.
View OpenInNeoVim.applescript
on run {input, parameters}
-- If run without input, open random file at $HOME
set filename to POSIX path of input
on error
set filename to "nvim-" & (do shell script "date +%F") & "__" & (random number from 1000 to 9999) & ".txt"
end try
-- Set your editor here
set myEditor to "/usr/local/bin/nvim"
-- Open the file and auto exit after done
mikesale / functions.php
Created Oct 3, 2018
A function with filter for wp to enable the use of merge tags in gravity forms fields before form submission
View functions.php
* Merge Tags as Dynamic Population Parameters
add_filter('gform_pre_render', 'gw_prepopluate_merge_tags');
function gw_prepopluate_merge_tags($form) {
$filter_names = array();
View mkwpsiteinit
wp theme install astra --activate
wp plugin install pods --activate
wp plugin install $HOME/stage/wp/plugs/licensed/elementor/elementor-pro-*.zip --activate
wp plugin install $HOME/stage/wp/plugs/licensed/astra-addon-plugin-*.zip --activate
wp brainstormforce license activate astra-addon <<repace-with-your-astra-pro-reg-code>>
wp plugin install widget-importer-exporter --activate
wp plugin install customizer-export-import --activate
wp plugin update --all
mikesale / Fura-Code-Nerd-Font-Complete.css
Created Jul 9, 2018
FiraCode Nerd Font css for Blink
View Fura-Code-Nerd-Font-Complete.css
This file has been truncated, but you can view the full file.
@font-face {
font-family: "Fura Code Nerd Font Complete Mono";
font-style: normal;
font-weight: normal;