In the middle of the desert you can say anything you want
Ca. 2014, from my old Semantic wiki, preserving here because why not, written by multiple people. Unchanged except adding adding ##
-markdown headers to the mediawiki ==
ones.
… It’s a really interesting snapshot and trip down memory lane
The current thing is here: 230317-1610 Traveling checklist
Брать общее + релевантное из одного из нижних
документы: студак, билеты, паспорт, деньги
Аптечка
Нож
Туалетная бумага
Тапки
Кульки
Подстилка
Колонка?
Пауер-бенк
Зарядка + все подзаряженное
Рассческа
Шампунь
Мыло
Салфетки (сухие, мокрые)
Зубная паста
Зубная щетка
Полотенце
Чашка, вилка, ложка;
Чай
Сахар
Соль
Термос
Каремат, спальниц, котелок, палатка
Сухое горючее
Фонарики
Рукавички для костра
Рукавички для дерева/дров/…
Веревка для переноски дров
Топор/мачете
Рем. набор (изолента, пластыри, веревка)
Мыло для рук
Что-то от комаров
Крем от солнца?
Вода 3л/чел
Теплые носки
соевый соус (исправит любое блюдо, если оно не получилось)
досточка для овощей
мыло с мыльницей
Макароны Тушенка (для макарон и супа) Овощи(помидоры, огурцы, картошка, морковка, лук, зелень) Сгущенка(7 банок, возьму в Украинке белорусскую (если повезет)) Филе курицы для шашлыка Чай Печенье Специи Колбаса копченая Планируется готовить: Макароны с тушенкой Суп Шашлык Палево Бутерброды
Previously: ~/notes/quotes; ~/notes/phrases - serhii.net
Context: I used to have really long textfiles with phrases/quotes, let’s revive the tradition.
If you buy time and then it is wasted, then nothing is gained. If you pay a big price to buy time, it needs to be paired with a similarly big effort to make use of that time. 1
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: