start new:
tmux
start new with session name:
tmux new -s myname
| var string = si_eg-h+esg34576457s@slei.ghsegse.lsi.ehg.com | |
| string.match(/^(\w|\+|\d|\-|\.)+\@(\w|\d|\-)+\.(\w|\.)+$/i) |
| Split vertically: <Ctrl-b>% | |
| Split horizontally: <Ctrl-b>" | |
| Move around panes: <Ctrl-b>[Up, Down, Right, Left] | |
| Previous pane: <Ctrl-b>; | |
| Rotate panes: <Ctrl-b><Ctrl-o> | |
| Resize: <Ctrl-b>:resize-pane -U[D,L,R] 10 | |
| Close pane: <Ctrl-b>x |
This will delete branches that have already been merged. Good for cleaning up local repos. Wont delete your current branch.
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Saved here for my own reference but all credit to this guy: http://stevenharman.net/git-clean-delete-already-merged-branches
WARNING: This will only spare your current branch. Remember that you might lose master/staging/etc if you're not currently on that branch.
| syntax on | |
| filetype off | |
| set hlsearch | |
| " Remove trailing whitespace on save | |
| autocmd BufWritePre * :%s/\s\+$//e | |
| " add mouse scrolling | |
| set mouse=a | |
| map <ScrollWheelUp> <C-Y> |
| syntax on | |
| filetype off | |
| " make "tab" insert indents instead of tabs at the beginning of a line | |
| set smarttab | |
| " always uses spaces instead of tab characters | |
| set expandtab | |
| " size of a hard tabstop | |
| set tabstop=2 |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| <script src="http://code.jquery.com/jquery-2.0.2.js"></script> | |
| <script src="http://builds.emberjs.com/handlebars-1.0.0.js"></script> | |
| <script src="http://builds.emberjs.com/ember-latest.js"></script> | |
| </head> | |
| <body> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| <script src="http://code.jquery.com/jquery-2.0.2.js"></script> | |
| <script src="http://builds.emberjs.com/handlebars-1.0.0.js"></script> | |
| <script src="http://builds.emberjs.com/ember-latest.js"></script> | |
| </head> | |
| <body> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| <script src="http://code.jquery.com/jquery-2.0.2.js"></script> | |
| <script src="http://builds.emberjs.com/handlebars-1.0.0.js"></script> | |
| <script src="http://builds.emberjs.com/ember-latest.js"></script> | |
| </head> | |
| <body> |