Skip to content

Instantly share code, notes, and snippets.

View aallam's full-sized avatar

Mouaad Aallam aallam

View GitHub Profile
@aallam
aallam / microgpt.py
Created February 22, 2026 10:34 — 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
@aallam
aallam / dashboard-user.yaml
Last active February 21, 2024 13:06
kubernetes-dashboard-admin-user
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-user
@aallam
aallam / metrics-server-insecure-tls.yaml
Last active January 21, 2024 19:00
metrics server for local cluster (KinD)
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
k8s-app: metrics-server
name: metrics-server
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Processing 'classes.dex'...
Opened 'classes.dex', DEX version '035'
Class #0 -
Class descriptor : 'LJava8$Logger-CC;'
Access flags : 0x1011 (PUBLIC FINAL SYNTHETIC)
Superclass : 'Ljava/lang/Object;'
Interfaces -
Static fields -
Instance fields -
Direct methods -