Skip to content

Instantly share code, notes, and snippets.


Andy Shevchenko ur4ltz

  • Kharkiv - Ukraine, Glory to Ukraine
View GitHub Profile
View sublime_text_3_license_key
Single User License
3A099EC1C0B5C7C5 33EBF0CF BE82FE3B

GitHub OAuth Busy Developer's Guide

This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at

OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.

Web Application Flow

  • Redirect to this link to request GitHub access:
ur4ltz / gist:e41118c39a24323ed2e5
Created September 25, 2015 13:45 — forked from idbrii/gist:3069527
Custom statusline example
View gist:e41118c39a24323ed2e5
" File: after/plugin/ctrlp.vim
" Description: Custom statusline example
" Make sure ctrlp is installed and loaded
if !exists('g:loaded_ctrlp') || ( exists('g:loaded_ctrlp') && !g:loaded_ctrlp )
" ctrlp only looks for this
ur4ltz / gist:878e00df4233d2f0faee
Created September 25, 2015 13:46 — forked from kien/gist:1610859
Custom statusline example
View gist:878e00df4233d2f0faee
" File: after/plugin/ctrlp.vim
" Description: Custom statusline example
" Make sure ctrlp is installed and loaded
if !exists('g:loaded_ctrlp') || ( exists('g:loaded_ctrlp') && !g:loaded_ctrlp )
" ctrlp only looks for this
View Run_current_line.vim
" put this into your .vimrc
func! Run_current_line()
" get current line and run it as a system command
let content = system(getline('.'))
" open new window
silent pedit `=tempname()`
" change focus to the window
wincmd P
" append content
ur4ltz /
Created February 2, 2019 19:00 — forked from sagax/
vim article-1

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


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

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

ur4ltz / httpd-cgit.conf
Created April 14, 2019 16:00 — forked from ap/httpd-cgit.conf
cgit clean URLs Apache config
View httpd-cgit.conf
# cgit setup for Apache that results in completely clean URLs, ie.
# visiting will produce the cgit index page
<VirtualHost *>
# this part is stand fare
DocumentRoot /var/www/htdocs/cgit/
<Directory "/var/www/htdocs/cgit/">
AllowOverride None
Options ExecCGI
Order allow,deny
ur4ltz / 24-bit-color.patch
Created July 17, 2019 17:38 — forked from cpixl/24-bit-color.patch
24-bit color patch for URxvt version 9.22 (based on
View 24-bit-color.patch
--- README.configure
+++ README.configure
@@ -9,8 +9,8 @@ CONFIGURE OPTIONS
Add (or remove) support for all non-multichoice options listed in
- "./configure --help", except for "--enable-assert" and
- "--enable-256-color".
+ "./configure --help", except for "--enable-assert",
+ "--enable-256-color" and "--enable-24-bit-color".
ur4ltz /
Created November 11, 2019 16:15 — forked from Skrip42/
Install Vim 8 with Python, Python 3, Ruby (2.5) and Lua support on openSuse
# remove current vim
sudo zypper rm vim vim-runtime vim-gnome vim-tiny vim-gui-common
# removes current link for vim
sudo rm -rf /usr/local/share/vim /usr/bin/vim
# installs everything needed to make/configure/build Vim
sudo zypper in \
lua51-luajit \
lua51-luajit-devel \
ur4ltz / vimawesome.vim
Last active November 14, 2019 00:12 — forked from junegunn/vimawesome.vim
Plugin completion using VimAwesome API
View vimawesome.vim
" ----------------------------------------------------------------------------
" ----------------------------------------------------------------------------
function! VimAwesomeComplete() abort
let prefix = matchstr(strpart(getline('.'), 0, col('.') - 1), '[.a-zA-Z0-9_/-]*$')
echohl WarningMsg
echo 'Downloading plugin list from VimAwesome'
echohl None
ruby << EOF
require 'json'