Skip to content

Instantly share code, notes, and snippets.

View jun92's full-sized avatar

Junsu Jeon jun92

View GitHub Profile
@jun92
jun92 / microgpt.py
Created February 14, 2026 13:11 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference 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
@jun92
jun92 / Easy outliner docker compose
Last active January 23, 2026 13:13
practical outliner docker compose yml file
services:
outline:
image: docker.io/outlinewiki/outline:latest
ports:
- "80:3000"
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
redis:
@jun92
jun92 / gist:e5510ff770e99048d4d16928c7e2e94f
Created June 4, 2024 13:58
Sample dockerfile for aria2c
FROM alpine:latest
RUN apk add aria2
WORKDIR /app
EXPOSE 8210
ENV CONCURRENT_COUNT="2" \
RPC_SECRET="1234"
COPY ./aria-run.sh .
CMD ["sh", "/app/aria-run.sh"]
@jun92
jun92 / duelappenderexample.xml
Created October 27, 2017 07:16
log4net duel appender example
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>