Skip to content

Instantly share code, notes, and snippets.

View tysonwolker's full-sized avatar

Tyson Wolker tysonwolker

  • Q-CTRL
  • undefined
View GitHub Profile
<!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>
<!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">
var customer = {
"name": "martin",
"rentals": [{
"movieID": "F001",
"days": 3
}, {
"movieID": "F002",
"days": 1
}]
};
@tysonwolker
tysonwolker / custom.json
Last active August 22, 2017 00:45
Video Store
{
"name": "martin",
"rentals": [
{"movieID": "F001", "days": 3},
{"movieID": "F002", "days": 1},
]
}
@tysonwolker
tysonwolker / git-cheat-list.md
Created February 20, 2017 23:25
Git cheat list

Git cheat list

  • 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>
    
@tysonwolker
tysonwolker / git-cheat-list.md
Created February 20, 2017 23:25
Git cheat list

Git cheat list

  • 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>
    
@tysonwolker
tysonwolker / killport.zsh
Last active November 18, 2015 04:10
Kill process by port
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
processToKill=$(lsof -n -i4TCP:9999 | grep LISTEN | awk '{print $2}')
if [ -n "$processToKill" ]; then
kill $processToKill
fi
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'
@tysonwolker
tysonwolker / Vim Cheatsheet
Created July 11, 2015 14:04
Vim Cheatsheet
gg - first line
dG - delete all lines