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
NOW=$(date +"%Y%d%m%H%M%S") |
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
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] |
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
RewriteCond %{REQUEST_URI} !/maintenance/ | |
RewriteRule ^.*$ http://{DOMAIN}/maintenance/ [R=temp] |
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
RewriteCond %{SERVER_ADDR} x.x.x.x | |
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ | |
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] |
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
[user] | |
name = Alexander Rinass | |
email = [email protected] | |
[core] | |
editor = mate -w | |
[github] | |
user = alexrinass | |
[color] | |
branch = auto | |
diff = auto |
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 | |
# | |
# Changes the document root of a Apache 2 virtual host. | |
# | |
# Assumes /opt/local/www as base directory for virtual hosts. | |
# | |
# Usage: wwwhome [--host HOSTNAME] [PATH] | |
# | |
# Examples: | |
# |
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
RED="\033[0;31m" | |
LRED="\033[1;31m" | |
GREEN="\033[0;32m" | |
LGREEN="\033[1;32m" | |
BROWN="\033[0;33m" | |
YELLOW="\033[1;33m" | |
BLUE="\033[0;34m" | |
LBLUE="\033[1;34m" | |
PURPLE="\033[0;35m" | |
LPURPLE="\033[1;35m" |
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 | |
DB="$1" | |
if [ -z "$DB" ]; then | |
echo "Usage: addmysqldb DB" | |
exit 0 | |
fi | |
RESULT=$(echo "CREATE DATABASE \`$DB\` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" |mysql5 mysql 2>&1) |
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 | |
NEWUSER="$1" | |
PASSWORD="$2" | |
if [ -z "$NEWUSER" ]; then | |
echo "Usage: addmysqluser USERNAME [PASSWORD]" | |
exit 0 | |
fi |
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 | |
# | |
# Script to create an empty Git-Repository. | |
# | |
GIT_BASEPATH=/var/cache/git | |
SCRIPT_NAME="`basename $0`" | |
PROJECT_NAME="$1" | |
if [ -z "$PROJECT_NAME" ]; then | |
echo "Usage: $SCRIPT_NAME PROJECT_NAME" |