Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Shevchenko ur4ltz

View GitHub Profile
@czettnersandor
czettnersandor / i3-cheat-sheet.md
Last active Aug 14, 2020 — forked from JeffPaine/i3-cheat-sheet.md
i3 Window Manager Cheat Sheet
View i3-cheat-sheet.md

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (Super - Win)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open rofi (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@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
@rougier
rougier / nano.el
Created Oct 2, 2020
A very minimal emacs configuration
View nano.el
;; nano.el -- A very minimal emacs
;; Usage: emacs -q -l nano.el
;;
;; Copyright (C) 2020 Nicolas .P Rougier
;;
;; Author: Nicolas P. Rougier <nicolas.rougier@inria.fr>
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@jcaraballo
jcaraballo / git-branch-between-different-repositories.md
Created Mar 6, 2012
How to fork a github repository in bitbucket
View git-branch-between-different-repositories.md

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync
@areina
areina / apitools_github_oauth.lua
Created Apr 23, 2014
Apitools middleware to provide a callback endpoint for github oauth
View apitools_github_oauth.lua
return function(request, next_middleware)
local CLIENT_ID = "foo"
local CLIENT_SECRET = "bar"
local APP_URL = "http://localhost:9000/#overview"
if request.uri == '/callback' then
local session_code = request.args["code"]
local url = "https://github.com/login/oauth/access_token"
local request_body = {
client_id = CLIENT_ID,
@areina
areina / custom-mu4e-trash-folder.el
Created Oct 30, 2013
mu4e - Dynamic trash folder for multiple accounts
View custom-mu4e-trash-folder.el
(defun custom-mu4e-trash-folder (msg)
(if msg
(cond
((string-match "foo@gmail.com" (mu4e-message-field msg :maildir))
"/foo0@gmail.com/[Gmail].Trash")
((string-match "foo@3scale.net" (mu4e-message-field msg :maildir))
"/foo@3scale.net/[Gmail].Trash"))
(mu4e-ask-maildir-check-exists "Save message to maildir: ")))
(setq mu4e-trash-folder 'custom-mu4e-trash-folder)
@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
@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
@Daivasmara
Daivasmara / .vimrc
Last active Feb 21, 2021
NVIM v0.4.4
View .vimrc
call plug#begin('~/.vim/plugged')
Plug 'challenger-deep-theme/vim', { 'as': 'challenger-deep' }
Plug 'morhetz/gruvbox'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'stsewd/fzf-checkout.vim'
Plug 'sheerun/vim-polyglot'
Plug 'vim-airline/vim-airline'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
View lima-lua-style-1-general.md

Lima Lua style guide

About this style guide

How to read this style guide

Refer to RFC 2119 to interpret MUST, SHOULD and MAY.

Inspiration