Skip to content

Instantly share code, notes, and snippets.

View kunev's full-sized avatar
🐻
I break things to see how they (don't?) work | I pass the butter

Evgeni Ku kunev

🐻
I break things to see how they (don't?) work | I pass the butter
View GitHub Profile
@kunev
kunev / x-scheme-handler_editor.py
Created October 7, 2016 14:20
a script to handle editor://$FILE_NAME:$LINE_NUMBER URIs
#!/bin/env python
import os
import subprocess
import sys
import re
uri = sys.argv[1]
print(uri)
file_path_with_position = re.sub(r'editor://|vim://', '', uri)
@kunev
kunev / kernel_versions.sh
Created October 9, 2016 10:00
check if currently running kernel version matches the installed linux package version
#!/bin/bash
function currently_installed_kernel() {
yaourt -Qi linux | egrep '^Version\s+:\s+.+$' | sed -e 's/Version\s\+:\s\+//'
}
function currently_running_kernel() {
uname -a | grep -P '\S+(?=-ARCH)' -o
}
@kunev
kunev / vim-kunev-deb.sh
Created November 14, 2018 15:27
Configure and install vim from source on debian based distros the way I like it
#!/bin/bash
function config() {
./configure \
--with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
--enable-python3interp=yes \