Skip to content

Instantly share code, notes, and snippets.

View xbalajipge's full-sized avatar
🐜
Actively Coding 👍

Balaji V (xbalajipge) xbalajipge

🐜
Actively Coding 👍
View GitHub Profile
@xbalajipge
xbalajipge / github-actions-01.md
Created June 13, 2026 03:50
github-actions-01

Using Azure DevOps as a centralized CI/CD for applications hosted in AWS & Azure There are no issues for any apps, infrastructure that are hosted in Azure, as they have a dedicated Azure subscription and there is a 1-to-1 mapping between ADO project an d an Azure subscription.

If we use Azure devops (ADO) for continous integration and deployment for AWS application code, we have the following things to consider. We will have to create ADO projec t associated with every AWS account and within that ADO project we will have multiple ADO pipelines as per the application/project needs.

ADO requires devops pool for compute (Virtual machines for compile/build) operations; ADO provides two options for this 1. microsoft managed devops pool and 2. customer managed private devops pool. At PGE as per Cyber security standards we have to have a private pool and cannot use a public pool. That means these compute has to be from anazure subscription, again there are two options, either using a shared azure subscription or

@xbalajipge
xbalajipge / github-budget.md
Created June 3, 2026 20:40
github-enterprise-budget.md

create user budget, creating a budget would look something like:

curl -g -X POST \
 -H "Authorization: Bearer YOUR_TOKEN" \
 -H "Accept: application/vnd.github+json" \
 -H "X-GitHub-Api-Version: 2022-11-28" \
 https://api.github.com/enterprises/ENTERPRISE/settings/billing/budgets \
 -d '{"budget_amount":100.00,"budget_scope":"user","user":"mona","prevent_further_usage":true,"budget_product_sku":"ai_credits","budget_type":"BundlePricing","budget_alerting":{"will_alert":false,"alert_recipients":[]}}'
@xbalajipge
xbalajipge / setup-sdd.py
Last active May 6, 2026 08:49
setup-sdd.py
#!/usr/bin/env python3
"""
Spec Driven Development (SDD) Workspace Setup Script (macOS/Linux + WSL)
Configures AI-DLC (AI-Driven Development Life Cycle) rules for your development environment.
Downloads from GitHub or uses local sdd-rules directory.
Reference: https://github.com/awslabs/aidlc-workflows
"""
import argparse
import json
@xbalajipge
xbalajipge / setup-sdd.sh
Last active May 6, 2026 08:49
setup-sdd.sh
#!/usr/bin/env bash
set -euo pipefail
# Spec Driven Development (SDD) Workspace Setup Script (macOS/Linux + WSL)
# Configures AI-DLC (AI-Driven Development Life Cycle) rules for your development environment
# Downloads from GitHub or uses local sdd-rules directory
# https://github.com/awslabs/aidlc-workflows
VERSION="0.1.0"
REF_URL="https://github.com/awslabs/aidlc-workflows"
@xbalajipge
xbalajipge / setup-aidlc.sh
Last active March 2, 2026 06:23
setup-aidlc.sh
#!/usr/bin/env bash
set -euo pipefail
# AI-DLC Workspace Setup Script (macOS/Linux + WSL)
# Injects reference URL into generated/copied instruction files:
# https://github.com/awslabs/aidlc-workflows
VERSION="1.3.0"
REF_URL="https://github.com/awslabs/aidlc-workflows"
@xbalajipge
xbalajipge / prompt-SAP-01.md
Created February 10, 2026 18:14
prompt-SAP-01.md

GitHub Copilot Prompt Pack: Understanding SAP Projects

How to use:

  • Open your SAP repository
  • Run: copilot (GitHub Copilot CLI interactive mode)
  • Paste ONE prompt at a time
  • Iterate with follow-up questions for deeper understanding

Tip:

  • These prompts are intentionally verbose and explicit.
  • Copilot performs best when given SAP-specific context.
@xbalajipge
xbalajipge / asp-ase.md
Created November 25, 2025 20:20
asp-ase.md

Azure ASP vs ASE

1. What is Azure ASP vs ASE?

ASP (App Service Plan)

An App Service Plan defines the compute resources for hosting your web apps, APIs, and functions in Azure App Service.
It determines region, VM size, scaling options, and pricing tier.
Multiple apps can share the same ASP.

@xbalajipge
xbalajipge / terraform-tfe-modules.md
Last active November 20, 2025 07:03
terraform-tfe-modules.md

xbalajipge: Describe the design of the terraform code in tfe/modules/{projects,teams,workspaces} folder; give a high level over view as bullet points, suitable for presentationn

Workspace: Collecting workspace information# High-Level Design Overview: TFE Modules

response

Based on the Terraform code in tfe/modules/{projects,teams,workspaces}, here's a presentation-ready overview:


@xbalajipge
xbalajipge / extract_chat.py
Created November 20, 2025 03:22
extract_chat.py
#! /usr/bin/env python3
import json
import argparse
from pathlib import Path
def extract_chat_to_markdown(json_file_path: str, output_file_path: str):
"""
Extract chat prompts and responses from a Copilot chat JSON file and save as markdown.
@xbalajipge
xbalajipge / terraform-on-terraform.md
Last active November 20, 2025 02:54
terraform-on-terraform.md

prompt 1

what is the purpose of the terraform code in `terraformv2` folder; give a high level over view as bullet points

response 1

Collecting workspace informationThis Terraform configuration in the terraformv2 folder is designed to manage Terraform Cloud (TFC) resources programmatically. Its primary purpose is to automate the creation and management of TFC workspaces and their associated team permissions.

Here is a high-level overview: