Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
dotfiles & configs
dotfiles & configs
[user]
name = Alexey Vishnyakov
email = n3tn0de@gmail.com
signingkey = E25A9C776B8ED081B86BA55013AAEE9CFB851DFD
[core]
safecrlf = false
pager = cat
excludesfile = /Users/Alexey/.gitignore_global
editor = code --wait
autocrlf = false
[commit]
gpgsign = true
template = /Users/Alexey/.stCommitMsg
[gpg]
program = /usr/local/bin/gpg
[alias]
up = rebase
st = status
lg = log --graph --decorate --oneline
co = checkout
ci = commit
br = branch
[credential]
helper = cache --timeout 7200
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[mergetool "Kaleidoscope"]
cmd = /usr/local/bin/ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustexitcode = true
[merge]
tool = Kaleidoscope
[difftool "Kaleidoscope"]
cmd = /usr/local/bin/ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[mergetool]
prompt = false
[diff]
tool = Kaleidoscope
[user]
name = Alexey Vishnyakov
email = n3tn0de@gmail.com
signingkey = FB851DFD
[core]
safecrlf = false
pager = cat
excludesfile = "C:/Users/Alexey/.gitignore_global"
editor = code --wait
autocrlf = false
[commit]
gpgsign = true
[gpg]
program = "C:/Program Files (x86)/GNU/GnuPG/gpg2.exe"
[alias]
up = rebase
st = status
lg = log --graph --decorate --oneline
co = checkout
ci = commit
br = branch
[credential]
helper = cache --timeout 7200
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.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="powerlevel10k/powerlevel10k"
POWERLEVEL9K_MODE='nerdfont-complete'
DEFAULT_USER=$USER
# 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 colorize zsh-autosuggestions osx)
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
# os_icon
dir
vcs
newline
ssh
root_indicator
context
background_jobs
time
history
status
virtualenv
# nvm
# node_version
newline
os_icon
)
export NVM_BIN='/Users/Alexey/.nvm/versions/node/v12.7.0/bi'
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(ram battery)
POWERLEVEL9K_DISABLE_RPROMPT=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_CUSTOM_OS_ICON='POWERLEVEL9K_APPLE_ICON'
POWERLEVEL9K_CUSTOM_OS_ICON_BACKGROUND=162
# POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='⭐️'
# POWERLEVEL9K_CUSTOM_OS_ICON_FOREGROUND=white
# POWERLEVEL9K_PROMPT_ON_NEWLINE=true
# POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='✏️ '
# POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=''
# POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
# POWERLEVEL9K_SHORTEN_STRATEGY=truncate_beginning
# POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='╭─%F{blue}'
# POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='╰%f '
# User configuration
export HOMEBREW_NO_ANALYTICS=1
export PATH="$HOME/bin:$PATH"
export PATH="/usr/local/opt/gpg-agent/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin"
export PATH="$HOME/.composer/vendor/bin:$PATH"
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/lib"
export GOPATH=$HOME/go
export PATH="$PATH:$GOPATH/bin"
export PATH=$PATH:/usr/local/opt/go/libexec/bi
export PATH="$PATH:$HOME/Library/Application Support/itch/apps/butler"
export PATH="/usr/local/opt/sqlite/bin:$PATH"
# export NVM_DIR="$HOME/.nvm"
# . "/usr/local/opt/nvm/nvm.sh"
# https://www.growingwiththeweb.com/2018/01/slow-nvm-init.html
# Defer initialization of nvm until nvm, node or a node-dependent command is
# run. Ensure this block is only run once if .bashrc gets sourced multiple times
# by checking whether __init_nvm is a function.
if [ -s "/usr/local/opt/nvm/nvm.sh" ] && [ ! "$(type __init_nvm)" = function ]; then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
declare -a __node_commands=($(ls -al $NVM_DIR/versions/node/*/lib/node_modules | awk '{print $9}' | awk '!NF || !seen[$0]++' | awk '/[^\.]+/' | tr '\r\n' ' '))
__node_commands+=('node' 'nvm' 'npx')
function __init_nvm() {
for i in "${__node_commands[@]}"; do unalias $i; done
. /usr/local/opt/nvm/nvm.sh
unset __node_commands
unset -f __init_nvm
}
for i in "${__node_commands[@]}"; do alias $i='__init_nvm && '$i; done
fi
export NVM_BIN='system'
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
eval "$(thefuck --alias)"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.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='code'
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"
function homestead() {
( cd ~/Homestead && vagrant $* )
}
alias ls='lsd'
alias sky='. ~/bin/launchSecondSkype.sh'
alias nrc='. ~/bin/newReactComponent.sh'
# alias bfg='java -jar ~/bin/bfg-1.12.12.jar'
alias lint='node_modules/eslint/bin/eslint.js .'
alias npmls='npm list -g --depth=0'
alias update-node='nvm install node --reinstall-packages-from=node'
alias front-vnc-user="\
ssh n3tn0de@front.dev.getmobit.ru \
-L 5901:localhost:5901 \
-t \
\"x11vnc \
-usepw \
-noxdamage \
-display :1 \
-forever\" \
"
alias front-vnc-gdm="\
ssh n3tn0de@front.dev.getmobit.ru \
-L 5900:localhost:5900 \
-t \
\"sudo x11vnc \
-usepw \
-noxdamage \
-display :0 \
-auth /run/user/126/gdm/Xauthority \
-forever\"\
"
function vnc-server() {
ssh $1 -L 5900:localhost:5900 -t "x11vnc \
-noxdamage \
-forever \
$2"
}
alias front-vnc-client="\
x2vnc localhost:0 \
-passwdfile ~/.vnc/passwd \
-edgewidth 8 -west -mac -resurface -noblank\
"
alias tre="tree -aI 'node_modules|dist|.git|.DS_Store|.idea|.svn'"
alias dlweb='wget -e robots=off -r --no-parent --reject "index.html*"'
alias get-yt-music-pl="
youtube-dl -x -c --embed-thumbnail --audio-format "m4a" --audio-quality 0 \
--add-metadata -o \"%(playlist)s/%(playlist_index)s. %(title)s.%(ext)s\""
alias clean-local-tm-backups='sudo tmutil thinLocalSnapshots / 107374182400 4'
alias tm-logs="\
clear; printf '\e[3J' && \
log show --predicate 'subsystem == \"com.apple.TimeMachine\"' \
--info --last 24h | \
grep -F 'eMac' | \
grep -Fv 'etat' | \
awk -F']' '{print substr(\$0,1,19), \$NF}'\
"
alias loc='cloc ./ --by-file-by-lang --exclude-dir=node_modules,dist'
alias wttr='curl -4 http://wttr.in'
alias iambored='fortune | cowthink | lolcat'
alias sayEn='say -v Ralph'
function wbpkStats() {
NODE_ENV=production webpack --profile --json > stats.json
trap "rm stats.json" SIGINT
webpack-bundle-analyzer stats.json
}
# Clear Apple log files
# clearAsl()
function clearAsl() {
if [ -s '/private/var/log/asl/*.asl' ]; then
rm -r /private/var/log/asl/*.asl
fi
}

Backup

brew bundle dump -f

Restore

brew bundle
tap "buo/cask-upgrade"
tap "git-chglog/git-chglog"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
tap "jesseduffield/lazydocker"
tap "reviewdog/tap"
tap "synack/docker"
tap "tomanthony/brews"
cask "xquartz"
brew "adns"
brew "openssl@1.1"
brew "aircrack-ng"
brew "gdbm"
brew "ansible"
brew "ant"
brew "libevent"
brew "arpack"
brew "asciinema"
brew "atomicparsley"
brew "atool"
brew "autoconf"
brew "bfg"
brew "bison"
brew "gettext", link: true
brew "libffi"
brew "python"
brew "ccat"
brew "cloc"
brew "cmake"
brew "cmatrix"
brew "cowsay"
brew "curl"
brew "dbus"
brew "direnv"
brew "libksba"
brew "pth"
brew "dirmngr"
brew "dnscrypt-proxy"
brew "docker", link: false
brew "docutils"
brew "dos2unix"
brew "doxygen"
brew "duti"
brew "elinks"
brew "epstool"
brew "exiftool"
brew "faac"
brew "libidn2"
brew "fftw"
brew "fig2dev"
brew "figlet"
brew "fortune"
brew "libtool", args: ["universal"]
brew "gawk"
brew "gd"
brew "gifsicle"
brew "git"
brew "git-flow"
brew "git-lfs"
brew "gl2ps"
brew "glpk"
brew "gnu-sed"
brew "gnupg"
brew "qt", link: true
brew "gnuplot"
brew "go"
brew "goaccess"
brew "graphicsmagick"
brew "graphviz"
brew "hdf5"
brew "hexyl"
brew "highlight"
brew "htop"
brew "httpie"
brew "john-jumbo"
brew "jq"
brew "keybase"
brew "libaacs"
brew "libgphoto2"
brew "libicns", args: ["universal"]
brew "lsd"
brew "lua@5.1"
brew "lynx"
brew "m-cli"
brew "makedepend"
brew "mariadb"
brew "mas"
brew "media-info"
brew "metis"
brew "minisign"
brew "mps-youtube"
brew "mujs"
brew "uchardet"
brew "youtube-dl"
brew "mpv"
brew "neofetch"
brew "net-snmp"
brew "nginx"
brew "nmap"
brew "nnn"
brew "nvm"
brew "openssh"
brew "openvpn"
brew "php@7.1"
brew "php@7.2", link: true
brew "pinentry-mac"
brew "plotutils"
brew "poppler"
brew "portaudio"
brew "pstoedit"
brew "putty"
brew "pygobject3"
brew "pyqt"
brew "qhull"
brew "qrupdate"
brew "qscintilla2"
brew "ranger"
brew "rbenv"
brew "rclone"
brew "redis"
brew "rename"
brew "ripgrep"
brew "rust"
brew "s3cmd"
brew "sane-backends"
brew "screenfetch"
brew "sdl2_gfx"
brew "sdl2_image"
brew "sdl2_ttf"
brew "suite-sparse"
brew "switchaudio-osx"
brew "tealdeer"
brew "telnet"
brew "texi2html"
brew "texinfo"
brew "thefuck"
brew "tmux"
brew "transmission-cli"
brew "trash"
brew "tree"
brew "w3m"
brew "wakeonlan"
brew "watchman"
brew "wget"
brew "wine"
brew "x11vnc"
brew "yasm"
brew "zsh"
brew "git-chglog/git-chglog/git-chglog"
brew "reviewdog/tap/reviewdog"
brew "tomanthony/brews/itermocil"
cask "alfred"
cask "android-file-transfer"
cask "apache-directory-studio"
cask "apppolice"
cask "arduino"
cask "avocode"
cask "background-music"
cask "beardedspice"
cask "blender"
cask "calibre"
cask "chromedriver"
cask "cryptomator"
cask "discord"
cask "djview"
cask "dnscrypt"
cask "docker"
cask "dosbox"
cask "duet"
cask "etcher"
cask "figma"
cask "font-hack-nerd-font"
cask "gas-mask"
cask "gfxcardstatus"
cask "gimp"
cask "gitkraken"
cask "google-chrome"
cask "google-drive"
cask "icq"
cask "insomnia"
cask "itch"
cask "jadengeller-helium"
cask "kaleidoscope"
cask "kap"
cask "keybase"
cask "lumen"
cask "macs-fan-control"
cask "megasync"
cask "moonlight"
cask "multifirefox"
cask "notable"
cask "notion"
cask "obs"
cask "omnidisksweeper"
cask "openemu"
cask "opera"
cask "osxfuse"
cask "paragon-ntfs"
cask "processing"
cask "psequel"
cask "qlvideo"
cask "qt-creator"
cask "rcdefaultapp"
cask "robo-3t"
cask "rocket"
cask "sensiblesidebuttons"
cask "sequel-pro"
cask "shadowsocksx"
cask "skyfonts"
cask "skype"
cask "slack"
cask "sloth"
cask "soundflower"
cask "soundflowerbed"
cask "sourcetree"
cask "spectacle"
cask "steamcmd"
cask "sublime-text"
cask "tableplus"
cask "telegram"
cask "telegram-desktop"
cask "thunderbird"
cask "tiled"
cask "toggldesktop"
cask "tunnelbear"
cask "tunnelblick"
cask "turbo-boost-switcher"
cask "turbovnc-viewer"
cask "unetbootin"
cask "vagrant"
cask "vagrant-manager"
cask "veracrypt"
cask "viber"
cask "virtualbox"
cask "virtualbox-extension-pack"
cask "virustotaluploader"
cask "visual-studio-code"
cask "vlc"
cask "whatsapp"
cask "wireshark"
cask "zeplin"
cask "zerotier-one"
mas "Bear", id: 1091189122
mas "Display Menu", id: 549083868
mas "feedly", id: 865500966
mas "GarageBand", id: 682658836
mas "Gifski", id: 1351639930
mas "iMovie", id: 408981434
mas "Keynote", id: 409183694
mas "Microsoft Remote Desktop", id: 715768417
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
mas "Parcel", id: 639968404
mas "Trello", id: 1278508951
@n3tn0de

This comment has been minimized.

Copy link
Owner Author

n3tn0de commented Jul 27, 2019

It's kinda messy, but whatever 乁| ・ 〰 ・ |ㄏ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.