Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Shevchenko ur4ltz

  • Kharkiv - Ukraine, Glory to Ukraine
View GitHub Profile
View mpv-btfs.lua
--[[
script to make mpv play torrents/magnets directly using btfs
requires:
- linux
- btfs
- xterm (optional)
usage:
@ur4ltz
ur4ltz / difftool_vimrc.vim
Created Feb 21, 2021 — forked from samoshkin/difftool_vimrc.vim
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
@ur4ltz
ur4ltz / vimrc-merge.vim
Created Feb 20, 2021 — forked from samoshkin/vimrc-merge.vim
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
@ur4ltz
ur4ltz / st4-changelog.md
Created Feb 20, 2021 — forked from jfcherng/st4-changelog.md
Sublime Text 4 changelog just because it's not on the official website yet.
View st4-changelog.md

Converted via https://domchristie.github.io/turndown

Sublime Text/Merge 中文 Telegram 交流群組: https://t.me/sublime_tw

About Sublime Text 4

ST 4 is currently under private alpha for power users to test and report issues to let the dev team make it polished before it gets publicly announced. It has been almost under alpha for 8 months already and it's actually kind of stable for daily use now. If you have a ST 3 license, you can join the offical ST Discord chat server to download and test it. And the most important thing, report issues you encoutered so ST 4 can become better. I hope people can interact with the dev team more so I don't directly put download links here but maybe you are smart enough to guess them :)

Dev Channel Changelog

@ur4ltz
ur4ltz / apitools_github_oauth.lua
Created Feb 5, 2021 — forked from areina/apitools_github_oauth.lua
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,
@ur4ltz
ur4ltz / emacs-email-setup.md
Created Feb 5, 2021 — forked from areina/emacs-email-setup.md
Manage your email in emacs with mu4e
View emacs-email-setup.md

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e
@ur4ltz
ur4ltz / raspi-setup-gitea.md
Created Dec 26, 2020 — forked from mirhec/raspi-setup-gitea.md
Installing Gitea on Raspberry Pi with nginx, SSL and automatic backups
View raspi-setup-gitea.md

Setup Gitea on Raspberry Pi (3)

These instructions are based on this article: https://www.alexruf.net/2016/05/23/setup-gogs-git-service.html.

Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:

sudo raspi-config

There you need to enable the SSH server and you should change the hostname.

@ur4ltz
ur4ltz / README.md
Created Oct 6, 2020 — forked from agnoster/README.md
My ZSH Theme
View README.md

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

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

@ur4ltz
ur4ltz / ProFi.lua
Created Sep 19, 2020 — forked from perky/ProFi.lua
ProFi, a simple lua profiler that works with LuaJIT and prints a pretty report file in columns.
View ProFi.lua
--[[
ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php.
Example:
ProFi = require 'ProFi'
ProFi:start()
some_function()
another_function()
coroutine.resume( some_coroutine )
ProFi:stop()