Skip to content

Instantly share code, notes, and snippets.

View ciases's full-sized avatar

Dmitry Pashkovets ciases

View GitHub Profile
@ciases
ciases / readme.md
Created August 23, 2018 06:18
Restore GRUB after Windows 10 installation

I just had to run this in Windows as an administrator:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

@ciases
ciases / README.md
Created March 20, 2018 10:07
How to quickly create a file in vim with CtrlP?

How to quickly create a file in vim with CtrlP?

  1. Find target folder with CtrlP
  2. Mark the path with <C-z>
  3. Enter filename and hit `` to create a new file
@ciases
ciases / get-scrollbar-width.md
Last active January 25, 2018 09:09
Get scrollbar width

Get scrollbar width

JS:

  function getScrollWidth() {
    var scrollDiv = document.createElement('div');
    scrollDiv.className = 'helper-scrollbar-width';
    document.body.appendChild(scrollDiv);

 var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
@ciases
ciases / scrollbar.css
Created November 16, 2017 12:59
Custom webkit scrollbars
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar:horizontal {
height: 8px;
}
::-webkit-scrollbar-track {
background-color: #f9fafc;
@ciases
ciases / README.md
Last active November 16, 2017 13:00
git squash

GIT SQUASH

Say your bug fix branch is called bugfix and you want to merge it into master:

git checkout master
git merge --squash bugfix
git commit
@ciases
ciases / init.vim
Last active June 14, 2021 10:06
neovim settings
" Plugins list ---------------------- {{{
call plug#begin()
Plug 'Shougo/denite.nvim'
Plug 'ctrlpvim/ctrlp.vim'
" GIT
Plug 'neoclide/vim-easygit'
Plug 'airblade/vim-gitgutter'
@ciases
ciases / .gitignore
Created August 5, 2017 12:02
GIT: ignore all files except folder
*
!*/
!/path/to/your/dir/**
@ciases
ciases / Переразметка памяти на смартфоне.md
Last active May 20, 2021 04:25
Переразметка памяти на смартфоне

Инструкция по увеличению, уменьшению и восстановлению внутренней памяти и USERDATA - Пример Для Аппарата 1/4.

1.

Перезагружаемся в рековери. Размонтируем все что есть: twrp > монтирование > отключаем все. Далее в Расширенные > Терминал. На текущей директории Выбрать(Select). Попадаем в командную строку. Смотрим информацию по разделам командой (0 - ноль):

parted /dev/block/mmcblk0 unit MB print
@ciases
ciases / README.md
Last active March 15, 2017 15:04
Gulp modular config

Gulp modular config

// gulpfile.js
var requireDir = require('require-dir');
requireDir('./gulp/tasks', { recurse: true });
// gulp/config.js
@ciases
ciases / gulp-new-file-readme.md
Last active March 1, 2017 15:39
[gulp] Watch new files

How to watch new files in gulp

Add an extra argument {cwd:'./'} in gulp.watch:

// gulpfile.js
gulp.watch('src/js/**/*.js', {cwd:'./'}, ['scripts']);

Note!