This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim9script | |
# vim: sts=4 sw=4 sts=4 et | |
&compatible = false # It's not 1980 anymore, don't care about vi-compatibility | |
syntax on # This should be set by default, but just in case | |
filetype plugin indent on # This should be set by default, but just in case | |
&autowrite = true # Write the contents of the file automatically before many actions | |
&autoread = true # Detect when other programs modify a file we're editing | |
&backspace = 'indent,eol,start' # Allow backspacing over everything in insert mode. | |
&backup = true # Enable backups |
MPVF is a Bash script that runs MPV with optional MPV profiles on a set of files found with GNU Find by including and excluding shell patterns and setting the depth levels in the directory tree. Search patterns and directories are entered on the command line or in the script. File names can also be matched against an optional list of file extensions. With no options entered, the script's defaults are used.
Usage
mpvf {[<mpv profile,...>] [-a <pattern>] [-e <pattern>] [-i <pattern>] [-n <levels>] [-x <levels>] [directory...] | --help | --version}
Options
<mpv profile,...>
Name of the MPV profile to use.
-a, --alt \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim9script | |
# https://vimhelp.org/vim9.txt.html | |
set nocompatible | |
if has("mac") | |
set clipboard=unnamed | |
else | |
set clipboard=unnamedplus # requires vim-gui-common | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim9script | |
def GetWord() | |
var word_under_cursor = expand('<cword>') | |
var result = system('dict -d wn ' .. word_under_cursor) | |
execute 'vnew' | |
setlocal buftype=nofile | |
setlocal bufhidden=hide |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# check for one-time codes coming as notifications via KDE connect and copy them to clipboard | |
# requirements: qdbus(qt-tools), dbus-monitor, kde-connect, klipper | |
# the script must be run in user session | |
set -euo pipefail | |
shopt -s lastpipe | |
if [[ $# -eq 0 ]] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To generate mitm cert and key: | |
# openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -passout pass:"third-wheel" -subj "/C=US/ST=private/L=province/O=city/CN=hostname.example.com" | |
# see: https://github.com/campbellC/third-wheel | |
[package] | |
name = "http-ytproxy" | |
version = "0.1.0" | |
edition = "2021" | |
NewerOlder