Day 462
How to make perfect italian pizza
This is a really nice video: How to Make Perfect Pizza | Gennaro Contaldo - YouTube
Qutebrowser mediawiki yank userscript
Using an userscript for this is overkill, but
#!/usr/bin/python3
import os
title = os.environ['QUTE_TITLE']
url = os.environ['QUTE_URL']
with open(os.environ['QUTE_FIFO'], 'w') as f:
f.write("yank inline \"[{} {}]\"".format(url, title))
Located at /home/shamotskyi/.local/share/qutebrowser/userscripts/yank_w.py
.
In the config, config.bind('yw', 'spawn --userscript yank_w.py')
EDIT: replaced this with config.bind('yw', 'yank inline "[{url} {title}]"')
.
Taskwarrior tasks completed today
I have not been using it to the fullest.
List tasks completed today: task all status:completed end:today
This might be something I can copypaste into my pages or in my reports, such as my weekly sprint review! Adding it as a module to siom
should be not too hard. Taskwarrior - Usage Examples contains more nice examples.
Python3 glob
glob is not sorted!
glob.glob().sorted()
though is.
Kitty
kitty - the fast, featureful, GPU based terminal emulator — kitty 0.17.2 documentation:
ctrl+shift+s
is paste from selection
ctrl+shift+u
for unicode characters
Set default browser from the shell
sudo update-alternatives --config x-www-browser
Doesn’t seem to work for kitty, but in the config open_url_with qutebrowser
works predictably.
English
gratuitous - Wiktionary - given freely, unearned; without reason, unjustified, unnecessary, uncalled for. Seen first in Behemoth by Peter Watts.
Taskwarrior / zsh / … week number
For the sake of consistency (to each other and especially to Google Calendar) now my sprint number and week number is the ISO week number:
export SPRINT=$(date +%-V)
Fixed this in:
- $SPRINT environment variable
- weekNumberValue in siom
- i3 statusline:
tztime local {
format = "[%V] %a %Y-%m-%d %H:%M:%S"
}
Only place it’s left now is in my paper calendar, but I don’t use it too much these days.