I hereby claim:
- I am tsoe77 on github.
- I am tsoe77 (https://keybase.io/tsoe77) on keybase.
- I have a public key ASDIbvKv97xEtxuQSbdEBFDeXBjA1jlahI1nehHCZXZxqQo
To claim this, I am signing this object:
| from pydantic import BaseModel | |
| from pydantic_ai import Agent | |
| from pydantic_ai.models.openai import OpenAIChatModel | |
| from pydantic_ai.providers.ollama import OllamaProvider | |
| ollama_model = OpenAIChatModel( | |
| model_name='llama3.2:latest', | |
| provider=OllamaProvider(base_url='http://localhost:11434/v1'), | |
| ) |
| #!/usr/bin/env python3 | |
| # json2hcl.py - Convert JSON to Terraform HCL | |
| import json | |
| import sys | |
| import re | |
| import argparse | |
| from typing import Any, Dict, List, Union | |
| # ~/.config/ghostty/config | |
| clipboard-read = allow | |
| clipboard-write = allow | |
| copy-on-select = false | |
| window-decoration = auto | |
| window-theme = dark | |
| window-padding-balance = true | |
| window-save-state = always | |
| theme = Dracula | |
| font-size = 14 |
| name: ECS Deploy Workflow | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| permissions: | |
| id-token: write # This is required for requesting the JWT | |
| contents: read # This is required for actions/checkout |
| Solarized | |
| #FDF6E3,#EEE8D5,#93A1A1,#FDF6E3,#EEE8D5,#657B83,#2AA198,#DC322F | |
| Solarized Dark | |
| #073642,#002B36,#B58900,#FDF6E3,#CB4B16,#FDF6E3,#2AA198,#DC322F | |
| import json | |
| import sys | |
| import os | |
| def dotenv_to_json(dotenv_path, json_path): | |
| with open(dotenv_path) as f: | |
| data = f.readlines() | |
| result = {} | |
| for line in data: |
I hereby claim:
To claim this, I am signing this object:
| # gitlab ci template for terraform with webidentity role | |
| # https://docs.gitlab.com/ee/ci/cloud_services/aws/ for how to setup gitlab oidc in aws. | |
| # | |
| # assuming it is a monorepo with vpc/dev and vpc/prod | |
| # assuming AWS_IAM_ROLE_DEV and AWS_IAM_ROLE_PROD with role arn as values configured in the CI/CD settings | |
| # | |
| # setup step is to setup working dir and pass role arn | |
| # validate step is to validate terraform | |
| # terraform plan step runs on any other branch except in main | |
| # terraform apply step runs only on main branch |
| import socket | |
| import json | |
| def lambda_handler(event, context): | |
| return { | |
| 'statusCode': 200, | |
| 'body': json.dumps(socket.gethostbyname('www.google.com')) | |
| } |
#002B36,#002B36,#073642,#FDF6E3,#657B83,#FDF6E3,#859900,#2AA198,#002B36,#FDF6E3