This file contains hidden or 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
" Removes trailing spaces | |
function TrimWhiteSpace() | |
%s/\s*$// | |
'' | |
:endfunction | |
" Associates it with F2 key | |
map! <F2> :call TrimWhiteSpace()<CR> |
This file contains hidden or 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 | |
cd $HOME | |
# Add here every domain/folder where you have Wordpress installed. | |
# Dreamhost normally puts all domains on $HOME, so this is what I do. | |
DOMAINS="mydomain1.com mydomain2.com mydomain3.com" | |
# Add here any dirs, file patterns etc. that you don't want to backup before upgrading. | |
# These are MY settings; tweak according to your needs. |
This file contains hidden or 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 | |
# This expects files ordered like: | |
# Artist/Album/01 Track Title.mp3 | |
# | |
# You should provide the dir containing the Artist dirs at the command line. | |
START="$1" | |
if [ "$START" == "" ]; then |
NewerOlder