Skip to content

Instantly share code, notes, and snippets.

View rustymagnet3000's full-sized avatar
🧵

Rusty Magnet rustymagnet3000

🧵
View GitHub Profile
@mesutpiskin
mesutpiskin / redis-search-and-delete.go
Last active March 12, 2025 13:35
Redis Delete Keys Matching a Search Pattern with Go Lang. Redis client https://github.com/go-redis/redis
package main
import (
"context"
"fmt"
"os"
"github.com/go-redis/redis/v8"
)
@mattmichal
mattmichal / main.tf
Created October 7, 2022 11:31
Sample Terraform code that uses Cloudflare provider version 3.25.0 to perform operations on resources that require API token as well as API user service key. Secrets are passed to Terraform via TF_VAR environment variables. Two providers are configured and then both are passed to a local module.
module "app" {
for_each = local.applications.customers
source = "./modules/app/"
customer_name = each.key
providers = {
cloudflare = cloudflare
cloudflare.user_service_key = cloudflare.user_service_key
}
}