Skip to content

Instantly share code, notes, and snippets.

@ihommani
ihommani / wsl2-with-1password-info.md
Created September 24, 2023 12:29 — forked from WillianTomaz/wsl2-with-1password-info.md
Instructions for using 1Password SSH Agent with WSL2 (on Windows 11)

Saturday, April 22, 2023

How to Use 1Password SSH Agent with WSL2 (on Windows 11)

  • Note:

    • Always look for the official documentation, this tutorial may not suit you as there are new updates to the installation process.
    • References are at the end of the document.
  • Was used:

    • Windows 11 (x64)
    • WSL 2 (Ubuntu 22.04.2 LTS)
@ihommani
ihommani / main.tf
Last active November 4, 2023 14:15
Terraform Breadth first search algorithm on GCP
# Context: Given a GCP organisation node (the organisation itself or one of its subfolder) I need to get all the gcp project ids under this node, flattened in a single list.
# Terraform lacks of support to run trough graph structures like a tree.
# The below code is a breadth first search run. Depth first search would require recursivity, smthg that I didn't find on HCL.
# Last but not least, once I managed to get a working code after one hour of several tries I found the terraform resource which encapsulate what I needed first.
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/cloud_asset_resources_search_all#argument-reference
provider "google" {
user_project_override = true
billing_project = <TO-REPLACE>
}