Skip to content

Instantly share code, notes, and snippets.

View mikhdm's full-sized avatar

Dmitrii Mikhailenko mikhdm

  • Textkernel B. V.
  • Amsterdam, Netherlands
  • 20:34 (UTC +02:00)
  • LinkedIn in/mikhdm
View GitHub Profile
@mikhdm
mikhdm / passgen.sh
Last active December 23, 2021 18:13
password generator
#!/bin/bash
PATTERN="A-Za-z0-9_"
if [ -z "$1" ]; then
N=16
else
N=$1
fi
@mikhdm
mikhdm / pyclean
Created June 17, 2020 12:10
Python object and cache file cleaner
#!/bin/bash
find . -regex '^.*\(__pycache__\|\.py[co]\)$' -delete
@mikhdm
mikhdm / .vimrc
Last active January 25, 2024 20:38
.vimrc
set nocompatible
filetype off
call plug#begin('~/.vim/plugged')
Plug 'nvim-tree/nvim-web-devicons' "NvimTree icons
Plug 'tpope/vim-surround' "Surround everything
Plug 'tpope/vim-commentary' "Commenting lines and blocks
Plug 'majutsushi/tagbar' "Class/module browser
Plug 'EdenEast/nightfox.nvim' "Colortheme
@mikhdm
mikhdm / Visual C++.sublime-build
Last active August 1, 2019 13:36 — forked from chaliy/Visual C++.sublime-build
Visual C++ build system for sublime text to exec and compile .c and .cpp files from Subime Text editor.
{
"cmd": ["vcvars32.bat", "&", "cl", "/EHsc", "${file}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp, source.c++",
// By default cl is not in your PATH, so add it to your path (preferably)
// or uncomment "path" and check that it has correct value
//"path": "path:/to/folder/where/cl.exe/located",
// this also will set path for vcvars32.bat
"shell": true, // Without this sublime has hard times to parse "&" in out command line