Skip to content

Instantly share code, notes, and snippets.


Andy Shevchenko ur4ltz

View GitHub Profile
samoshkin / difftool_vimrc.vim
Created Apr 30, 2019
Test vimrc configuration to turn Vim into a difftool
View difftool_vimrc.vim
set nocompatible
filetype plugin indent on
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
set number
set hidden
set splitbelow
set splitright
zeux / luau_features.pdf
Last active Oct 25, 2021
Frequently asked questions about the Lua VM work we (Roblox) are doing.
View luau_features.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
schuerg /
Last active Aug 18, 2021 — forked from JeffPaine/
[i3/sway cheatsheet] List of key bindings for i3wm/swaywm #linux #tiling-wm #desktop #cheat-sheet
morphIsmail / settings.json
Last active Oct 8, 2021
Настройки для VS Code
View settings.json
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 18,
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
"files.autoSave": "onFocusChange",
"vs-html-to-css.append": " {\n\n}\n",
"workbench.startupEditor": "none",
"editor.tabSize": 2,
View git-gone
usage() {
cat <<EOF
usage: git gone [-pldD] [<branch>=origin]
-p prune remote branch
-n dry run: list the gone branches
-d delete the gone branches
-D delete the gone branches forcefully
sagax /
Last active Feb 2, 2019
vim article-1

Такого еще не было на данном ресурсе, и надеюсь, что сообщество поддержит инициативу. Есть предложение, сделать живую статью, в которой все мы будем выкладывать клавиатурные сочетания, которые каждый из нас использует в повседневной работе с Vim. Я обязуюсь анализировать комментарии и добавлять в статью новые клавиатурные сочетания. Если клавиатурное сочетание использует какой-то плагин, то указываем его имя.


  • ge - перейти к концу предыдущего слова

Замена текста:

mirhec /
Created Sep 20, 2017
Installing Gitea on Raspberry Pi with nginx, SSL and automatic backups

Setup Gitea on Raspberry Pi (3)

These instructions are based on this article:

Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:

sudo raspi-config

There you need to enable the SSH server and you should change the hostname.

View autosave.lua
-- autosave.lua
-- Periodically saves "watch later" data during playback, rather than only saving on quit.
-- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.).
-- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory.
-- Inside the "lua-settings" directory, create a file named "autosave.conf".
-- The save period can be set like so:
-- save_period=60
sloanlance / Editing remote files in Vim with
Created Jul 13, 2017
Editing remote files in Vim with SSH
View Editing remote files in Vim with

Editing remote files in Vim with SSH

  1. Configure SSH

    In ~/.ssh/config, include the lines:

    Host *
    ControlPath ~/.ssh/sockets/%r@%h-%p
sebastiencs / company-yasnippet.el
Created Jun 15, 2017
company with yasnippet
View company-yasnippet.el
;; With this code, yasnippet will expand the snippet if company didn't complete the word
;; replace company-complete-common with company-complete if you're using it
(advice-add 'company-complete-common :before (lambda () (setq my-company-point (point))))
(advice-add 'company-complete-common :after (lambda ()
(when (equal my-company-point (point))