Using `eza` to find large files in a directory
Eza has some handy options that make it easier to find large files in a dir.
eza -lT --total-size --sort=size
This is a list of small things that I've learned recently in my day-to-day work. It's mostly programming related but you never know, I might slip in some other stuff too. One of the things I've always found interesting about programming is that there is so much depth to the field that even if you are considered an "expert" in an area, you can still have blind spots, and totally miss handy techniques, tools or strategies. So some of the stuff in this list might seem obvious, but who knows, there might be other things that you've missed too!
Eza has some handy options that make it easier to find large files in a dir.
eza -lT --total-size --sort=size
The amount of characters accepted by .isalpha()
is more than you might expect
A handy feature of uv
that allows you to specify a datetime, and uv
and won't install dependencies that are newer than that date
Use PIP_RESOLVER_DEBUG=1
to get actually useful output when pip backtracking fails.
A handy productivity improvement
Full text search in postgres is awesome but constructing queries can be a bit tedious. websearch_to_tsquery
makes that super easy.
I'm very used to passing an array of items to a postgres query using libraries for nodejs like pg-promise
so was surprised how hard it was to figure out how to do this with python, pandas and sqlalchemy
A super handy snippet to get the results of a query as JSON
Common git workflows often result in big merge branches that are impossible to review on github, turns out they are easy to review using tig show
A bit of a weird thing to do, but just in case it's useful again
I knew github had this feature, but didn't know that notion had it even earlier
Control the order of results in list aggregates