Skip to content

Instantly share code, notes, and snippets.

View svenikea's full-sized avatar
🏠
Working from home

BJ svenikea

🏠
Working from home
View GitHub Profile
@reegnz
reegnz / README.md
Last active June 6, 2025 18:13
Using terraform for_each and toset instead of count

Using terraform for_each and toset instead of count

Using terraform count and the pain of working with it

If you're using terraform extensively you probably ran into an issue like this.

This is a synthetic example but I still hope the problem is recognizable as something that also happens out in the wild.

First, you have a list variable (in terraform.tfvars)

@bgauduch
bgauduch / 0 - Multiple git identities on one machine.md
Last active November 11, 2026 03:40
Multiple git identities on one machine: config per folder and per provider (personal vs work). Every command verified.

Multiple git identities on one machine

One machine, several git identities (personal vs work, GitHub vs GitLab, two accounts on one provider). Each repository picks its own name, email and credentials. In a hurry: Appendix B, once per rule.

A wrong identity does not fail: git commits and pushes under the wrong author. Part 1 ends with the check that catches it.

Requirements

Feature Minimum git