Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav Shah initcron

View GitHub Profile
package:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
test:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
job: [unit-test, sca, sbom]
name: Run ${{ matrix.job }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Compile sysfoo app
run: mvn compile
name: CI Pipeline
on:
push:
branches:
- main
pull_request:
jobs:
build:
@initcron
initcron / sysfoo_ci.yml
Last active May 22, 2025 02:48
Complete CI Pipeline for Sysfoo App
name: CI Pipeline
on:
push:
branches:
- main
pull_request:
jobs:
build:
---
apiVersion: "autoscaling.k8s.io/v1"
kind: VerticalPodAutoscaler
metadata:
name: model
labels:
role: model
spec:
targetRef:
apiVersion: "apps/v1"
@initcron
initcron / fastapi-scaledobject.yaml
Created May 16, 2025 09:35
KEDA Autoscaler with Latency and CPU Utilization
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: fastapi-latency-autoscaler
namespace: default
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: model # update to your actual deployment name
name: Streamlit CI
on:
push:
paths:
- 'streamlit_app/**'
workflow_dispatch:
jobs:
build-and-push:
@initcron
initcron / mlops-pipeline.yml
Created May 15, 2025 04:00
Simplified MLOps Pipeline
# .github/workflows/mlops-pipeline.yml
name: MLOps Pipeline
on:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]
@initcron
initcron / model_config.json
Created May 14, 2025 06:22
Sample Model Config with XGBoost
model:
best_model: GradientBoosting
feature_sets:
rfe:
- '0'
- '1'
- '2'
- '3'
- '4'
- '5'