This is an awesome list or resources on sashiko, kantha, visible mending and other related techniques.
- basic concepts of Japanese aesthetics in Ukrainian
This is an awesome list or resources on sashiko, kantha, visible mending and other related techniques.
| #!/usr/bin/env zsh | |
| ## Save initial state | |
| exec {saved_stdin}<&0 # save initial stdin | |
| exec {saved_stdout}>&1 # save initial stdout | |
| ## Redirect initial stdin and stdout to terminal |
Simple script for zsh which gives us a more native up/down arrow behavior for the [atuin magial shell history][1] plugin with behavior similar to e.g. [zsh-history-substring-search][2]. This is an improved reimplemtation of [@Nezteb's gist][3] for the same issue.
Note
This assumes default keybindings
First and foremost: The script is aware of multiline buffers. So when going up or down, the script will first try to step through the lines of a multiline buffer, before going to the next history entry.
When pressing up the shell will iteratively go through the previous atuin history and have each result directly in the command buffer / command line. Any text in the initial buffer will be used as a search query.
| ## Global vars | |
| export LESS='--buffers=128 --HILITE-UNREAD --ignore-case --LONG-PROMPT --max-back-scroll=15 --no-init --quiet --quit-at-eof --quit-if-one-screen --RAW-CONTROL-CHARS --status-column --tabs=4 --window=-4' | |
| export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"' | |
| export FZF_DEFAULT_OPTS='--height 50% --ansi --info=inline' | |
| export EDITOR='/usr/local/bin/nvim' | |
| ## zinit | |
| source ~/.zinit/bin/zinit.zsh |
| from pathlib import Path | |
| import logging | |
| import sys | |
| def set_logger(error_file: Path, info_file: Path): | |
| error_file = Path(error_file).expanduser().resolve() | |
| error_file.parent.mkdir(exist_ok=True, parents=True) | |
| info_file = Path(info_file).expanduser().resolve() | |
| info_file.parent.mkdir(exist_ok=True, parents=True) |
image from https://i.stack.imgur.com/KTSQa.png, author is unknown for me
systemd journalctl cheatsheet / tldr
| #!/bin/sh | |
| # Create repository in Github with correct escaping in repo name | |
| # Requires {@code GITHUB_TOKEN} env var. | |
| # @return ssh url to created repository which can be used in git clone command | |
| jq --null-input --compact-output \ | |
| --arg repo 'my-awesome-project' \ | |
| '{name: $repo}' \ | |
| | curl \ |
| final List TestCases = [ | |
| '/usr/bin/sh', | |
| '//usr/bin/sh', | |
| 'usr//bin/sh', | |
| 'usr//bin//sh///', | |
| '//', | |
| '/', | |
| ' / ', | |
| ' // ', | |
| ' ', |