Below are some examples of how to deal with 301 redirects in .htaccess
Place the example code below into .htaccess
Below are some examples of how to deal with 301 redirects in .htaccess
Place the example code below into .htaccess
################################################################ | |
# Example configuration file for nginx | |
# | |
# To add a new local WordPress domain to your environment, copy | |
# this file using a filename that matches the domain you wish to | |
# setup. For example - mylocaldomain.com.conf would be an ideal | |
# filename for http://mylocaldomain.com | |
# | |
# Once copied, you will need to modify two settings in the server | |
# configuration provided: |
Some scripts/configurations that greatly improve tmux/vim workflows. The shell scripts target zsh but should be adaptable without much effort for other unix shells.
Features:
'vim-tmux-move.zsh', '.vimrc' and '.tmux.conf' cooperate so you can move transparently between tmux panes and vim windows using ALT + (arrow keys or jkhl). It was based on this gist
To use this hook:
prepare-commit-msg
file at .git/hooks/prepare-commit-msg
and edit as neededchmod +x .git/hooks/prepare-commit-msg
git config branch.master.mergeoptions "--no-ff"
NOTE: after a failed merge from a forbidden branch, the working tree will still be in a MERGING state. To discard the local working copy state, run:
git reset --merge
$ git log -1 | grep ^commit | cut -d " " -f 2 | |
dab96492ac7d906368ac9c7a17cb0dbd670923d9 | |
$ git log -1 | grep ^commit | awk '{print $2}' | |
dab96492ac7d906368ac9c7a17cb0dbd670923d9 |
To remove a submodule you need to: | |
Delete the relevant line from the .gitmodules file. | |
Delete the relevant section from .git/config. | |
Run git rm --cached path_to_submodule (no trailing slash). | |
Commit and delete the now untracked submodule files. |
# Makefile | |
# | |
# Converts Markdown to other formats (HTML, PDF, DOCX, RTF, ODT, EPUB) using Pandoc | |
# <http://johnmacfarlane.net/pandoc/> | |
# | |
# Run "make" (or "make all") to convert to all other formats | |
# | |
# Run "make clean" to delete converted files | |
# Convert all files in this directory that have a .md suffix |