Skip to content

Instantly share code, notes, and snippets.

View aleksb86's full-sized avatar
🎯
Focusing

Aleksey aleksb86

🎯
Focusing
View GitHub Profile
@aleksb86
aleksb86 / docker.txt
Created May 25, 2020 10:26
Docker shorthands
# удалить все images без тегов
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
@aleksb86
aleksb86 / vi_commands.txt
Last active September 14, 2020 09:41
VI shortcuts
To comment out blocks in vim:
press Esc (to leave editing or other mode)
hit ctrl+v (visual block mode)
use the ↑/↓ arrow keys to select lines you want (it won't highlight everything - it's OK!)
Shift+i (capital I)
insert the text you want, e.g. %
press EscEsc
To uncomment blocks in vim: