pgtestdb
dotfiles
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pgtestdb
-
Russ Cox: Go Testing by Example
Agreed with most of this but I’m skeptical of the rsc.io/script dsl approach. I’ll try it, though, because Russ is often right.
shameless advert: do you wish testify was implemented with generics and go-cmp, and had a more understandable surface area? Check out my small zero-dep library, Testy https://github.com/peterldowns/testy
shameless advert: do you want to write tests against your postgres database, but each new test adds seconds to your test suite? Check out pgtestdb, the marginal cost of each test is measured in tens of milliseconds, and each test gets a unique and isolated postgres instance — with all your migrations applied. https://github.com/peterldowns/pgtestdb
-
Show HN: SQL Dry Runs with SQL Simulator
Hi Weston, congratulations on launching. You've done a great job of explaining what the project is and how it works. I'm not in the ecosystem you've built this for so I can't comment too much on the project itself, but nice work communicating it.
If anyone is interested in testing code/sql against postgres, I recently released https://github.com/peterldowns/pgtestdb. It uses template databases and advisory locks to give each test its own unique database with a near-zero marginal cost for each additional test. Combined with a ram/tmpfs-backed postgres server that is tuned for performance, it goes extremely fast.
Currently just for golang but I'm planning on releasing equivalent-capability libraries for Python and Typescript over the next month. If anyone has any thoughts/comments/feedback/suggestions I'd be extremely thankful.
dotfiles
- Conditional Git Configuration
-
Russ Cox: Go Testing by Example
chezmoi (<https://chezmoi.io> or <https://github.com/twpayne/chezmoi>) has a couple dozen txtar tests. They are both amazing and completely frustrating to use, but I don't think that there would be a better way to test most of what chezmoi does without them.
Tom Payne (the creator and primary developer of chezmoi) has added some extra commands to the txtar context which makes things easier for certain classes of testing.
-
Yabai – A tiling window manager for macOS
You can configure Hammerspoon so a hot key combination puts a window in a defined section of the screen. For example, I use Ctrl+Alt+H to put the current window in the left half of the screen, Ctrl+Alt+L for the right half, Ctrl+Alt+Enter for full screen, etc. This makes arranging your windows very fast.
Full config: https://github.com/twpayne/dotfiles/blob/21d0edcebaeebf0d90e...
-
A Dotfile History
great help on how to set things up: https://github.com/twpayne/dotfiles)
What are some alternatives?
testy - test helpers for more meaningful, readable, and fluent tests
dotfile - Simple version control made for tracking single files
dotfiles - Bootstrap your Ubuntu in a single command!
yadm - Yet Another Dotfiles Manager
dotfiles - Dotfiles for 2023, Managed with chezmoi
Rectangle - Move and resize windows on macOS with keyboard shortcuts and snap areas
stackline - Visualize yabai window stacks on macOS. Works with yabai & hammerspoon.
miro-windows-manager - Intuitive and clever mechanism for moving windows using only arrows, even resizing windows by thirds or quarters! For OSX