Skip to content

Instantly share code, notes, and snippets.

View heyfletch's full-sized avatar
🏠
Working from home

Joe Fletcher heyfletch

🏠
Working from home
View GitHub Profile
@heyfletch
heyfletch / gitlab-init-remote
Last active August 29, 2015 14:22
gitlab-init-remote
#!/bin/sh
# Modified from: https://coderwall.com/p/r7yh6g/create-a-new-gitlab-repo-from-the-command-line
# to use:
## Setup script locally:
# download gist (use this node helper: https://www.npmjs.com/package/download-gist)
# dg af568a27686e560de21d
# First, replace MyGitlabToken from https://gitlab.com/profile/account
# chmod +x gitlab-init-remote
@heyfletch
heyfletch / chop-down-amazon.css
Created February 22, 2016 17:29
Chop Down Amazon
/* Stylish Chrome Extension:
* https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe
*/
#ad,
#promotions_feature_div,
#sponsored-products-dp_feature_div,
#dp-ads-middle_feature_div,
#detail-ilm_div,
#heroQuickPromo_feature_div {
@heyfletch
heyfletch / better-helvetica.css
Created May 20, 2016 23:56 — forked from don1138/better-helvetica.css
CSS Better Helvetica Font Stack
body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
}
@heyfletch
heyfletch / gulpfile.js
Last active June 10, 2016 04:10 — forked from plasticbrain/gulpfile.js
gulp.js task to deploy code to remote servers
/*******************************************************************************
* Description:
*
* Gulp file to push changes to remote servers (eg: staging/production)
*
* Usage:
*
* gulp deploy --target
*
* Examples:
@heyfletch
heyfletch / migrate-db-pro-preserve-options.php
Last active February 9, 2023 00:20 — forked from daltonrooney/acf-migrate-db-pro.php
Prevent ACF Pro license key from being overwritten during WP Migrate DB Pro migration
<?php
/*
Based on https://gist.github.com/daltonrooney/470619cca87a6c29cb84f92d856b9ec1
and http://github.com/deliciousbrains/wp-migrate-db-pro-tweaks
*/
class ACF_WP_Migrate_DB_Pro_Tweaks {
function __construct() {
add_filter( 'wpmdb_preserved_options', array( $this, 'preserved_options' ) );
}
@heyfletch
heyfletch / make-elementor-default-editor.php
Last active June 12, 2024 19:15
Make Elementor the Default Editor, Not the WordPress Editor (Gutenberg or Classic)
<?php
/**
* Make Elementor the default editor, not the WordPress Editor (Gutenberg or Classic)
* Clicking the page title will take you to the Elementor editor directly
* Even non-Elementor-edited pages will become Elementor-edited pages now
* You can revert by clicking the "Back to WordPress Editor" button
*
* Author: Joe Fletcher, https://fletcherdigital.com
* URL: https://gist.github.com/heyfletch/7c59d1c0c9c56cbad51ef80290d86df7
@heyfletch
heyfletch / fd-clear-elementor-cache.php
Last active February 14, 2022 14:14
Clear Elementor Cache After a WP Migrate DB Pro Migration - Must Use Plugin (mu-plugins)
<?php
/*
Plugin Name: FD Clear Elementor Cache After WP Migrate DB Migration
Plugin URI: https://gist.github.com/heyfletch/769c64ad1fab8679032b076433afafd1
Description: Deletes CSS in uploads/elementor/css, which auto-regenerates on pageload. This clears the cache locally and remotely. Must-use plugin (mu-plugin).
Author: Fletcher Digital
Version: 0.1.1
Author URI: https://fletcherdigital.com
*/
<?php
/*
Plugin Name: Deactivate Plugins in Development
Plugin URI: https://gist.github.com/heyfletch/07a3677f69f94a02aaa02621075e5d6e
Description: Create a list of plugins to deactivate on local development. Doesn't effect production plugins.
Author: Fletcher Digital
Version: 0.1
Author URI: https://fletcherdigital.com
*/
<?php
/*
Plugin Name: FD WP Migrate DB Pro Tweaks
Plugin URI: https://gist.github.com/heyfletch/7c563c418cc23b224af161eb5baea408
Description: Migration tweaks when running WP Migrate DB Pro
Author: Delicious Brains, Fletcher Digital
Version: 0.2.1
Author URI: https://github.com/deliciousbrains/wp-migrate-db-pro-tweaks
*/
@heyfletch
heyfletch / .gitignore
Last active July 5, 2020 14:31
WordPress Gitignore
#Theme Specific
#wp-content/themes/fletcherdigital/assets/css/main.min.css.map
# General
_notes
.cvs
.DS_Store?
.gitattributes
.htaccess