Skip to content

Instantly share code, notes, and snippets.

View Dema's full-sized avatar

Dmitry Olyenyov Dema

View GitHub Profile
@Dema
Dema / .eslintrc.js
Last active November 1, 2021 18:06
My .eslintrc.js
// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable unicorn/prefer-module */
module.exports = {
extends: [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jest/recommended",
"plugin:jsx-a11y/recommended",
@Dema
Dema / swagger.json
Created March 18, 2022 13:06
oneOf issue
{
"openapi": "3.0.1",
"info": {
"title": "Challenge-service API",
"version": "1.0"
},
"servers": [
{
"url": "http://localhost:8080",
"description": "Generated server url"
@Dema
Dema / .zshrc
Created May 31, 2022 09:16
.zshrc
# if [ -n "$DISPLAY" -a "$TERM" = "xterm" ]; then
# export TERM=xterm-256color
# fi
# Most themes use this option.
setopt promptsubst
alias tmux='TERM=screen-256color tmux'
alias vim='vim -w ~/.vimlog "$@"'
# alias gvim='gvim -w ~/.vimlog "$@"'
#
#временно, тормоза из-за zsh-users/zsh-autosuggestions
#alias mc='mc -u'
alias ls="ls --color=auto"
setopt append_history
setopt extended_history # save timestamp
#setopt inc_append_history # add history immediately after typing a command
setopt no_hist_beep
setopt hist_ignore_all_dups
setopt hist_expire_dups_first
setopt hist_save_no_dups
setopt hist_find_no_dups
# Use the same history file for all sessions, conflicts with inc_append_history
setopt share_history