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 = FB851DFD
[core]
safecrlf = false
pager = cat
excludesfile = /Users/Alexey/.gitignore_global
editor = code --wait
autocrlf = false
[commit]
gpgsign = true
[gpg]
program = gpg
[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
[mergetool "Kaleidoscope"]
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustexitcode = true
[merge]
tool = Kaleidoscope
[difftool "Kaleidoscope"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[mergetool]
prompt = false
[diff]
tool = Kaleidoscope
[difftool "sourcetree"]
cmd = /usr/local/bin/ksdiff -w \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /usr/local/bin/ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
trustExitCode = true
[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=/Users/Alexey/.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"
DEFAULT_USER="Alexey"
# 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)
# 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' ' '))
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 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 "git-chglog/git-chglog"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
tap "jesseduffield/lazydocker"
tap "synack/docker"
tap "tomanthony/brews"
brew "adns"
brew "aircrack-ng"
brew "gdbm"
brew "python"
brew "ansible"
brew "ant"
brew "arpack"
brew "asciinema"
brew "atomicparsley"
brew "atool"
brew "autoconf"
brew "bison"
brew "gettext", link: true
brew "libffi"
brew "ccat"
brew "cloc"
brew "cmake"
brew "cmatrix"
brew "cowsay"
brew "curl"
brew "rtmpdump"
brew "dbus", restart_service: true
brew "libksba"
brew "pth"
brew "dirmngr"
brew "dnscrypt-proxy"
brew "docker"
brew "docutils"
brew "doxygen"
brew "duti"
brew "elinks"
brew "epstool"
brew "exiftool"
brew "faac"
brew "fftw"
brew "fig2dev"
brew "figlet"
brew "fortune"
brew "libtool", args: ["universal"]
brew "gawk", link: false
brew "gd"
brew "git"
brew "git-flow"
brew "git-lfs"
brew "gl2ps"
brew "glpk"
brew "gnu-sed"
brew "gnupg"
brew "lua"
brew "gnuplot"
brew "go"
brew "goaccess"
brew "graphicsmagick"
brew "graphviz"
brew "hdf5"
brew "hexyl"
brew "highlight"
brew "htop"
brew "httpie"
brew "imagemagick"
brew "jasper"
brew "john-jumbo"
brew "jq"
brew "keybase"
brew "openssl@1.1"
brew "libaacs"
brew "libcaca"
brew "libgphoto2"
brew "libicns", args: ["universal"]
brew "libidn2"
brew "lsd"
brew "lua@5.1"
brew "lynx"
brew "m-cli"
brew "makedepend"
brew "mariadb", restart_service: true
brew "trash"
brew "mas"
brew "media-info"
brew "metis"
brew "minisign"
brew "mongodb", restart_service: true
brew "mujs"
brew "uchardet"
brew "youtube-dl"
brew "mpv"
brew "mps-youtube"
brew "net-snmp"
brew "nginx"
brew "nmap"
brew "nnn"
brew "nvm"
brew "openssh"
brew "openvpn", restart_service: true
brew "php@7.1"
brew "pinentry-mac"
brew "plotutils"
brew "poppler"
brew "portaudio"
brew "pstoedit"
brew "putty"
brew "pygobject3"
brew "qt", link: true
brew "pyqt"
brew "qhull"
brew "qrupdate"
brew "qscintilla2"
brew "ranger"
brew "rbenv"
brew "rclone"
brew "redis", restart_service: true
brew "rename"
brew "ripgrep"
brew "s3cmd"
brew "sane-backends"
brew "screenfetch"
brew "sdl2_gfx"
brew "sdl2_image"
brew "sdl2_ttf"
brew "suite-sparse"
brew "switchaudio-osx"
brew "telnet"
brew "texi2html"
brew "texinfo"
brew "thefuck"
brew "tmux"
brew "transmission"
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 "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 "bluestacks"
cask "calibre"
cask "chromedriver"
cask "discord"
cask "djview"
cask "dnscrypt"
cask "docker"
cask "dosbox"
cask "etcher"
cask "figma"
cask "font-hack-nerd-font"
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 "licecap"
cask "lumen"
cask "macs-fan-control"
cask "megasync"
cask "multifirefox"
cask "notable"
cask "notion"
cask "nox-app-player"
cask "obs"
cask "omnidisksweeper"
cask "openemu"
cask "opera"
cask "osxfuse"
cask "paragon-ntfs"
cask "processing"
cask "psequel"
cask "qlvideo"
cask "qt-creator"
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 "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 "vscodium"
cask "wireshark"
cask "xquartz"
mas "Display Menu", id: 549083868
mas "Gifski", id: 1351639930
mas "iMovie", id: 408981434
mas "Keynote", id: 409183694
mas "Microsoft Remote Desktop", id: 715768417
mas "Microsoft Remote Desktop", id: 1295203466
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
mas "Trello", id: 1278508951
@n3tn0de

This comment has been minimized.

Copy link
Owner Author

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.