/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

codeinthehole.com
| | stribny.name

[AI summary] This article provides a modern Python project template using Poetry for dependency management, along with tools for testing, code formatting, static analysis, and version control.
3.9 parsecs

Travel
| |
| | hjr265.me

Git has this great feature that I think is well-known but under-used. I am talking about Git hooks. With Git hooks, you can run scripts during different Git actions. Like this one: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #!/bin/sh GOFILES=`git diff --name-only --cached | grep -e '.go$' | grep -ve 'vendor/'` UNFMTFILES=() for f in $GOFILES; do if [ -n "`gofmt -l -s .
3.4 parsecs

Travel
| |
| | vlad.website

Sometimes, you want to add some code to test something out, but you definitely want to make sure you don't git commit it. Of course, you should always check the output of git diff before you make a commit (you do, right?), but if you have a lot of changes things can slip through the cracks. A solution is to write a comment containing a string such as "nocheckin": function do_stuff() { printf("hello!!! testing!!!\n"); // nocheckin call_important_thing(); call_other_thing(); } Then, you need to set git up such that it refuses to make a commit if it detects the "nocheckin" string anywhere in your changed files. Here's how to do it.
3.2 parsecs

Travel
| |
| | www.tumfatig.net

The OpenBSD virtual machine daemon works pretty well with Linux VMs nowadays. This was time for me to see if I could replace the Synology Docker service with some Docker host provided by vmd(8).
17.0 parsecs

Travel
|