Skip to content

Instantly share code, notes, and snippets.

View kevinmingtarja's full-sized avatar
🚀

Kevin Mingtarja kevinmingtarja

🚀
View GitHub Profile
@kevinmingtarja
kevinmingtarja / prometheus.sky.yaml
Created August 11, 2025 17:58
SkyPilot YAML that installs Prometheus and node_exporter for monitoring the remote cluster metrics
name: prometheus
resources:
cpus: 1+
setup: |
set -e
PROMETHEUS_VERSION="3.5.0"
NODE_EXPORTER_VERSION="1.9.1"
@kevinmingtarja
kevinmingtarja / docker-compose.yaml
Created September 26, 2025 05:44
Docker compose file for setting up local oauth2 proxy with redis store
version: '3.8'
services:
# Redis for OAuth2 Proxy session storage
oauth2-redis:
image: redis:7-alpine
container_name: skypilot-oauth2-redis
ports:
- "6379:6379"
restart: unless-stopped
use sqlx::sqlite::SqlitePool;
use std::env;
use serde_pickle::Value;
#[derive(sqlx::FromRow)]
struct Cluster {
name: String,
launched_at: Option<i64>,
handle: Option<Vec<u8>>,
last_use: Option<String>,
@kevinmingtarja
kevinmingtarja / ray_job_codegen.py
Created November 16, 2025 07:40
Generated code from RayCodegen (skypilot 0.10.5)
import functools
import getpass
import hashlib
import io
import os
import pathlib
import selectors
import shlex
import subprocess
import sys
import functools
import getpass
import hashlib
import io
import copy
import colorama
import multiprocessing
import os
import pathlib
import selectors