Skip to content

Instantly share code, notes, and snippets.

View Daethyra's full-sized avatar
🤍
Vibing<3

Daethyra

🤍
Vibing<3
  • Cyberspace
  • 00:25 (UTC -07:00)
View GitHub Profile
@Daethyra
Daethyra / draw_bounding_box.py
Last active February 24, 2025 04:23
Opens an image and allows the user to draw a red bounding box on it.
"""
Filename: draw_bounding_box.py
Description: Opens an image and allows the user to draw a red bounding box on it.
Author: Daethyra Carino
Date: 2025-02-23
Version: 0.1.0
License: MIT
Requires:
- package: opencv-python
@Daethyra
Daethyra / microgpt.py
Created March 11, 2026 20:58 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@Daethyra
Daethyra / Minecraft-Forge-1201-47420-SetUp.sh
Created May 11, 2026 00:01
Automatically install the Forge version of Minecraft & its dependencies, then create a service to auto-run Minecraft on startup on an Amazon EC2 instance.
#!/bin/bash
set -e # Exit immediately if any command fails
# configuration
FORGE_VERSION="1.20.1-47.4.20"
INSTALLER_URL="https://maven.minecraftforge.net/net/minecraftforge/forge/${FORGE_VERSION}/forge-${FORGE_VERSION}-installer.jar"
SERVER_DIR="/opt/minecraft/server"
MEMORY_ARGS="-Xmx12G -Xms12G" # Adjust if needed
# install java 21