Skip to content

Instantly share code, notes, and snippets.

View nenadg's full-sized avatar
🍺
out

Nenad Golubovic nenadg

🍺
out
View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active September 16, 2026 05:29
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
@allenyllee
allenyllee / medium.user.js
Last active August 9, 2026 15:50 — forked from mathix420/medium.user.js
Bypass Medium Paywall - Working at Jan 2026 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass (Manual Button + Badge + Fallback + Offline)
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 3.5
// @inject-into content
@GGPrompts
GGPrompts / claude-code-mcp-cli-experimental.md
Created December 9, 2025 15:18
Claude Code MCP-CLI Experimental Mode - 80% Token Savings

Claude Code MCP-CLI Experimental Mode

Announced December 8, 2025 by Anthropic engineer @catherinewu

The Problem

MCP servers load full tool definitions into the system prompt at session start. Power users with multiple MCPs (supabase, tabz, shadcn, docker-mcp, etc.) can burn 40-50k tokens before typing anything.

The Solution

@jlia0
jlia0 / agent loop
Last active September 8, 2026 23:32
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active August 27, 2026 16:18
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@Markus-de-Koster
Markus-de-Koster / Teams_PWA_links.md
Last active November 26, 2025 16:23
Open Teams links in edge PWA, for all other links, use firefox (Linux Ubuntu)
@Artefact2
Artefact2 / README.md
Last active August 31, 2026 07:42
GGUF quantizations overview
@adtac
adtac / Dockerfile
Last active December 26, 2025 00:20
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@c0m4r
c0m4r / alpine_hetzner_arm_ipv6.md
Last active May 23, 2026 11:11
Alpine Linux installation on Hetzner Cloud VPS (Arm64/IPv6-only)

Alpine Linux installation on Hetzner Cloud VPS

(Arm64/IPv6-only)

This guide describes how to install Alpine Linux on Hetzner Cloud VPS CAX ARM64 Servers with IPv6-only setup.

image

Table of contents:

@LovetheFrogs
LovetheFrogs / optimisations.md
Last active May 16, 2026 11:09
Battery optimisation for laptops with dedicated Nvidia GPU running Ubuntu

Optimisations for battery life in Ubuntu

Introduction

Due to poor Nvidia driver handling and other issues in Ubuntu, laptop users usually experience a drop in battery life when compared to Windows. Here lie a series of optimisations I used to take my laptop's battery's rate of discharge from 40W while idling to 10-15W on average (managing to get ~8W when reading or really low demanding tasks).

Installing powertop

In order to keep track of battery usage and power consumption, powertop will be used. You can note down the discharge rate of the battery, altough this number may be way off sometimes (heard examples of having ~500mW) if not enough data has been obtained.