Skip to content

Instantly share code, notes, and snippets.

View arimal199's full-sized avatar
🎯
Focusing

Ariel Maloul arimal199

🎯
Focusing
View GitHub Profile
@marvell
marvell / remove_apt_cache
Created May 18, 2015 15:29
Remove APT cache (for Dockerfile)
apt-get clean autoclean
apt-get autoremove --yes
rm -rf /var/lib/{apt,dpkg,cache,log}/
@reegnz
reegnz / README.md
Last active October 22, 2024 13:55
The Terraform group_by you've been missing

The Terraform group_by you've been missing

I'm playing around a lot nowadays with Terraform 0.13 and I found a really interesting feature and that's the ... symbol (also called an ellipsis) to be used with for expressions.

The operator can be used for group_by operations.

Example

We have a list of entries. The list contains employee/manager/project triplets.