In the middle of the desert you can say anything you want
Will be a new list! Previously: 230525-1450 German word Krempel, 231210-1801 German word Stehrümchen
I’ve been using it less than a month so far. BUT this is what I got for now, describes for 95% of my projects. As usual, adding lines when something breaks.
Use docstrings in google format; use python typing.
Commit messages start the number found in the branch name — so e.g. branch 31-add-address will have commits like "#31 Implement address verification". Use short imperative messages and start with the main/larger change first.
Always use python logging creating a logger = logging.getLogger(__name__) except for mani runner scripts, which name the logger after the __package__. Unless verbosity/loglevel logic is done in the file, always create that logger right after the imports, in global scope.
Tests are written using pytest, in a directory structure mirroing the src one. Put assets into ./tests/assets/. Run as `uv run pytest`.
Use pydantic dataclasses for configs/settings and similar structures.
When running CLI commands, expect the shell to be fish, not bash. If you need bash run it explicitly.
Never automatically use --force and similar arguments, ask every time. ESPECIALLY pip's externally-managed-environment error — NEVER run it with --break-system-packages without asking first.
Most projects use uv — use uv commands for operations (e.g. not `pip install` but `uv add`).
After a really nice convesation at a pharmacy.
A trick I just learned from XScreenSaver sonar must be setuid to ping - UNBLOG Tutorials:
locate programname
I’d usually do whereis programname
, which works if the program is one I can run from CLI. sonar
wasn’t in PATH
, and I had no idea where to find it — locate
did it.
To setuid:
- sudo chmod +s /path/to/program
- +x
would only do this for my current user
(Also: fun old forums from 2003 were fun: setuid and the sonar screen saver (newbie))
Sender: top-left smal Receiver: middle/bottom-right big. (Unless Sichtfenster)
Person
Frau
Dr. Rosalinde Mustermann
Musterstraße 20 A
12345 Musterstadt
Firma
Mustermann AG
Musterabteilung
Frau Dr. Rosalinde Mustermann
Musterstraße 20 A
12345 Musterstadt
Backup and Restore | Gitea Documentation has the full detailed story.
The easy stupid way for backing up gitea running in docker, untested and allegedly will fail if DB was being used during dumping.
docker exec -it --user git gitea-container bash
gitea dump
# then outside the container, copy from the gitea container to host OSooj
docker cp gitea-container:/whatveer/gitea-dump.zip /tmp
Importing: the docs don’t have the correct paths, not easy to follow.
EDIT: if your docker has /data
mounted somewhere local, just copying that directory somewhere might work.
apiVersion: v1
kind: Pod
metadata:
name: temp-pod
namespace: CHANGEME-ns
spec:
restartPolicy: Never
containers:
- name: temp-pod
image: alpine:latest # Use a lightweight image
command: ["sleep", "3600"] # Keep the pod running for 1 hour
volumeMounts: # Mount the persistent volume
- name: data
mountPath: /data
volumes: # Specify the persistent volume claim
- name: data
persistentVolumeClaim:
claimName: CHANGEME-pvc
So basically trivial temporary pod done specifically to copy stuff to a PVC that auto-kills itself in 1h w/ no need to do anything for this — ty KM for this!1
Then one can happily copy stuff from there using the usual:
❯ kubectl cp CHANGEME-ns/temp-pod:/data/project/train7/ .
# as well as
kubectl exec -it temp-pod -n CHANGEME-ns -- sh
ADDITIONALLY, I had issues cp
ing things larger than 6gb. Reminder to myself that one can tar
things or just transfer in separate parts.
See also 240131-1535 Setup for Dockerfiles where you can look around before running for an overkill option for this that I wouldn’t use anymore ever. ↩︎
Good enough: How to cook white rice - easily and perfectly - RecipeTin Eats
TL;DR:
Now playing: Кость Москалець - Віфлеєм; La Boheme - Freni, Pavarotti - G. Puccini (1995)1
Досягнення року:
Eval-UA-tion; вело-тур 200+ км
Настрій року:
Low-key напруженості
Зустріч року: DB
Подія року:
велотур, який відкрив в мені любов до гамака та вузлів
Жах року: геноцид в Газі і реакція світу на це; вибори (в США і не тільки)
Країна року:
Хорватія
Антилюдина року: Путін; дуже сподіваюсь, наступного року буде не Трамп
Місто року:
Турин; Kozino
Слово року:
Evaluation; (3D)Slicer; гамак; Tischtennis
Подорож року:
LREC-2024 в Турині! Хорватія, Франція, вело-тур.
Веб-сервіс року:
ChatGPT; Z-Library; Stremio; Infinite Flight
(Анти-веб-сервіс року: QIS)
Колір року: коричневий з золото-жовтими жилами/вкрапленнями (як мрамор)
Запах року:
чаю “Turkish Earl Grey”
Новина року: TODO
Книга року:
“Банальність зла” Hannah Arendt; “The Ultimate Hang” (Derek Hansen); “Fall; or Dodge in Hell” Neal Stephenson; “Nuclear War” (Anne Jacobsen); Stephen King’s IT; Glucose Revolution. Виявляється досить багато читав цього року
Фільм/серіал року:
Star Trek Lower Decks; White Collar; Documentary Now!
Media N.O.S.:
Fall of Civilizations podcast! Bob Gymlan; KyotoRobato; CITeam
Пісня року:
Men at Work “Down Under”; “Я помру від застуди” (Мертвий Півень)
Заклад року:
телевізор в спальні
Напій року:
Чай який “суп”
Їжа року: “сира” яєчня, червона паста, суші; овочі перед їжою!2
Транспорт року:
велосипед безумовно!
Побажання собі на 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 рік:
Щоб всі були здорові і не було причин за них нервувати; щоб мобілізували не більше двох близьких знайомих; щоб взагалі було менше причин нервувати, і щоб я краще сприймав нерви навколо мене.
Ціль на наступний рік: TODO
Ну і вічнозелене: Продовжити сон, спорт, медитацію – ЦЕ ПРАЦЮЄ. (x8)
(У)
Мілко нарізані, “так, щоб не було противно їсти”
Вода
Довести на середньому вогні до кипіння, без кришки
як тільки почне починати закипати (95C+) додати цукор
дати закипіти (сильно прям)
виключити вогонь, накрити кришкою, дати стояти до ранку