Skip to content

Instantly share code, notes, and snippets.

View influx6-clover's full-sized avatar

Clover - Alexander Ewetumo influx6-clover

View GitHub Profile
@influx6-clover
influx6-clover / README.md
Created June 3, 2025 07:42 — forked from AlainODea/README.md
Terragrunt config to auto-generate provider and backend config so you can apply library modules directly in infrastructure-live without an adapter module in infrastructure-modules

Using Terragrunt generate for extra DRY Terraform

Terragrunt config to auto-generate provider and backend config so you can apply library modules directly in infrastructure-live without an adapter module in infrastructure-modules.

@influx6-clover
influx6-clover / ConvertTo-PlantUML.ps1
Created February 11, 2025 07:31 — forked from panasenco/ConvertTo-PlantUML.ps1
Converts dbt manifest.json to PlantUML ERD diagram. It's not pretty but it's readable.
#!/usr/bin/env pwsh
<#
.Synopsis
Creates a PlantUML ERD diagram from a manifest.json file.
.Parameter Path
Path to the manifest.json file. Defaults to .\target\manifest.json
#>
[CmdletBinding()]
param (
@influx6-clover
influx6-clover / dbt_to_dbdiagram.rb
Created February 11, 2025 07:30 — forked from pcreux/dbt_to_dbdiagram.rb
Generate an ERD via dbdiagram.io from a dbt project.
#!/usr/bin/env ruby
# Generate a dbdiagram for dbdiagram.io from a dbt project.
#
# Usage:
# 1. Run `dbt docs generate` first.
# 2. Run `dbt_to_dbdiagram.rb`
# 3. Paste the output in https://dbdiagram.io/
require 'yaml'
require 'json'
@influx6-clover
influx6-clover / global-gitignore.md
Created February 19, 2024 10:40 — forked from subfuzion/global-gitignore.md
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

@influx6-clover
influx6-clover / stream_response.py
Created November 11, 2022 09:22 — forked from obskyr/stream_response.py
How to stream a requests response as a file-like object.
# -*- coding: utf-8 -*-
import requests
from io import BytesIO, SEEK_SET, SEEK_END
class ResponseStream(object):
def __init__(self, request_iterator):
self._bytes = BytesIO()
self._iterator = request_iterator