Skip to content

Instantly share code, notes, and snippets.

View rawwar's full-sized avatar

Kalyan R rawwar

View GitHub Profile
@rawwar
rawwar / py
Created December 26, 2018 07:38
Loading, displaying and saving images
import cv2
img_location = "C:\images\img.jpg"
img = cv2.imread(img_location)
cv2.imshow("Loaded Image", img)
cv2.waitkey(0)
cv2.imwrite("Saved_image.jpg", img)
@rawwar
rawwar / json_to_singer_schema.py
Created May 5, 2023 21:21
Convert a Json to singer sdk schema written with typing helpers
import json
from singer_sdk import typing as th
def json_to_schema(json_obj):
"""
Converts a JSON object to a Singer SDK schema using typing helpers.
Args:
json_obj (dict): The JSON object to convert.
@rawwar
rawwar / patch.txt
Created June 26, 2025 18:58
MA - gcp-additional_logs.txt
From e08f474a178048c0f245f5b4882ff09b9e4c062a Mon Sep 17 00:00:00 2001
From: kalyanr <kalyan.ben10@live.com>
Date: Fri, 27 Jun 2025 00:25:23 +0530
Subject: [PATCH] add additional logging
---
airflow/providers/google/cloud/triggers/bigquery.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/airflow/providers/google/cloud/triggers/bigquery.py b/airflow/providers/google/cloud/triggers/bigquery.py
@rawwar
rawwar / patch.txt
Created June 26, 2025 18:58
MA - gcp-additional_logs.txt
From e08f474a178048c0f245f5b4882ff09b9e4c062a Mon Sep 17 00:00:00 2001
From: kalyanr <kalyan.ben10@live.com>
Date: Fri, 27 Jun 2025 00:25:23 +0530
Subject: [PATCH] add additional logging
---
airflow/providers/google/cloud/triggers/bigquery.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/airflow/providers/google/cloud/triggers/bigquery.py b/airflow/providers/google/cloud/triggers/bigquery.py
@rawwar
rawwar / devcontainer.json
Last active September 30, 2025 15:25
Apache Airflow Github Codespaces devcontainer config
{
"name": "Apache Airflow - Github Codespaces",
"image": "ubuntu:22.04",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": false
}
},
"postCreateCommand": "curl -LsSf https://astral.sh/uv/install.sh | sh && echo 'export PATH=\"/root/.cargo/bin:$PATH\"' >> ~/.bashrc && apt-get update && cd /workspaces/airflow && uv venv .venv -p 3.11 && source .venv/bin/activate && uv tool install prek && prek install -f && prek install -t pre-push && uv tool install -e ./dev/breeze && mkdir -p files/airflow-breeze-config && echo 'AIRFLOW__CORE__SIMPLE_AUTH_MANAGER_ALL_ADMINS=True' > files/airflow-breeze-config/environment_variables.env && echo 'AIRFLOW__API__EXPOSE_CONFIG=True' >> files/airflow-breeze-config/environment_variables.env",