Skip to content

Instantly share code, notes, and snippets.

View ciases's full-sized avatar

Dmitry Pashkovets ciases

View GitHub Profile
@ciases
ciases / .gitconfig
Last active April 13, 2017 12:24
Human Git
[alias]
unstage = reset -q HEAD --
discard = checkout --
nevermind = !git reset --hard HEAD && git clean -d -f
uncommit = reset --mixed HEAD~
save = commit -m
resave = commit --amend
invert = revert
last = log -1 HEAD --format=format:"%Cred%H"
summary = status -u -s
@ciases
ciases / snippets.md
Last active February 6, 2017 09:07
A bit of snippets
@ciases
ciases / cloudSettings
Last active February 14, 2021 19:24
Visual Studio Code Sync Settings Gist
{"lastUpload":"2020-12-03T09:17:53.371Z","extensionVersion":"v3.4.3"}
@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!

@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 / Переразметка памяти на смартфоне.md
Last active May 20, 2021 04:25
Переразметка памяти на смартфоне

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

1.

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

parted /dev/block/mmcblk0 unit MB print
@ciases
ciases / .gitignore
Created August 5, 2017 12:02
GIT: ignore all files except folder
*
!*/
!/path/to/your/dir/**
@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 / 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 / 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;