Skip to content

Instantly share code, notes, and snippets.

View williamcaban's full-sized avatar

William Caban Babilonia williamcaban

View GitHub Profile
@williamcaban
williamcaban / minio.yaml
Last active November 8, 2025 01:06
Deploying Minio Community Edition container in OpenShift
# kubectl create secret generic minio-secret \
# --from-literal=rootUser=your-username \
# --from-literal=rootPassword=your-secure-password \
# -o yaml --dry-run=client > minio-secret.yaml
#
# kubectl apply -f minio-secret.yaml -f minio.yaml
---
apiVersion: v1
kind: Secret
metadata:
@williamcaban
williamcaban / Simulating Bare Metal with VirtualBMC.md
Last active November 7, 2025 09:08
Bare Metal IPMI for VMs with Virtual BMC

Simulate Bare-Metal IPMI for VMs in RHEL8 Libvirt

  • Install the Virtual BMC package in the machine to use as the vBMC server. Note1: When using OpenStack repos the python3-virtualbmc RPM might be available. These instrucctions do not use that package.
    pip3 install virtualbmc
    
    • The vBMC server can be running in any machine. When using a remote libvirt server it is recommended to have passwordless authentication from the vBMC server to the libvirt machines.
    • For this document the vBMC Server export vBMCServerIP=192.168.1.13

DOCUMENT 1: CITY DEMOGRAPHIC REPORT

Millbrook Municipal Planning Department
Publication Date: March 15, 2024
Report ID: MPD-2024-003

Executive Summary

Millbrook, incorporated in 1892, serves as a diverse mid-sized city of 47,832 residents spanning 23.4 square miles. The municipality encompasses four distinct neighborhoods: Historic Downtown, Riverside District, University Heights, and New Millbrook. Population density averages 2,043 residents per square mile, with significant demographic variation across districts.

Demographic Breakdown by Neighborhood

Historic Downtown (Population: 12,847)

@williamcaban
williamcaban / NetFlow or SFlow with OpenShift 4.md
Created May 2, 2020 15:24
Simple procedure to enable NetFlow or SFlow on OpenShift 4

Netflow or sFlow on OpenShift 4 w/OVN Kubernetes

  • Identify the ovs-node of the Node hosting the Pods to monitor

    # oc get pods --selector="app=ovs-node" -o wide
    NAME             READY   STATUS    RESTARTS   AGE   IP              NODE       NOMINATED NODE   READINESS GATES
    ovs-node-4hldj   1/1     Running   0          47h   198.18.100.16   worker-1   <none>           <none>
    

ovs-node-bd9ln 1/1 Running 0 47h 198.18.100.12 master-1

@williamcaban
williamcaban / README.md
Created August 13, 2025 02:42
Dummy implementation of OpenAI Responses API endpoints on Kubernetes Gateway API

Kubernetes Gateway API implementation that covers the OpenAI Responses API endpoints based on the current documentation.

Core Response Operations:

  • POST /v1/responses - Create new responses with input, model, and tools
  • GET /v1/responses/{id} - Retrieve response by ID
  • GET /v1/responses/{id} (with Accept: text/event-stream) - Stream responses in real-time
  • POST /v1/responses/{id} - Continue/extend existing responses
  • DELETE /v1/responses/{id} - Delete responses
@williamcaban
williamcaban / RAGAS Evals with KFP Setup Guide.md
Last active July 26, 2025 17:07
RAGAS evaluation using Kubeflow Pipelines

RAGAS Evaluation with Kubeflow Pipelines - Setup Guide

About

The ragas_pipeline.py is a Kubeflow Pipeline (KFP) definition on how to run RAGAS evaluations using KFP.

This pipeline is designed as an example pipeline with charactersitics expected for production environments like proper resource management, monitoring capabilities, and comprehensive documentation. You should adjust the components based on your specific RAG evaluation needs and infrastructure setup.

Key Components:

Static routes in MacOS

  • Find the name of the network adapters
# List network interface name
networksetup -listallnetworkservices

An asterisk (*) denotes that a network service is disabled.
USB 10/100/1000 LAN
@williamcaban
williamcaban / convert_1password_to_apply.py
Created April 13, 2025 23:54
Script to convert 1Password8 export to CSV compatible with Apple Password
import csv
import os
def convert_1password_to_apple(input_file, output_file):
"""
Convert a 1Password CSV export file to a format compatible with Apple Passwords.
Apple Passwords import format requires the following columns:
- Title
- URL
#!/bin/bash
set -euoE pipefail
# Redfish commands related to Virtual Media.
# Redfish doc reference: https://www.supermicro.com/manuals/other/RedfishRefGuide.pdf
export BMC_ADDRESS=''
export ISO_IMAGE=http://192.168.117.9:8080/ocp4-rwn-1-small.iso
export username_password='Administrator:superuser'

Using Sushy Tools with Libvirt

  • Add linux user to libvirt group
sudo usermod -a -G libvirt <your-user>
sudo -y install libvirt-devel gcc python3-devel
  • Login and validate user can execute virsh commands