Skip to content

Instantly share code, notes, and snippets.

@mikesale
mikesale / .gitignore
Created February 24, 2020 22:41 — forked from salcode/.gitignore
Please see https://salferrarello.com/wordpress-gitignore/ 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)
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# 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
mikesale / flywheel-local-xdebug-vscode.md
Created May 22, 2019 19:34 — forked from ahmadawais/flywheel-local-xdebug-vscode.md
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 → https://VSCode.pro

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

🚅 TL;DR

  • Make sure your Local by FlyWheel WordPress install is a custom install
@mikesale
mikesale / furacodemono.css
Created December 20, 2018 15:17
Fura Code Nerd Font Complete Mono in CSS sans Retina font
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;
src: url(data:font/otf;charset-utf-8;base64,T1RUTwAOAIAAAwBgQ0ZGIEH7pBwAABm8ADSGxUZGVE2DQUEOADWmHAAAABxHREVGp7+8WQA0oIQAAADER1BPU4YJDFMANWjkAAA9OEdTVUINia0zADShSAAAx5xPUy8ylzH3mwAAAVAAAABgUGZFZOQaPKkANaY4AAACSGNtYXC969zCAAAJIAAAEHpoZWFkCziRigAAAOwAAAA2aGhlYf+oFiMAAAEkAAAAJGhtdHggJik7ADWogAAAUxxtYXhwFMdQAAAAAUgAAAAGbmFtZWEcGdUAAAGwAAAHbnBvc3T/hgAyAAAZnAAAACAAAQAAAAE0esRdQMJfDzz1AosD6AAAAADWuzlrAAAAANbh4Jr5D/4MAu8EGgAAAAgAAAAAAAAAAAABAAADp/73AAAC8PkP/3QC7wABAAAAAAAAAAAAAAAAAAAUxwAAUAAUxwAAAAQCYAGQAAUAAAKKAlgAAABLAooCWAAAAV4AMgE8AAACCwUJBQAAAgAEQAAChwIAOAEAAAAAAAAAAENUREIAwAAN//8Dp/73AAADpwEJYAAAnwAAAAACDwKxACAAIAAFAAAAIAGGAAEAAAAAAAAAIwBIAAEAAAAAAAEAFwCcAAEAAAAAAAIABwDEAAEAAAAAAAMAGwEEAAEAAAAAAAQAKQF0AAEAAAAAAAUAPAIYAAEAAAAAAAYAIQKZAAEAAAAAAAcANAMlAAEAAAAAAAgADwN6AAEAAAAAAAkADwOqAAEAAAAAAAsAEAPcAAEAAAAAAAwAEAQPAAEAAAAAAA0AOgSWAAEAAAAAAA4AGgUHAAEAAAAAABAAFwVSAAEAAAAAABIAKQW+AAMAAQQJAAAARgAAAAMAAQQJAAEALgBsAAMAAQQJAAIADgC0AAMAAQQ
@mikesale
mikesale / OpenInNeoVim.applescript
Created October 10, 2018 20:58
AppleScript for Automator application to open file in Neovim in an iTerm window.
on run {input, parameters}
-- If run without input, open random file at $HOME
try
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
mikesale / functions.php
Created October 3, 2018 22:21
A function with filter for wp to enable the use of merge tags in gravity forms fields before form submission
<?php
/**
* Merge Tags as Dynamic Population Parameters
* http://gravitywiz.com/dynamic-products-via-post-meta/
*/
add_filter('gform_pre_render', 'gw_prepopluate_merge_tags');
function gw_prepopluate_merge_tags($form) {
$filter_names = array();
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
mikesale / Fura-Code-Nerd-Font-Complete.css
Created July 9, 2018 17:45
FiraCode Nerd Font css for Blink
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;
src: url(data:font/truetype;charset-utf-8;base64,AAEAAAATAQAABAAwRkZUTYNA2CsAD4MoAAAAHEdERUan4Lx6AA59kAAAAMRHUE9TiYYKWgAPRfAAAD04R1NVQitLy00ADn5UAADHnE9TLzKXY/d8AAABuAAAAGBQZkVk5Bo8qQAPg0QAAAJIY21hcL643kIAAEEAAAAQemN2dCBP3AygAABfUAAAAPBmcGdtdmSBfgAAUXwAAA0WZ2FzcAAAABAADn2IAAAACGdseWYRUPzhAACzZAAMxLxoZWFkC0coqAAAATwAAAA2aGhlYf+jDA8AAAF0AAAAJGhtdHjw2oDxAAACGAAAPuhsb2NhiUgCjAAAYEAAAFMkbWF4cBcXCp0AAAGYAAAAIG5hbWUXBsLOAA14IAAABwJwb3N0+KMe4AANfyQAAP5jcHJlcL+6GZUAAF6UAAAAvAABAAAAATR63DE7h18PPPUCnwPoAAAAANa61FIAAAAA1uHc0PkL/gwC7gQaAAAACAAAAAEAAAAAAAEAAAOn/vcAAALu+Qv/fQLuAAEAAAAAAAAAAAAAAAAAAAqsAAEAABTICDwAXABkAAoAAgB2AIcAiwAAAOQBcwADAAEABAJhAcIABQAAAooCWAAAAEsCigJYAAABXgAyATwAAAILBQkFAAACAARAAAKHAgA4AQAAAAAAAAAAQ1REQgDAAA3//wOn/vcAAAOnAQlgAACfAAAAAAIPArEAAAAgAAUCYQBaAAAAAAJhAAACYQAAAmEA5QJhAJ4CYQAyAmEAQQJhABACYQAzAmEA9AJhAHkCYQCqAmEALQJhADwCYQDKAmEAYQJhANACYQAxAmEARwJhAFkCYQA4AmEALgJhAEQCYQBHAmEASgJhAFwCYQA+AmEAPwJ