Skip to content

Instantly share code, notes, and snippets.

Avatar

Joel Roberts jwr456

  • Red Haw, LLC
  • New York, NY
View GitHub Profile
View wordpress-passwort-reset-unmultisite.php
<?php
/**
* Plugin Name: Multisite: Passwort Reset on Local Blog
* Plugin URI: https://gist.github.com/eteubert/293e07a49f56f300ddbb
* 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: http://ericteubert.de
* License: MIT
*/
View gist:1df9dab6b378f70de25b
#!/bin/bash
for x in `/usr/bin/dig +short servers.ik2.com`; do echo "$x OK"; done > /etc/postfix/client_access
/usr/sbin/postmap /etc/postfix/client_access
/etc/init.d/postfix reload