Skip to content

Instantly share code, notes, and snippets.

View tsoe77's full-sized avatar
☁️

Thiha Soe tsoe77

☁️
View GitHub Profile
@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'),
)
@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 / 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 / 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 / Slack_solarized_themes
Created September 7, 2024 08:34 — forked from mgreensmith/Slack_solarized_themes
Solarized themes for Slack
Solarized
#FDF6E3,#EEE8D5,#93A1A1,#FDF6E3,#EEE8D5,#657B83,#2AA198,#DC322F
Solarized Dark
#073642,#002B36,#B58900,#FDF6E3,#CB4B16,#FDF6E3,#2AA198,#DC322F
@tsoe77
tsoe77 / dotenv2json.py
Created March 27, 2023 18:38
a script to convert any dot env file to json and vice versa
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:
@tsoe77
tsoe77 / slacktheme.txt
Last active March 10, 2023 16:55
Vscode Github Dark Default Theme for Slack
#010409,#121016,#2C323F,#c9d1d9,#0D1117,#b1bac4,#56d364,#f85149,#010409,#b1bac4
@tsoe77
tsoe77 / postgres.yaml
Created October 27, 2022 14:43
k8s postgres client for temporary uses
apiVersion: v1
kind: Pod
metadata:
name: postgres
labels:
app: postgres
spec:
containers:
- name: postgres
image: postgres:latest
@tsoe77
tsoe77 / .pre-commit-config.yaml
Created October 17, 2022 19:11
terraform pre-commit example
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.76.0
hooks:
@tsoe77
tsoe77 / keybase.md
Created October 10, 2022 16:21
keybase.md

Keybase proof

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: