Skip to content

Instantly share code, notes, and snippets.


Dave davelavoie

View GitHub Profile
eteubert / wordpress-passwort-reset-unmultisite.php
Last active February 6, 2023 10:03
Multisite: Passwort Reset on Local Blog
View wordpress-passwort-reset-unmultisite.php
* Plugin Name: Multisite: Passwort Reset on Local Blog
* Plugin URI:
* Description: By default, WordPress Multisite uses the main blog for passwort resets. This plugin enables users to stay in their blog during the whole reset process.
* Version: 1.0.0
* Author: Eric Teubert
* Author URI:
* License: MIT
macbleser / wp-permissions-script
Created February 21, 2014 15:37
WordPress Permissions Configuration Script
View wp-permissions-script
# This script configures WordPress file permissions based on recommendations
# from
# Author: Michael Conigliaro
WP_OWNER=changeme # &lt;-- wordpress owner
WP_GROUP=changeme # &lt;-- wordpress group
WP_ROOT=/home/changeme # &lt;-- wordpress root directory
emiller / git-mv-with-history
Last active February 5, 2023 08:21
git utility to move/rename file or folder and retain history with it.
View git-mv-with-history
# git-mv-with-history -- move/rename file or folder, with history.
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.