Skip to content

Instantly share code, notes, and snippets.

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

Daethyra

🤍
Vibing<3
  • Cyberspace
  • 21:20 (UTC -07:00)
View GitHub Profile
@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
@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 / 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 / facial_transformation.py
Created February 24, 2025 04:17
Uses a webcam to help the user center their face and take a photo.
"""
Filename: facial_transformation.py
Description: Uses a webcam to help the user center their face and take a photo.
Author: Daethyra Carino
Date: 2025-02-23
Version: 0.1.0
License: MIT
Requires:
- package: opencv-python
@Daethyra
Daethyra / matrix_rain.html
Created January 27, 2025 05:38
A multilingual matrix rain visualizer.
<!DOCTYPE html>
<html>
<head>
<title>Matrix Rain</title>
<style>
body {
margin: 0;
overflow: hidden;
background: black;
}
@Daethyra
Daethyra / ngrok_config.yml
Created January 27, 2025 03:43
Starts an Ngrok HTTPS endpoint w/ OAuth
version: 3
agent:
authtoken:
api_key:
connect_timeout: 30s
console_ui: iftty
console_ui_color: black
heartbeat_interval: 1m
heartbeat_tolerance: 90s
# Set up the console colors - black background with dark green text for that Matrix feel
$host.UI.RawUI.BackgroundColor = 'Black' # Sets terminal background to black
$host.UI.RawUI.ForegroundColor = 'DarkGreen' # Sets text color to dark green
Clear-Host # Clears the terminal screen (like cls in CMD or clear in bash)
# Define the characters that can appear in our digital rain
# Includes numbers, letters, and some Japanese-looking characters for style
$chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZヲアウエオカキケコサシスセソタツテナニヌネハヒホマミムメモヤユラリワ'
# Get the width of the terminal window - we'll need this to know how many "rain streams" to create
@Daethyra
Daethyra / chugma_chatbot.py
Last active January 12, 2024 21:43
RAG Discord Chatbot
import os
import logging
import discord
from langchain_openai import OpenAI
from langchain.chains import LLMChain
from langchain_core.prompts import PromptTemplate
from langchain.schema import StrOutputParser
from langchain.memory import ConversationBufferWindowMemory
# Configure our logger
@Daethyra
Daethyra / nest_runs_within_tools.ipynb
Last active March 25, 2025 00:42
Group and trace nested calls via `run_manager`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Daethyra
Daethyra / chat_evaluation_single_turn.ipynb
Last active April 9, 2025 11:05
This walkthrough guides you in creating a dataset to evaluate chatbots within multi-turn conversations.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.