Skip to content

Instantly share code, notes, and snippets.

@ethanpil
ethanpil / wp-secure.conf
Created May 12, 2017 16:16
Wordpress Security for NginX
# wp-secure.conf
#
#
# This file includes common security considerations for wordpress using nginx.
#
# The goal is to block actions which are usually dangerous to wordpress.
# Additionally, we block direct access to PHP files and folders which should not
# be accessed directly from a browser.
#
# Also have included exceptions for plugins that are known to require this access.
@psi-4ward
psi-4ward / mail-notification-host.sh
Last active June 2, 2021 14:38
Icinga2 Mail Notification Scripts (for Director)
#!/bin/sh
# Mail Notification Script for Icinga2 Hosts
# Uses swaks for mail delivery: http://www.jetmore.org/john/code/swaks/
# Date: 2017-01-19
# Author: Christoph Wiechert <[email protected]>
VERSION=1.0.0
usage() {
echo "Mail Notifications for Icinga2 Host Alerts"