Last active
August 11, 2016 21:10
-
-
Save zoobestik/8f7a3e71d3e2fba3e97cc4e1f0856ad4 to your computer and use it in GitHub Desktop.
common dev files
This file contains 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
[user] | |
email = | |
name = | |
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
hist = log --format=\"%h %ad | %s%d [%an]\" --graph --date=short | |
co = checkout | |
ci = commit | |
st = status -s | |
br = branch | |
up = remote update | |
pl = pull --rebase | |
[color] | |
ui = true | |
[core] | |
filemode = false | |
[push] | |
default = simple | |
[filter "lfs"] | |
clean = git-lfs clean %f | |
smudge = git-lfs smudge %f | |
required = true |
This file contains 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
<templateSet group="JavaScript"> | |
<template name="iter" value="for each (var $VAR$ in $ARRAY$) { $END$ }" description="Iterate (for each..in) - JavaScript 1.6+" toReformat="true" toShortenFQNames="true" deactivated="true"> | |
<variable name="ARRAY" expression="jsArrayVariable()" defaultValue=""array "" alwaysStopAt="true" /> | |
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue=""o"" alwaysStopAt="true" /> | |
<context> | |
<option name="JS_STATEMENT" value="true" /> | |
</context> | |
</template> | |
<template name="us" value=""use strict"; $END$" description="Inserts 'use strict' statement" toReformat="true" toShortenFQNames="true" deactivated="true"> | |
<context> | |
<option name="JS_STATEMENT" value="true" /> | |
</context> | |
</template> | |
<template name="if" value="if ($CONDITION$) { $END$ }" toReformat="false" toShortenFQNames="true"> | |
<variable name="CONDITION" expression="completeSmart()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ife" value="if ($CONDITION$) { $TRUE$ } else { $FALSE$ }" toReformat="false" toShortenFQNames="true"> | |
<variable name="CONDITION" expression="completeSmart()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="TRUE" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="FALSE" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="co" value="const $VAR$ = $END$;" toReformat="false" toShortenFQNames="true"> | |
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="con" value="const { $VAR$ } = $DEST$;" toReformat="false" toShortenFQNames="true"> | |
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="DEST" expression="completeSmart()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ar" value="($PARAMS$) => $END$;" toReformat="false" toShortenFQNames="true"> | |
<variable name="PARAMS" expression="jsDefineParameter()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="arf" value="($PARAMS$) => { $END$ return $RESULT$; }" toReformat="false" toShortenFQNames="true"> | |
<variable name="PARAMS" expression="jsDefineParameter()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="RESULT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="fn" value="function($ARGS$) { $END$ return $RESULT$; }" toReformat="false" toShortenFQNames="true"> | |
<variable name="ARGS" expression="jsDefineParameter()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="RESULT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="cs" value="constructor($ARGS$) { super($ARGS$); $END$ }" toReformat="false" toShortenFQNames="true"> | |
<variable name="ARGS" expression="jsSuggestVariableName()" defaultValue="props" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="im" value="import $VAR$ from '$PACKAGE$';" toReformat="false" toShortenFQNames="true"> | |
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="PACKAGE" expression="complete()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="imp" value="import { $VAR$ } from '$PACKAGE$';" toReformat="false" toShortenFQNames="true"> | |
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="PACKAGE" expression="completeSmart()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="cls" value="class $CLASS$ extends $PARENT$ { $END$ }" toReformat="false" toShortenFQNames="true"> | |
<variable name="CLASS" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" /> | |
<variable name="PARENT" expression="completeSmart()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ex" value="export const $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="exd" value="export default $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="bind" value="this.$METH$ = this.$METH$.bind(this);" toReformat="false" toShortenFQNames="true"> | |
<variable name="METH" expression="completeSmart()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="did" value="componentDidMount() { $END$ }" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="willU" value="componentWillUnmount() { $END$ }" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="rProps" value="componentWillReceiveProps($PROPS$) { $END$ }" toReformat="false" toShortenFQNames="true"> | |
<variable name="PROPS" expression="" defaultValue="nextProps" alwaysStopAt="true" /> | |
<context /> | |
</template> | |
<template name="rend" value="render() { const { $VARS$, ...props } = this.props; return ( <div $PROPS$> $END$ </div> ); }" toReformat="false" toShortenFQNames="true"> | |
<variable name="VARS" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="PROPS" expression="" defaultValue="{ ...props }" alwaysStopAt="true" /> | |
<context> | |
<option name="JSX_HTML" value="true" /> | |
</context> | |
</template> | |
<template name="conn" value="export default connect( ({ $STATE$ }) => ({ $STATE$ }), dispatch => ({ $END$ }) )($COMPONENT$);" toReformat="false" toShortenFQNames="true"> | |
<variable name="STATE" expression="" defaultValue="{ }" alwaysStopAt="true" /> | |
<variable name="COMPONENT" expression="completeSmart()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JSX_HTML" value="true" /> | |
</context> | |
</template> | |
</templateSet> |
This file contains 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
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"draw_white_space": "all", | |
"font_face": "Fira Code", | |
"font_options": | |
[ | |
], | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"indent_guide_options": | |
[ | |
"draw_normal", | |
"draw_active" | |
], | |
"line_padding_bottom": 1, | |
"line_padding_top": 1, | |
"material_theme_compact_panel": true, | |
"material_theme_compact_sidebar": true, | |
"material_theme_contrast_mode": true, | |
"material_theme_panel_separator": true, | |
"material_theme_tabs_autowidth": true, | |
"material_theme_tabs_separator": true, | |
"overlay_scroll_bars": "enabled", | |
"shift_tab_unindent": true, | |
"show_encoding": true, | |
"show_line_endings": true, | |
"spell_check": true, | |
"theme": "Material-Theme.sublime-theme" | |
} | |
// csscomb | |
// emmet | |
// hayaku | |
// Material Theme | |
// SideBarEnhancements | |
// GitSyntaxes | |
// babel | |
// editorconfig | |
// GitGutter |
This file contains 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
# On a mac with snow leopard, for nicer terminal colours: | |
# - Install SIMBL: http://www.culater.net/software/SIMBL/SIMBL.php | |
# - Download'Terminal-Colours': http://bwaht.net/code/TerminalColours.bundle.zip | |
# - Place that bundle in ~/Library/Application\ Support/SIMBL/Plugins (create that folder if it doesn't exist) | |
# - Open Terminal preferences. Go to Settings -> Text -> More | |
# - Change default colours to your liking. | |
# | |
# Here are the colours from Textmate's Monokai theme: | |
# | |
# Black: 0, 0, 0 | |
# Red: 229, 34, 34 | |
# Green: 166, 227, 45 | |
# Yellow: 252, 149, 30 | |
# Blue: 196, 141, 255 | |
# Magenta: 250, 37, 115 | |
# Cyan: 103, 217, 240 | |
# White: 242, 242, 242 | |
autoload -U colors && colors | |
for color in red green yellow blue magenta cyan black white; do | |
eval $color='%{$fg_no_bold[${color}]%}' | |
#eval ${color}_bold='%{$fg_bold[${color}]%}' | |
done | |
reset="%{$reset_color%}" | |
# Thanks to Steve Losh: http://stevelosh.com/blog/2009/03/candy-colored-terminal/ | |
function host() { | |
if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then | |
echo "${blue}%m${reset} " #SSH | |
fi | |
} | |
function hostlocal() { | |
if [[ -z "$SSH_CLIENT" && -z "$SSH2_CLIENT" ]]; then | |
echo " ${blue}%m${reset}" #noSSH | |
fi | |
} | |
function user() { | |
if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then | |
echo "${cyan}%n${reset} " #SSH | |
fi | |
} | |
# The prompt | |
PROMPT='$(host)${green}[%c] ${reset}$(git_prompt_info)${reset}%B»%b ' | |
# The right-hand prompt | |
RPROMPT='$(user)${time}$(hostlocal) `node -v`' | |
# Add this at the start of RPROMPT to include rvm info showing ruby-version@gemset-name | |
# ${yellow}$(~/.rvm/bin/rvm-prompt)%${reset_color} | |
# local time, color coded by last return code | |
time_enabled="%(?.${green}.${red})%*${reset}" | |
time_disabled="${green}%*${reset}" | |
time=$time_enabled | |
#ZSH_THEME_GIT_PROMPT_PREFIX=" ☁ %{$fg[red]%}" | |
#ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="${yellow}‹" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="${yellow}› ${reset}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="${red}*${reset}" | |
#ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭" # ⓣ | |
#ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ☀" # Ⓞ | |
#ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✚" # ⓐ ⑃ | |
#ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ⚡" # ⓜ ⑁ | |
#ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖" # ⓧ ⑂ | |
#ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➜" # ⓡ ⑄ | |
#ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ♒" # ⓤ ⑊ | |
#ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[blue]%} 𝝙" | |
# More symbols to choose from: | |
# ☀ ✹ ☄ ♆ ♀ ♁ ♐ ♇ ♈ ♉ ♚ ♛ ♜ ♝ ♞ ♟ ♠ ♣ ⚢ ⚲ ⚳ ⚴ ⚥ ⚤ ⚦ ⚒ ⚑ ⚐ ♺ ♻ ♼ ☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷ | |
# ✡ ✔ ✖ ✚ ✱ ✤ ✦ ❤ ➜ ➟ ➼ ✂ ✎ ✐ ⨀ ⨁ ⨂ ⨍ ⨎ ⨏ ⨷ ⩚ ⩛ ⩡ ⩱ ⩲ ⩵ ⩶ ⨠ | |
# ⬅ ⬆ ⬇ ⬈ ⬉ ⬊ ⬋ ⬒ ⬓ ⬔ ⬕ ⬖ ⬗ ⬘ ⬙ ⬟ ⬤ 〒 ǀ ǁ ǂ ĭ Ť Ŧ | |
# Determine if we are using a gemset. | |
function rvm_gemset() { | |
GEMSET=`rvm gemset list | grep '=>' | cut -b4-` | |
if [[ -n $GEMSET ]]; then | |
echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|" | |
fi | |
} | |
# Determine the time since last commit. If branch is clean, | |
# use a neutral color, otherwise colors will vary according to time. | |
function git_time_since_commit() { | |
if git rev-parse --git-dir > /dev/null 2>&1; then | |
# Only proceed if there is actually a commit. | |
if [[ $(git log 2>&1 > /dev/null | grep -c "^fatal: bad default revision") == 0 ]]; then | |
# Get the last commit. | |
last_commit=`git log --pretty=format:'%at' -1 2> /dev/null` | |
now=`date +%s` | |
seconds_since_last_commit=$((now-last_commit)) | |
# Totals | |
MINUTES=$((seconds_since_last_commit / 60)) | |
HOURS=$((seconds_since_last_commit/3600)) | |
# Sub-hours and sub-minutes | |
DAYS=$((seconds_since_last_commit / 86400)) | |
SUB_HOURS=$((HOURS % 24)) | |
SUB_MINUTES=$((MINUTES % 60)) | |
if [[ -n $(git status -s 2> /dev/null) ]]; then | |
if [ "$MINUTES" -gt 30 ]; then | |
COLOR="$ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG" | |
elif [ "$MINUTES" -gt 10 ]; then | |
COLOR="$ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM" | |
else | |
COLOR="$ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT" | |
fi | |
else | |
COLOR="$ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL" | |
fi | |
if [ "$HOURS" -gt 24 ]; then | |
echo "($(rvm_gemset)$COLOR${DAYS}d${SUB_HOURS}h${SUB_MINUTES}m%{$reset_color%}|" | |
elif [ "$MINUTES" -gt 60 ]; then | |
echo "($(rvm_gemset)$COLOR${HOURS}h${SUB_MINUTES}m%{$reset_color%}|" | |
else | |
echo "($(rvm_gemset)$COLOR${MINUTES}m%{$reset_color%}|" | |
fi | |
else | |
COLOR="$ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL" | |
echo "($(rvm_gemset)$COLOR~|" | |
fi | |
fi | |
} | |
This file contains 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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/kchernenko/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
#ZSH_THEME="robbyrussell" | |
ZSH_THEME="wedisagree-custom" | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. Case | |
# sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git osx github gitignore node npm nvm python) | |
# User configuration | |
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH" | |
export MANPATH="/usr/local/man:$MANPATH" | |
source $ZSH/oh-my-zsh.sh | |
#source $ZSH/vpn-ssh.sh | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
# export SSH_KEY_PATH="~/.ssh/dsa_id" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/git/bin:/opt/local/bin:/usr/local/opt/coreutils/libexec/gnubin:$PATH" | |
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH" | |
export NVM_DIR="$HOME/.nvm" | |
. "$(brew --prefix nvm)/nvm.sh" | |
nvm use default | |
eval "`npm completion`" | |
alias grep="ggrep" | |
export PATH="/Users/kchernenko/play:$PATH" | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin | |
#export EDITOR="subl -w" # ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime | |
# !! binutils curl diffutils findutils go git grep nvm openssl python tmux zsh zsh-completions | |
# !! https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment