This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TofuPy is a wrapper around Terraform and OpenTofu. Please give it a full and detailed readme. You can find examples in the examples directory (pay attention to the python files more than anything), tests (which make for good usage examples) in the tests directory, and the primary library in the tofupy directory. Try to give a lot of examples of different actions people would do with terraform, but using TofuPy instead. Put a lot of effort into understanding the code as well. Assume the readers are familiar with terraform. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
name: esp32-s3-box-3-99f810 | |
friendly_name: ESP32 S3 Box 3 Office | |
micro_wake_word_model: hey_jarvis | |
packages: | |
esphome.voice-assistant: github://esphome/wake-word-voice-assistants/esp32-s3-box-3/esp32-s3-box-3.yaml@main | |
esphome: | |
name: ${name} | |
name_add_mac_suffix: false | |
friendly_name: ${friendly_name} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ORGANIZATIONS="tedivm tedious multi-py TerraformInDepth GitConsensus" | |
BACKUP_DIR="/storage-pool/github" | |
FLAGS="--source --no-archived" | |
GITHUB_PREFIX="https://github.com/" | |
# GITHUB_PREFIX="[email protected]:" | |
function repo_list() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals { | |
# Load the module versions from the modules.json file. | |
module_versions = jsondecode(file("${path.root}/.terraform/modules/modules.json")) | |
# Convert the module versions data into an object, | |
# with the module source path as key and version as value. | |
modules_by_source = { for module in local.module_versions : | |
module["Source"] => try(module["Version"], null) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration | |
MAKEFLAGS += -j8 | |
DOT_OPTIONS:=-Nfontname=arial -Efontname=arial -Gfontname=arial | |
MMD_OPTIONS:=-w 2000 -b transparent --cssFile ./mermaid_png.css --configFile ./mermaid_config.json | |
# Get all diagram files | |
MERMAID_FILES:=$(shell find . -name "*.mmd" -type f -not -path '*/build/*') | |
DOT_FILES:=$(shell find . -name "*.dot" -type f -not -path '*/build/*') | |
# Files that should be generated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
domain: automation | |
name: Rob's Dimmer Blueprint | |
description: Dimmer Controls | |
input: | |
controller_entity: | |
name: Philips Hue v2 Smart Dimmer Switch and Remote | |
description: The action sensor of the dimmer to use for the automation. | |
selector: | |
entity: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"format_version": "1.0", | |
"terraform_version": "1.1.7", | |
"planned_values": { | |
"root_module": { | |
"resources": [ | |
{ | |
"address": "random_integer.network", | |
"mode": "managed", | |
"type": "random_integer", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Twitter ID | Screen name | Followers | Removal observed | Before | After | |
---|---|---|---|---|---|---|
17461978 | SHAQ | 15612791 | 2022-02-26T22:24:52Z | SHAQ.ETH | SHAQ.SOL | |
21910850 | jakeowen | 2119904 | 2022-02-26T15:45:18Z | jakeowen.eth | Jake Owen | |
7846 | ijustine | 1811449 | 2022-03-09T14:43:37Z | iJustine.eth | iJustineUltra | |
1666038950 | BoredElonMusk | 1752290 | 2022-02-17T08:05:47Z | bored.eth | Bored | |
381051960 | ethRuby | 1267133 | 2022-03-19T08:08:11Z | CryptoSolis.eth | Ruby | |
1282418324228337665 | wsbmod | 832406 | 2022-02-24T06:52:07Z | wsbmod.eth | wsbmod | |
20882981 | EclecticMethod | 495235 | 2022-02-18T04:39:30Z | eclecticm.eth | Eclectic Method | |
811350 | alexisohanian | 479340 | 2022-02-08T06:31:55Z | AlexisOhanian.eth 7️⃣7️⃣6️⃣ | Alexis Ohanian 7️⃣7️⃣6️⃣ | |
22784458 | Fwiz | 410813 | 2022-03-22T08:54:42Z | Ryan Wyatt - fwiz.eth 💜 | Ryan Wyatt - @ GDC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import multiprocessing as mp | |
import signal | |
import time | |
from queue import Empty, Full | |
from typing import Callable | |
import psutil | |
from pydantic import BaseSettings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# The "Internal" visibility is still in preview in the API. | |
# We cannot filter private and internal, so this script will | |
# convert internal to internal. | |
CONVERT_TO="internal" | |
if [[ -z "$1" ]]; then | |
echo "Organization required" | |
exit 1 |
NewerOlder