Skip to content

Instantly share code, notes, and snippets.

View sourcevault's full-sized avatar

sourcevault

View GitHub Profile
@sourcevault
sourcevault / greasemonkey.txt
Last active February 15, 2024 08:01
reddit_sidebar_hide for greasemonkey
// ==UserScript==
// @name reddit sidebar_hide 445502
// @version 1
// @grant none
// ==/UserScript==
// Reddit Sidebar Toggle.
// Created by Dylan Araps.
" Type :help nv for help.
" set noendofline binary
set ignorecase
let mapleader=<space>
let maplocalleader=e
@sourcevault
sourcevault / vim.md
Last active July 19, 2023 00:16
vim commands and their description

VIM commands

description command
open help for keyword :h keyword
save file as :sav file
close current pane :clo
open a terminal window :ter
open man page for word under the cursor K

Cursor movement

| description | command |

@sourcevault
sourcevault / Default (Windows).sublime-keymap
Created May 27, 2023 18:56
snippet to provide cyrillic symbol support for neovintageous plugin (vim extenstion) in sublime text for FRU_76 and FRU_68 keeyboard layout.
{"keys": ["з"],"command": "nv_feed_key", "args": {"key": "z"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["З"],"command": "nv_feed_key", "args": {"key": "Z"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["б"],"command": "nv_feed_key", "args": {"key": "v"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["Б"],"command": "nv_feed_key", "args": {"key": "V"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["ю"],"command": "nv_feed_key", "args": {"key": "x"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["Ю"],"command": "nv_feed_key", "args": {"key": "X"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["с"],"command": "nv_feed_key", "args": {"key": "s"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["С"],"command": "nv_feed_key", "args": {"key": "S"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["т"],"command": "nv_feed_key", "args": {"key": "t"},"context": [{"key": "vi_command_mode_aware"}]},
{"keys": ["T"]
-------------
|           |
|           |
|           |
|           |
-------------
"rows":[0,1],
"cols":[0,1,1],
"cells":[[0,0,1,1],[1,0,2,1]]
@sourcevault
sourcevault / .remotemon.yaml
Created October 14, 2021 10:02
custom.zsh-theme
global:
port: 45
path: ""
username: pi
ssh: -tt -o LogLevel=QUIET -p {{global.port}}
remotehost: [email protected]
remotefold: ~/router
rsync: false
watch: false
verbose: 1
1. As at 2021-08-29, there is no more waiting period or manual form to request for unlock approval from Xiaomi. Instead follow every step described in this video https://youtu.be/pByHHTvms4k
2. Clone and check out linux branch
```
git clone https://github.com/francescotescari/XiaoMiToolV2.git && cd XiaoMiToolV2 && git checkout linux
```
3. Edit one Java source file exactly as described [Xiaomi procedure failed: [getServiceToken] Missing serviceToken cookie #23 (comment)](https://github.com/francescotescari/XiaoMiToolV2/issues/23#issuecomment-904082515)
4. Install openjdk-11, `sudo dnf install java-11-openjdk`
@sourcevault
sourcevault / main.tex
Created September 20, 2021 00:26
medical_fitness_certificate ( Latex )
\documentclass[a4paper]{article}
\pagenumbering{gobble}
\usepackage{concrete}
\usepackage{setspace}
\usepackage{graphicx}% delete the demo option in your actual code
\usepackage{multirow}
\usepackage{color}
\usepackage[table]{xcolor}
\usepackage[export]{adjustbox}
sudo service ssh restart
bindkey '\e[H' beginning-of-line
bindkey '\e[F' end-of-line
As mentioned in one of the comments, try mounting the share using these options:
-o uid=500,gid=users,nounix
@sourcevault
sourcevault / matchTime.lua
Last active April 13, 2019 10:28
understanding lpeg.Cmt recursively
local success = function(all, pos) print('success') return pos end
local fail = function(all, pos) print('fail') return pos end
local common = Cmt(P('['), success)*(V('STMP')^0)*P(']')
local main_cmt = common + Cmt(P(']'),fail)
local main_normal = common + P(']')/fail