Skip to content

Instantly share code, notes, and snippets.

View tsoe77's full-sized avatar
☁️

Thiha Soe tsoe77

☁️
View GitHub Profile
@tsoe77
tsoe77 / workflow.yaml
Created December 11, 2024 21:56
ECS Github Action Workflow
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
@tsoe77
tsoe77 / config
Created January 31, 2025 15:50
yet another ghostty config for macos
# ~/.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
@tsoe77
tsoe77 / json2hcl.py
Created March 4, 2025 15:30
A python script to convert JSON to HCL
#!/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
@tsoe77
tsoe77 / ai_calc.py
Created October 23, 2025 15:48
agentic calculator 😂
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'),
)