Basic
mkdir blog
echo "site_name = 'My Blog'" > blog/config.toml
echo "# Hello World" > blog/2025-01-31-hello-world.md
uv run static.py blog publicCustom template
| { | |
| "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", | |
| "logo": { | |
| "type": "auto", | |
| "height": 10, | |
| "width": 15, | |
| "padding": { | |
| "top": 5, | |
| "left": 3 | |
| } |
| #!/usr/bin/env python3 | |
| import subprocess | |
| import gi | |
| import signal | |
| gi.require_version('Gtk', '3.0') | |
| from gi.repository import Gtk, AppIndicator3 | |
| APP_ID = "gpu.screen.recorder" | |
| RECORD_CMD = ["bash", "-c", "gpu-screen-recorder", "-o", "/tmp/output.mp4"] |
| [Default] | |
| save_dir=$HOME/Pictures/Screenshots | |
| save_filename_format=swappy-%Y%m%d-%H%M%S.png | |
| show_panel=true | |
| paint_mode=arrow | |
| early_exit=true |
| #! /usr/bin/env bash | |
| ############################################################################################## | |
| # _ _ _ _ _ # | |
| # (_) (_) | | | | | | # | |
| # _ __ _ _ __ _ ___ ___ _ __ __ _ | |_ ___ | |__ _ __ __ _ __| | # | |
| #| '_ \ | || '__|| | ______ / __| / __|| '__| / _` || __| / __|| '_ \ | '_ \ / _` | / _` | # | |
| #| | | || || | | ||______|\__ \| (__ | | | (_| || |_ | (__ | | | || |_) || (_| || (_| | # | |
| #|_| |_||_||_| |_| |___/ \___||_| \__,_| \__| \___||_| |_|| .__/ \__,_| \__,_| # | |
| # | | # |
Basic
mkdir blog
echo "site_name = 'My Blog'" > blog/config.toml
echo "# Hello World" > blog/2025-01-31-hello-world.md
uv run static.py blog publicCustom template
| [ | |
| { | |
| "input_combination": [ | |
| { | |
| "type": 1, | |
| "code": 58, | |
| "origin_hash": "99614f2eb2dff6628bd5eff9210e538f" | |
| } | |
| ], | |
| "target_uinput": "keyboard", |
>>> from pprint import pprint as pp
>>> from rich import inspect
>>> import datetime
>>> a = 1```pycon
>>> from pprint import pprint as pp| let mapleader=' '|set nu rnu hid bs=2 ts=4 sw=4 et ai si nocp wmnu tw=79 cc=80 stal=2 cot=menuone,longest,preview ph=10 ruler statusline=%f%m%r%h%w%=%y\ %l,%c\ %p%% | |
| let g:p=executable('uv')?'uv run python3':'python3'|let g:d=g:p.' -m pydoc'|let g:c=g:p.' -m py_compile' | |
| filetype plugin indent on|sy on|nn <leader>b :ls<cr>:b<space>|nn <leader><Tab> <C-^> | |
| au FileType python setl ofu=python3complete#Complete cot=menuone,longest,preview inc=^\s*\(from\|import\) def=^\s*\(def\|class\)|exe 'setl kp='.escape(g:d,' ')|nn <buffer> <leader>k :exe 'vert term ++close '.g:d.' '.expand('<cword>')<CR>|nn <buffer> <leader>r :w<CR>:exe '!'.g:p.' %'<CR> | |
| au BufWritePost *.py silent! exe '!'.g:c.' %' | |
| au CompleteDone * pc |
A comprehensive collection of Vim power-user techniques
adapted from zzapper
| vim9script | |
| # simple fuzzy find finder | |
| # place into ~/.vim/plugin/fuzzyfind.vim | |
| set wildmode=noselect:lastused,full | |
| set wildmenu wildoptions=pum,fuzzy pumheight=12 | |
| cnoremap <Up> <C-U><Up> | |
| cnoremap <Down> <C-U><Down> |