This file contains 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
set autoindent | |
set casesensitive | |
set tabsize 4 | |
set tabstospaces |
This file contains 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/sh | |
APACHE_DIR="/usr/local/etc/httpd" | |
CONF="$1" | |
if [ ! -f "$APACHE_DIR/sites-available/$CONF" ]; then | |
echo "$APACHE_DIR/sites-available/$CONF does not exist" | |
exit |
This file contains 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/sh | |
APACHE_DIR="/usr/local/etc/httpd" | |
CONF="$1" | |
if [ ! -f "$APACHE_DIR/sites-available/$CONF" ]; then | |
echo "$APACHE_DIR/sites-available/$CONF does not exist" | |
exit |
This file contains 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 | |
files=$(git diff-index --name-status --cached HEAD | grep -v ^D | cut -c3-) | |
if [ "$files" != "" ] | |
then | |
for f in $files | |
do | |
# Only examine known text files | |
if [[ "$f" =~ [.](conf|css|less|erb|html|js|json|log|properties|rb|ru|txt|xml|yml|php|twig)$ ]] | |
then |