Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Shevchenko ur4ltz

View GitHub Profile
@samoshkin
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
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
schuerg / i3-cheat-sheet.md
Last active Aug 18, 2021 — forked from JeffPaine/i3-cheat-sheet.md
[i3/sway cheatsheet] List of key bindings for i3wm/swaywm #linux #tiling-wm #desktop #cheat-sheet
View i3-cheat-sheet.md
@morphIsmail
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
#!/bin/bash
usage() {
cat <<EOF
usage: git gone [-pldD] [<branch>=origin]
OPTIONS
-p prune remote branch
-n dry run: list the gone branches
-d delete the gone branches
-D delete the gone branches forcefully
@sagax
sagax / vim_article-1.md
Last active Feb 2, 2019
vim article-1
View vim_article-1.md

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


Навигация:

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

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

@mirhec
mirhec / raspi-setup-gitea.md
Created Sep 20, 2017
Installing Gitea on Raspberry Pi with nginx, SSL and automatic backups
View raspi-setup-gitea.md

Setup Gitea on Raspberry Pi (3)

These instructions are based on this article: https://www.alexruf.net/2016/05/23/setup-gogs-git-service.html.

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
sloanlance / Editing remote files in Vim with SSH.md
Created Jul 13, 2017
Editing remote files in Vim with SSH
View Editing remote files in Vim with SSH.md

Editing remote files in Vim with SSH

  1. Configure SSH

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

    Host *
    ControlPath ~/.ssh/sockets/%r@%h-%p
    
@sebastiencs
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))
(yas-expand))))