Skip to content

Instantly share code, notes, and snippets.

View misskecupbung's full-sized avatar
💤
Thinking ...

Ananda Dwi Ae misskecupbung

💤
Thinking ...
View GitHub Profile

Deploy a Simple MLOps Application to Kubernetes

Requirements

System Requirements

  1. macOS, Linux, or Windows (with WSL2 recommended for Windows)

Software Requirements

  1. Python 3.8+. For model training and serving (FastAPI)
  2. pip. For installing Python packages
  3. Docker. For building and pushing container images
@misskecupbung
misskecupbung / Getting Started with Gemini API on Vertex AI.md
Last active May 16, 2025 12:25
Getting Started with Gemini API on Vertex AI

Getting Started with Gemini API on Vertex AI

1. Before you begin

  1. Make sure you have a Google Cloud project and billing is enabled.

  2. Configure your environment and project

PROJECT_ID=$(gcloud config get-value project)
@misskecupbung
misskecupbung / Deploying a FastAPI Gemini Chatbot with Memory to Cloud Run.md
Last active May 15, 2025 12:23
Deploying a FastAPI Gemini Chatbot with Memory to Cloud Run

Deploying a FastAPI Gemini Chatbot with Memory to Cloud Run

Setup and Requirements

  1. Make sure you have a Google Cloud project and billing is enabled.

  2. Set your PROJECT_ID environment variable:

export PROJECT_ID=<YOUR_PROJECT_ID>
@misskecupbung
misskecupbung / Leveraging AlloyDB and Vertex AI for an LLM and RAG Based Chat Application.md
Last active May 12, 2025 01:34
Leveraging AlloyDB and Vertex AI for an LLM and RAG Based Chat Application

Leveraging AlloyDB and Vertex AI for an LLM and RAG Based Chat Application

Task 1. Initialize the database environment

Before you begin

  1. Make sure you have a Google Cloud project and billing is enabled.

  2. Set your PROJECT_ID environment variable:

from flask import Flask, render_template_string

app = Flask(__name__)

# HTML template string with the provided Dialogflow Messenger code

html_template = """

<!DOCTYPE html>

Automating AI Infrastructure on GCP with Infrastructure as Code

  1. Open Cloud Shell
  2. Enable the required APIs
gcloud services enable compute.googleapis.com \
                         iap.googleapis.com \
                         aiplatform.googleapis.com \
                         notebooks.googleapis.com \
@misskecupbung
misskecupbung / DevFest Bali 2024 - Cloud Run.md
Last active December 8, 2024 06:42
DevFest Bali 2024 - Cloud Run.md

Step 1 Initialize a Spring Boot App

Generate a new Spring Boot app with Spring Initializr.

curl https://start.spring.io/starter.tgz \
-d type=maven-project \
-d language=java \
-d dependencies=web \
-d baseDir=maven-cloud-run | tar -xzvf -
cd maven-cloud-run/
@misskecupbung
misskecupbung / nfw_amazon_eks.md
Last active May 3, 2024 02:08
AWS Network Firewall + Multi-Cluster Amazon EKS

AWS Network Firewall + Multi Cluster Amazon EKS

VPC

  • Go to https://console.aws.amazon.com/ .
  • In a search bar > VPC
  • Go to Your VPC > Create VPC
  • Fill the appropriate values such as :
    • Name
    • IPv4 CIDR
  • Number of Availability Zones (AZs)
@misskecupbung
misskecupbung / IEProxy.ps1
Created December 11, 2023 16:23 — forked from kkbruce/IEProxy.ps1
Get-Set-Remove IE Proxy Settings by PowerShell
# Get IE Proxy Settings
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
# Set IE Proxy Settings
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -value 1
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer -value [IPorDomain:Port]
# Remove IE Proxy Setings
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -value 0
Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer