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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
# non git dir: [email protected]:~/var/www: _ | |
# in git dir: [email protected]:~/var/www/site.tld (branchname): _ | |
PS1="\[\e[01;31m\]\u@\H:\w\$(parse_git_branch): \[\e[00m\]" |
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 | |
# Set up an new github repository | |
GITHUB_USERNAME="timkelty" | |
# from github instructions page after creating a repo | |
mkdir "$1" | |
cd "$1" | |
git init | |
touch README |
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
# Remove the www | |
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
# RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
# Force the www | |
# RewriteCond %{HTTP_HOST} !^www\. | |
# RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,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
# Run this at your site root to upgrade EE | |
# Paths assume your system folder is at site root | |
# http://expressionengine.com/docs/installation/update.html | |
#!/bin/bash | |
# location of the release | |
RELEASE_PATH="/Users/ryan/Desktop/Incoming/ExpressionEngine1.6.7" | |
echo "Enter the name of your system folder" |
NewerOlder