Skip to content

Instantly share code, notes, and snippets.

View ur4ltz's full-sized avatar

Andy Shevchenko ur4ltz

  • Kharkiv - Ukraine, Glory to Ukraine
View GitHub Profile
@ur4ltz
ur4ltz / i3-cheat-sheet.md
Created August 14, 2020 07:46 — forked from schuerg/i3-cheat-sheet.md
[i3/sway cheatsheet] List of key bindings for i3wm/swaywm #linux #tiling-wm #desktop #cheat-sheet
@ur4ltz
ur4ltz / bspwmrc
Created June 16, 2023 10:42 — forked from CSaratakij/bspwmrc
bspwm config files
#! /bin/sh
bspc config top_padding 24
bspc config bottom_padding 0
bspc config left_padding 0
bspc config right_padding 0
bspc config border_width 3
bspc config window_gap 16
# Borders and gaps
@ur4ltz
ur4ltz / bspwmrc
Created June 16, 2023 10:42 — forked from TiZ-HugLife/bspwmrc
bspwm config files
#! /bin/sh
bspc config top_padding 24
bspc config bottom_padding 0
bspc config left_padding 0
bspc config right_padding 0
bspc config border_width 3
bspc config window_gap 16
# Borders and gaps
#! /bin/sh
gap=4
PANEL_HEIGHT=22
BORDER_WIDTH=2
export gap
export PANEL_HEIGHT
export BORDER_WIDTH
#This creates negative padding equal to window gap so that gaps are shown only between windows and not on desktop edges.
bspc config window_gap $gap;
@ur4ltz
ur4ltz / init.lua
Created March 23, 2023 17:42 — forked from VonHeikemen/init.lua
nvim-lspconfig + nvim-cmp setup
--[[
blogpost:
https://vonheikemen.github.io/devlog/tools/setup-nvim-lspconfig-plus-nvim-cmp/
Dependencies:
LSP:
https://github.com/neovim/nvim-lspconfig
https://github.com/williamboman/mason.nvim (optional)
https://github.com/williamboman/mason-lspconfig.nvim (optional)
@ur4ltz
ur4ltz / find.go
Created December 27, 2021 14:33 — forked from YuriyNasretdinov/find.go
package main
import (
"flag"
"log"
"os"
"syscall"
"unsafe"
"path/filepath"
"bufio"
require("json");
require("socket.http")
require("socket.url")
function babelfish(lang, query)
lang = lang or "en"
query = query or ""
if lang == "en" or query == "" then
return query
@ur4ltz
ur4ltz / translate.py
Created October 20, 2021 04:16 — forked from jseabold/translate.py
Use Google Translate API from Python
# -*- coding: utf-8 -*-
"""
You need to fill in your API key from google below. Note that querying
supported languages is not implemented.
Language Code
-------- ----
Afrikaans af
Albanian sq
Arabic ar
@ur4ltz
ur4ltz / company-yasnippet.el
Created June 25, 2021 16:04 — forked from sebastiencs/company-yasnippet.el
company with yasnippet
;; 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))))