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
set chrome to "\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\"" | |
do shell script chrome & " --profile-directory=\"Profile 1\"" & " > /dev/null 2>&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
if filereadable(expand('~/.vimrc.plugs')) | |
source ~/.vimrc.plugs | |
endif | |
if filereadable(expand('~/.vimrc.general')) | |
source ~/.vimrc.general | |
endif |
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
Installing PG on mac | |
https://launchschool.com/blog/how-to-install-postgresql-on-a-mac | |
https://brew.sh/ | |
Sql.js | |
https://kripken.github.io/sql.js/examples/GUI/index.html | |
Common SQL syntax | |
https://tutorialzine.com/2016/01/learn-sql-in-20-minutes | |
https://hgducharme.gitbooks.io/sql-basics/content/ |
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
" vim-fugitive | |
nnoremap <leader>gb :Gblame<CR> | |
" command-t | |
let g:CommandTWildIgnore=&wildignore . ",*/bower_components,*/node_modules,*/log,*/tmp,*/vendor/bundle" | |
let g:CommandTFileScanner="git" | |
let g:CommandTInputDebounce=100 | |
" vim-jsx | |
let g:jsx_ext_required = 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
" ================ General Config ==================== | |
set number "Line numbers are good | |
set backspace=indent,eol,start "Allow backspace in insert mode | |
set history=1000 "Store lots of :cmdline history | |
set showcmd "Show incomplete cmds down the bottom | |
set showmode "Show current mode down the bottom | |
set gcr=a:blinkon0 "Disable cursor blink | |
set visualbell "No sounds | |
set autoread "Reload files changed outside vim |
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
call plug#begin('~/.vim/plugged') | |
Plug 'tpope/vim-fugitive' | |
Plug 'bogado/file-line' | |
Plug 'wincent/command-t' | |
Plug 'lifepillar/vim-solarized8' | |
Plug 'kshenoy/vim-signature' | |
Plug 'leafgarland/typescript-vim' | |
Plug 'pangloss/vim-javascript' | |
Plug 'mxw/vim-jsx' |
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
gv() { | |
if [ $1 ]; then | |
vim $(git show $1 --pretty=format: --name-only -n 1) | |
else | |
vim $(git status --porcelain | sed -ne 's/^ M //p') | |
fi | |
} |
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 gd='git diff' | |
alias gdc='git diff --cached' | |
alias gl='git log --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit' | |
alias gls='git log --stat' | |
alias gg='git grep -n' | |
alias gc='git commit' | |
alias gs='git status' | |
alias gb="git for-each-ref --sort=committerdate refs/heads/ --format='%(refname:short)'" | |
alias gri='git rebase -i ' |
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
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.$HOSTNAME.sock | |
agent_count=`ps -C ssh-agent --no-headers | wc -l`; | |
if [ "$agent_count" = 0 ]; then | |
rm -f $SSH_AUTH_SOCK | |
fi | |
ssh-add -l 2>/dev/null >/dev/null | |
if [ $? -ge 2 ]; then | |
ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null | |
fi |
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
// maps extend across many objects | |
_.mapExtend = function(array) { | |
var sources = slice.call(arguments, 1); | |
sources.unshift({}); | |
var source = _.extend.apply(this, sources); // combine sources | |
each(array, function(obj) { | |
for (var prop in source) { | |
obj[prop] = source[prop]; | |
} | |
}); |
NewerOlder