This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "Usage: git-commit-size.sh <commit hash>" 1>&2 | |
exit 1 | |
fi | |
HASH=$1 | |
ITEM_LIST="`git diff-tree -r -c -M -C --no-commit-id $HASH`" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Customized the comment form fields ( not the comment text area ) | |
add_filter('comment_form_default_fields', 'my_comment_form_args'); | |
// Customizes the text area - you have to do this here, rather than in comment_form_default_fields | |
add_filter('comment_form_field_comment', 'my_comment_form_field_comment'); | |
// Customized the comment notes above the form fields | |
add_filter( 'comment_form_defaults', 'my_comment_form_defaults' ); |