Skip to content

Instantly share code, notes, and snippets.

View mickythompson's full-sized avatar

Micky Thompson mickythompson

View GitHub Profile
@salcode
salcode / wp-auto-update-everything.php
Last active November 29, 2021 10:08
By default, WordPress only automates minor versions of core when there is no VCS information present. This code enables auto-updates for everything (core, plugins, and themes).
<?php
/**
* Enable Auto Updates for Everything
* https://gist.github.com/salcode/b60df55598c21c5970600a56715a2b1c
*
* Please put this file in the `mu-plugins` directory.
*
* curl -O https://gist.githubusercontent.com/salcode/b60df55598c21c5970600a56715a2b1c/raw/wp-auto-update-everything.php
*/
@mflorence99
mflorence99 / nocache-nginx.md
Last active June 10, 2023 22:40
How to Create a No-Cache nginx Docker Container

How to Create a No-Cache nginx Docker Container

Motivation

It took me a long time to figure this out, so I wanted to memorialize the solution I found in case it helps anyone else.

I wanted to run an nginx container to test HTML/JavaScript/CSS code. Actually, I was writing Polymer components and I wanted a build/test workflow different to that recommended using the supplied polyserve mini-server.

@salcode
salcode / .gitignore
Last active April 3, 2024 18:38
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.