Skip to content

Instantly share code, notes, and snippets.

@taddev
taddev / AddCert.ps1
Created October 27, 2012 04:17
A simple way to sign code in PowerShell
#
# Author: Tad DeVries
# Email: taddevries@gmail.com
# FileName: AddCert.ps1
#
# Description: Allow a simple method to sign code.
#
# Copyright (C) 2010 Tad DeVries
#
# This program is free software; you can redistribute it and/or
@taddev
taddev / lock_wp-content.sh
Last active August 29, 2015 13:56
A series of scripts to manage the permissions for various wordpress directories in bulk. The *lock* scripts will remove write access to the files while the *unlock* scripts will add it.
#!/bin/bash
LOCKFILE="/home/tad/scripts/.unlocked_wp-content"
WPDIR="/var/www/localhost/htdocs/blog/wp/wp-content"
if [ -f $LOCKFILE ]; then
echo "Locking WP-Content Directory"
find $WPDIR -type f -exec chmod 644 {} \;
find $WPDIR -type d -exec chmod 755 {} \;
rm -f $LOCKFILE