Skip to content

Instantly share code, notes, and snippets.

View markbain's full-sized avatar
🎯
Focusing

Mark Bain markbain

🎯
Focusing
View GitHub Profile
@markbain
markbain / tarcommands.md
Last active November 30, 2018 16:16 — forked from anonymous/tarcommands.md
tar commands

tar --exclude='wp-content/uploads/backupbuddy_backups' --exclude='wp-content/uploads/backwpup-4a2f83-backups' --exclude='wp-content/uploads/backupbuddy_temp' --exclude='wp-content/uploads/2018/09' --exclude='wp-content/uploads/2018/08' --exclude='wp-content/uploads/2018/07' --exclude='wp-content/uploads/2018/06' --exclude='wp-content/uploads/2018/05' --exclude='wp-content/uploads/2018/04' --exclude='wp-content/uploads/2018/03' --exclude='wp-content/uploads/2018/02' --exclude='wp-content/uploads/2018/01' --exclude='wp-content/uploads/2017' --exclude='wp-content/uploads/2016' --exclude='wp-content/uploads/2015' --exclude='wp-content/uploads/2014' --exclude='wp-content/uploads/2013' --exclude='wp-content/uploads/2012' -zcvf wp-content-prod.tar.gz wp-content

@macbleser
macbleser / wp-permissions-script
Created February 21, 2014 15:37
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
@jasperf
jasperf / lookforbadguys.php
Created July 28, 2012 00:47
Look for Bad Guys By Karen Chun, Steven Whitney #security #php
<?php
/* lookforbadguys.php 2011-09-27
Copyright (C)2011 Karen Chun, Steven Whitney.
Initially published by http://25yearsofprogramming.com.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
Version 3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of