-
name of the current banch and nothing else (for automation)
git rev-parse --abbrev-ref HEAD -
all commits that your branch have that are not yet in master
git log master..<HERE_COMES_YOUR_BRANCH_NAME>
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>Video Store</title> | |
| </head> | |
| <body> | |
| <h1>Rental Record for <em>martin</em></h1> | |
| <table> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
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
| var customer = { | |
| "name": "martin", | |
| "rentals": [{ | |
| "movieID": "F001", | |
| "days": 3 | |
| }, { | |
| "movieID": "F002", | |
| "days": 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
| { | |
| "name": "martin", | |
| "rentals": [ | |
| {"movieID": "F001", "days": 3}, | |
| {"movieID": "F002", "days": 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
| zmodload zsh/zutil | |
| zparseopts -A ARGUMENTS -p: | |
| PORT=$ARGUMENTS[--p] | |
| processToKill=$(lsof -n -i4TCP:$PORT | grep LISTEN | awk '{print $2}') | |
| if [ -n "$processToKill" ]; then | |
| kill $processToKill | |
| printf 'Killed port: "%s"\n' "$PORT" | |
| 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
| processToKill=$(lsof -n -i4TCP:9999 | grep LISTEN | awk '{print $2}') | |
| if [ -n "$processToKill" ]; then | |
| kill $processToKill | |
| 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
| set nocompatible " Required | |
| filetype off " Required | |
| " --- Vundle --- | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'bling/vim-airline' | |
| Plugin 'altercation/vim-colors-solarized' | |
| Plugin 'scrooloose/nerdtree' |
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
| gg - first line | |
| dG - delete all lines |
NewerOlder