Skip to content

Instantly share code, notes, and snippets.

View erhangundogan's full-sized avatar
👋

Erhan Gundogan erhangundogan

👋
View GitHub Profile
@erhangundogan
erhangundogan / CLAUDE.md
Created June 4, 2026 18:48
Karpathy's CLAUDE.md
  1. Ask, dont assume. If something's unclear, ask before writing a line and no silent guesses about intent, architecture, or requirements.

  2. Simplest solution first and implement the minimum thing that works. No abstractions you didn't request.

  3. Dont touch unrelated code and if a file isnt part of the current task, leave it.

  4. Flag uncertainty explicitly or if you're not confident, say so before proceeding as confidence without certainty causes more damage than admitting a gap.

@erhangundogan
erhangundogan / trips.md
Last active July 16, 2026 10:40
My Trips

North America

  • East coast (NY, Washington)
  • Florida (Miami)
  • Midwest (Chicago, Mount Rushmore)
  • Nevada (Las Vegas)
  • Southeastern (New Orleans)
  • West coast (Los Angeles, San Francisco)

Latin America / Caribbean

  • Bahamas
@erhangundogan
erhangundogan / llm-model-length.md
Created September 15, 2025 15:45
LLM model length calculation

LLM memory usage = model weights + optimizer/kv-cache + activations for max tokens.

With your 8B model (~16–18 GB for FP16), asking for 10,500 tokens will likely exceed 19.5 GB, especially with --gpu-memory-utilization=0.99.

Calculation example:

  • Your model: 8B (~16 GB FP16 weights)
  • Max tokens: 10,500
  • KV-cache VRAM ≈ 10,500 × 0.0007 GB ≈ 7.35 GB additional VRAM
  • Total VRAM needed ≈ 16 GB + 7.35 GB ≈ 23.35 GB → > 19.5 GB, hence the OOM
@erhangundogan
erhangundogan / rust-abstractions.md
Created September 15, 2025 07:45
Rust Abstractions

Option<T>

Represents “something or nothing”. Optional function arguments, nullable values.

fn maybe_double(x: Option<i32>) -> Option<i32> {
    x.map(|v| v * 2)
}
assert_eq!(maybe_double(Some(3)), Some(6));
assert_eq!(maybe_double(None), None);
@erhangundogan
erhangundogan / rust-fundamentals.md
Created September 15, 2025 07:12
Rust Fundamentals

The Rust “Rule‑Book” – 7 Fundamental Principles Everyone Should Know

Why?
Rust is built around a handful of core rules that make it safe, fast, and concurrency‑friendly.
Mastering these 7 principles is enough to write idiomatic, error‑free Rust and to understand why the compiler sometimes complains.

# Principle What it means (in plain English)
1 Ownership & Single‑Owner Every value has exactly one owner. When that owner goes out of scope, the value is dropped (freed).
2 Borrowing & References You can borrow a value instead of moving it. A borrow is either immutable (&amp;T) or mutable (&amp;mut T).

Germany vs. UK – Entrepreneur Decision Matrix

Decision Matrix Table

Factor Germany UK Notes
Company Formation Speed 2 5 UK can be incorporated online in <24h; Germany often takes weeks.
Min. Capital Requirement 2 5 Germany GmbH: €25k (min €12.5k upfront); UK Ltd: £1.
Corporate Tax Burden 3 4 Germany ~30%, UK 25% (small profits 19%).
Stock Option Friendliness 2 5 UK EMI scheme very favorable; Germany improving but still complex.
@erhangundogan
erhangundogan / ai-integrations.md
Last active August 3, 2025 10:33
AI Integrations

AI Integrations – Company List

  • AI21 Labs: Israeli AI research firm built for enterprise NLP, creators of Jurassic‑1/2 models and the Wordtune writing assistant. https://www.ai21.com/
  • AionLabs: AI‑tooling startup (limited public data; possibly involved in developer integrations). Website not found.
  • Alibaba Cloud Intelligence: Alibaba Cloud’s AI‑driven cloud infrastructure and managed AI services. https://www.alibabacloud.com/
  • Amazon Bedrock: AWS-managed foundation model service offering models from Anthropic, AI21, Meta, and Stability AI, plus tools for fine‑tuning and deployment. https://aws.amazon.com/bedrock/
  • Anthropic: AI safety–focused LLM provider best known for Claude models. https://www.anthropic.com/
  • AtlasCloud: (No public company profile available.)
  • Atoma: (No official public profile found.)
  • Avian.io: (Insufficient public-facing documentation available.)
.editorconfig
.env
.lintstagedrc
.nvmrc
.yarnrc.yml
.gitignore
.prettierrc
components.json
eslint.config.mjs
nodemon.config.json
@erhangundogan
erhangundogan / incus.md
Last active August 13, 2025 21:02
Incus
@erhangundogan
erhangundogan / crond.md
Last active July 5, 2025 16:46
Alpine CronJobs

crond/crontabs

setup

# change root for other users
$ vi /etc/crontabs/root