Skip to content

Instantly share code, notes, and snippets.

@inodecloud
inodecloud / wp-permissions-script
Created October 3, 2017 03:39 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro
#
WP_OWNER=changeme # <-- wordpress owner
WP_GROUP=changeme # <-- wordpress group
WP_ROOT=/home/changeme # <-- wordpress root directory
@inodecloud
inodecloud / sed cheatsheet
Created September 10, 2017 12:39 — forked from un33k/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@inodecloud
inodecloud / iw-qmail-clear
Created June 4, 2017 00:08 — forked from asyndesis/iw-qmail-clear
InterWorx Clear qmail queue
cd /var/qmail;service smtp stop;mv queue queue.bad;yum reinstall qmail -y;service smtp start;