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
" Enable and disable color column | |
set colorcolumn=0 | |
function! ToggleColorColumn() | |
if &colorcolumn == 0 | |
windo let &colorcolumn = 80 | |
else | |
windo let &colorcolumn = 0 | |
endif | |
endfunction | |
command! -nargs=? -range=% ToggleColumn call ToggleColorColumn() |
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
# GO bins if they exist | |
GOPATH="$HOME/Projects/go" | |
if [ -d "$GOPATH" ]; then | |
export GOPATH | |
PATH=$PATH:$GOPATH/bin | |
fi | |
# Node & NPM bin if they exist | |
NODEPATH="$HOME/.node/bin" | |
if type "npm" > /dev/null; then |
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 | |
DBADDR='localhost:5984' | |
DEBUG=0 | |
DATABASE="" | |
LOGFILE="/dev/null" | |
REMREV=0 | |
FIXQUOTES=0 | |
REMIMG=0 |
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 | |
DBADDR='localhost:5984' | |
DEBUG=0 | |
DATABASE="" | |
JSONFILE="" | |
LOGFILE="/dev/null" | |
usage () { | |
echo "" |
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
platforms/ | |
plugins/ |
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 | |
set -o nounset | |
set -o errexit | |
OPTION="" | |
HISTORYFILE="${HOME}/.transfer_history" | |
testfile() { | |
FILETOTEST=$1 |
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
alias configuredebug='CPPFLAGS=-DDEBUG CFLAGS="-g -O0" CXXFLAGS="-g -O0" ./configure' |
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 | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
# Set some global variables | |
installLocation='./FINAL-PLACE' | |
logFiles='./log' | |
md5Cache="$logFiles/md5Cache.txt" | |
duplicateFile="$logFiles/dupFiles.txt" |
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 is meant to be run on a newly install computer | |
# and can be done remotely by something like this: | |
# | |
# ssh username@ipaddress 'bash -s' < local_script.sh | |
# | |
# Enable/Start SSHD | |
####################################### |
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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
function git-track { | |
CURRENT_BRANCH=$(parse_git_branch) | |
git-config branch.$CURRENT_BRANCH.remote $1 | |
git-config branch.$CURRENT_BRANCH.merge refs/heads/$CURRENT_BRANCH | |
} |