Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav Shah initcron

View GitHub Profile
@initcron
initcron / awx.md
Last active September 15, 2025 17:56
mkdir awx-op
cd awx-op

File: kind.config

@initcron
initcron / apache2.conf
Created September 15, 2025 02:45
Sample apache conf on ubuntu at /etc/apache2/apache2.conf
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
@initcron
initcron / prod
Created September 14, 2025 23:46
environments/prod
[local]
localhost ansible_connection=local
[lb]
lb ansible_host=localhost ansible_port=2220 ansible_password=codespaces ansible_python_interpreter=/usr/bin/python3
[app]
app1 ansible_host=localhost ansible_port=2221 ansible_password=codespaces
app2 ansible_host=localhost ansible_port=2222 ansible_password=codespaces
apiVersion: apps/v1
kind: Deployment
metadata:
name: vote
labels:
role: vote
annotations:
kubernetes.io/change-cause: "image updated to v5"
spec:
minReadySeconds: 20
@initcron
initcron / mlops-pipeline.yaml
Created August 4, 2025 15:24
MLOps CI Pipeline
# .github/workflows/mlops-pipeline.yml
name: MLOps Pipeline
on:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]
@initcron
initcron / vote-deploy.yaml
Created July 16, 2025 04:14
Vote Deploymeny Manifests with Resources Configured
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: vote
name: vote
spec:
replicas: 2
selector:
name: Streamlit CI
on:
push:
paths:
- 'streamlit_app/**'
workflow_dispatch:
jobs:
build-and-push:
@initcron
initcron / model_config.yaml
Created June 23, 2025 10:35
Model Config for House Price Prediction
model:
best_model: GradientBoosting
feature_sets:
rfe:
- '0'
- '1'
- '2'
- '3'
- '4'
- '5'
# Use python alpine base image
FROM python:3.11-alpine3.17
# Set working directory
WORKDIR /app
# Copy source code to container
COPY . /app
# Install dependencies