// don't do below:
if let(x) = fn_returns_option() {
return x
}
// especially these:
if let(x) = fn_returns_option() {https://github.com/ryuheechul/gcloud
https://cloud.google.com/artifact-registry/docs/gcloud-defaults
gcloud config set compute/region europe-west2
gcloud config set compute/zone europe-west2-b
| # this is based on my (not so desirable) experience with packer 1.6.6 in Feb 2021 | |
| # you might want to read these pages to understand the situation below | |
| # - https://www.packer.io/docs/from-1.5/blocks/build/source | |
| # - https://www.packer.io/docs/from-1.5/blocks/build/provisioner | |
| # - https://www.packer.io/docs/from-1.5/blocks/source | |
| # - https://www.packer.io/docs/from-1.5/onlyexcept | |
| # - https://www.packer.io/docs/builders/vagrant | |
| locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") } |
Nix is a purely functional package manager
/nix folder in my dotfiles repo
this is how I utilize nix to have better management of initial setup in terms of both logically and performantely better
How I package Docker image using Nix
My first attempt to package with Nix for a Docker image with Dockerfile
I use dotfiles to personalize *nix type of machines. But I'm new to personalizing Windows 10. So I'm collecting information here first before adding these to the dotfiles. I'm not sure if these will ever move to dotfiles though.
https://www.git-tower.com/learn/git/faq/change-author-name-email/
copied from https://stackoverflow.com/a/60364176/1570165
git-filter-repo \
--name-callback 'return name.replace(b"OldName", b"NewName")' \
--email-callback 'return email.replace(b"old@email.com", b"new@email.com")'| package collection | |
| # Map | |
| my_add(x, y) = x + y | |
| map_add[x] = val { | |
| col := input.col | |
| delta := input.delta |