Skip to content

Instantly share code, notes, and snippets.

View sanjaygeeky's full-sized avatar

Sanjay Mahajan sanjaygeeky

View GitHub Profile
@sanjaygeeky
sanjaygeeky / mlops-pipeline.yaml
Created July 14, 2025 10:05 — forked from initcron/mlops-pipeline.yaml
MLOps Pipeline for House Price Predictor
# .github/workflows/mlops-pipeline.yml
name: MLOps Pipeline
on:
workflow_dispatch:
inputs:
run_all:
description: 'Run all jobs'
required: false
default: 'true'
@sanjaygeeky
sanjaygeeky / jooq.gradle
Created October 24, 2024 11:18 — forked from schoenobates/jooq.gradle
JOOQ Generator Gradle
import org.jooq.util.jaxb.*
import org.jooq.util.*
ext.db = [
url: 'jdbc:postgresql://host/db',
user: 'user',
password: 'user',
schema: 'schema'
]
@sanjaygeeky
sanjaygeeky / gp-autocomplete.js
Created October 24, 2024 11:18 — forked from schoenobates/gp-autocomplete.js
Fix for Google AutoComplete Places Javascript API on iOS
var autoElm = document.getElementById('elm-name');
autocomplete = new google.maps.places.Autocomplete(autoElm);
google.maps.event.addListener(autocomplete, 'place_changed', function () {
var place = autocomplete.getPlace();
if (!place.geometry) {
return;
}
instance.setCenter(place.geometry.location);
instance.setZoom(19);
@sanjaygeeky
sanjaygeeky / rabbitmq.sh
Created January 18, 2022 15:55 — forked from misablaha/rabbitmq.sh
Install RabbitMQ on Amazon Linux 2
sudo yum update -y
sudo yum install htop -y
# Install Erlang
sudo yum install https://github.com/rabbitmq/erlang-rpm/releases/download/v21.3.4/erlang-21.3.4-1.el7.x86_64.rpm -y
# Install RabbitMQ
sudo yum install https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.14/rabbitmq-server-3.7.14-1.el7.noarch.rpm -y
# Allow remote connections
@sanjaygeeky
sanjaygeeky / docker-build-publish-Jenkinsfile
Created December 29, 2020 19:18 — forked from initcron/docker-build-publish-Jenkinsfile
Docker Build and Publish Script Snippet for Jenkinsfile
docker.withRegistry('https://index.docker.io/v1/', 'dockerlogin') {
def dockerImage = docker.build("xxxxxx/xxxxx:v${env.BUILD_ID}", "./")
dockerImage.push()
dockerImage.push("latest")
}
version: "3"
networks:
nw01:
driver: bridge
volumes:
db-data:
services:
version: "3"
networks:
nw01:
driver: overlay
volumes:
db-data:
services:
@sanjaygeeky
sanjaygeeky / docker_build_dockerfile_facebooc.md
Created September 20, 2020 14:35 — forked from initcron/docker_build_dockerfile_facebooc.md
Instruction to build docker image for facebooc using Dockerfile

Building image with Dockerfile

Change into facebooc directory which containts the source code. This assumes you have already cloned the repo. If not, clone it from https://github.com/schoolofdevops/facebooc

cd facebooc 
ls
@sanjaygeeky
sanjaygeeky / docker-compose-jenkins.yaml
Created September 20, 2020 14:33 — forked from initcron/docker-compose-jenkins.yaml
Docker Compose spec to launch Jenkins along with dind (docker host) as per the official documentation at https://www.jenkins.io/doc/book/installing/#installation-platforms
version: "3.8"
networks:
jenkins:
driver: bridge
volumes:
jenkins-docker-certs:
jenkins-data:
@sanjaygeeky
sanjaygeeky / swarm_tutorial_v3.md
Created September 20, 2020 13:57 — forked from initcron/swarm_tutorial_v3.md
Docker Swarm with V3 stack specifications and stack deploy

Lab : Orchestrating and deploying app in Production with SWARM

Deploying Application Stack with Swarm Mode and Stack version "3" specification

Launch a Visualizer on Master (SWARM Manager)

docker run -itd -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock schoolofdevops/visualizer