.htaccess: Redirect old site to new one

When you move your website to a new domain, you may wanna redirect people to the new domain, so you don’t have to build your traffic all over again. Add this to your .htaccess on your old website: RewriteEngine on RewriteCond %{REQUEST_URI} !http://brand-new-website.com/ RewriteRule $ http://brand-new-website/ [R=301,L]

Git::Basic settings

Add .git_completion.sh to your home directory, and add this to your .bash_profile:   source ~/.git_completion.sh function parse_git_dirty { [[ $(git status 2> /dev/null | tail -n1) != “nothing to commit (working directory clean)” ]] && echo "*" } function parse_git_branch { git branch –no-color 2> /dev/null | sed -e '/^[^*]/d’… Continue reading