In the middle of the desert you can say anything you want
My package was 156mb because my tests/ were 120mb.
Uv uses hatchling
uv build output · Issue #7938 · astral-sh/uvTL;DR add this to pyproject.toml
[tool.hatch.build.targets.sdist]
exclude = [
"tests/"
]
Before/after:
# before
-rw-r--r-- 1 sh sh 156M Jul 13 13:20 pkg-9.2.0.tar.gz
# after
-rw-r--r-- 1 sh sh 8.3M Jul 13 13:15 pkg-9.3.0.tar.gz
# yay!
How to speed up Python application startup time - DEV Community
This tells you the time for imports:
PYTHONPROFILEIMPORTTIME=True uv run my_program.py
Colors - Core concepts - Tailwind CSS
Click to copy the OKLCH value or shift+click to copy the nearest hex value.
Oh that’s cool I could use that. The only reason I found it was because https://quasar.dev/style/color-palette/#color-list didn’t give clean access to the hex values so I kept looking :)
I think I’ve read about this years ago somewhere, just thought of it
For all my (fish) CLI aliases a , is an OK prefix to use, it even supports completion.
alias ,isodate='date +%F'
No idea about any downsides yet, will play with this for a week or so.
function ,blist -d "search and show bitwarden credentials"
command bw list items --search "$argv" | jq '.[].login | [.username, .password]' -c
end
function ,bcp -d "copy password of the first matching bitwarden item"
command bw list items --search $argv | jq .[0].login.password -r | xc
echo "copied password for '$argv'"
end
# etc, I see potential here!
``
Also TIL: fish functions can have a description that will be shown when tab completing! function functionname -d 'function description'
Isn’t it beautiful?
I wanted the metadata.annotation pod-requests, viewable in node config -> YAML on the Rancher webgui.
Came up w/ this:
kubectl get node node-name -o template --template='{{ index .metadata.annotations "management.cattle.io/pod-requests" }}'
# | jq '.["nvidia.com/gpu"]'
It refused to allow me to use - and / inside the name (k get node nodename -o template --template={{.metadata.annotations.management.cattle.io/pod-requests}} didn’t work), solution from Helm templating doesn’t let me use dash in names - Stack Overflow.
Fun version w/ templates and json (there has to be a better way):
k get node nodename -o template --template='{"requests": {{ index .metadata.annotations "management.cattle.io/pod-requests" }}, "limits": {{ index .metadata.annotations "management.cattle.io/pod-requests" }}, "total": {"nvidia.com/gpu": {{ index .metadata.labels "nvidia.com/gpu.count" }} } }' | jq .
Returns:
{
"requests": {
"cpu": "19795m",
"memory": "7450Mi",
"nvidia.com/gpu": "1",
"pods": "37"
},
"limits": {
"cpu": "19795m",
"memory": "7450Mi",
"nvidia.com/gpu": "1",
"pods": "37"
},
"total": {
"nvidia.com/gpu": 1
}
}
Or even
k get node ki-srv03 -o template --template='{"requests": {{ index .metadata.annotations "management.cattle.io/pod-requests" }}, "limits": {{ index .metadata.annotations "management.cattle.io/pod-requests" }}, "total": {"nvidia.com/gpu": {{ index .metadata.labels "nvidia.com/gpu.count" }} } }' | jq '. | [.requests["nvidia.com/gpu"], .limits["nvidia.com/gpu"], .total["nvidia.com/gpu"] | tonumber]' -c
# -> [2,1,4]
BurntSushi/bttf: A command line tool for datetime arithmetic, parsing, formatting and more.
I use wolframalpha for most of my casual date ops etc. but the project is cool and I may need it.
But the most interesting bit is the documentation.
Quoting README:
I may ship arbitrary and capricious breaking changes at this point. You have been warned. […] And it doesn’t give a hoot about POSIX (other than the
TZenvironment variable).
And THIS. I either love it or hate it, can’t decide:
-h/--help
This flag prints the help output for bttf.
Unlike most other flags, the behavior of the short flag, -h, and the
long flag, --help, is different. The short flag will show a condensed
help output while the long flag will show a verbose help output.
It breaks my usual expectations but damn it’s a cool pattern that I really want to be a thing! You’re allowed to break conventions if your thing is really smarter and you’re explicit and intentional about it.
Tiny neat app that shows pages from all PDFs and allows you to rearrange the order, does one thing and does it wonderfully!
Prodigy · An annotation tool for AI, Machine Learning & NLP
First seen in Anshu Kiran Sharma - PhD Student Computer Science, Natural Language Processing’s “Once upon a kernel” @ LREC 2026