Skip to content

Instantly share code, notes, and snippets.

View devMinseok's full-sized avatar
πŸ•—
Every second counts

Minseok Kang devMinseok

πŸ•—
Every second counts
View GitHub Profile
@devMinseok
devMinseok / oci-freetier-a1-setup.sh
Last active September 18, 2026 20:26
OCI Always Free A1.Flex auto-setup: 4 OCPU / 24 GB ARM Ubuntu, 200 GB boot, capacity-shortage retry loop, idempotent re-runs, shape-upgrade workaround
#!/usr/bin/env bash
#
# ===========================================================================
# OCI Always Free A1.Flex automated setup script
# ===========================================================================
# - Provisions a VM.Standard.A1.Flex instance (4 OCPU / 24 GB RAM) and
# expands its boot volume to the full Always Free limit (200 GB).
# - Uses the well-known "small-first" trick: launch a 1 OCPU / 6 GB
# instance first (much higher chance of getting capacity), then update
# the shape-config up to 4 OCPU / 24 GB.
services:
# [μ„œλΉ„μŠ€ 1] λͺ¨λΈ μžλ™ λ‹€μš΄λ‘œλ”
model-downloader:
image: python:3.11-slim
volumes:
- ./models:/models
environment:
- HF_REPO=unsloth/GLM-4.7-Flash-GGUF
- HF_FILE=GLM-4.7-Flash-Q4_K_M.gguf
command: >
🌞 Morning 76 commits β–ˆβ–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 9.4%
πŸŒ† Daytime 234 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 29.1%
πŸŒƒ Evening 463 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 57.5%
πŸŒ™ Night 32 commits β–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 4.0%