Skip to content

Instantly share code, notes, and snippets.

View nenadg's full-sized avatar
🍺
out

Nenad Golubovic nenadg

🍺
out
View GitHub Profile
"""
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 July 13, 2026 06:10 — 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
@jlia0
jlia0 / agent loop
Last active July 20, 2026 00:03
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 May 29, 2026 06:22
"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)
@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.

@bradtraversy
bradtraversy / tailwind-webpack-setup.md
Last active January 16, 2026 17:31
Setup Webpack with Tailwind CSS

Webpack & Tailwind CSS Setup

Create your package.json

npm init -y

Create your src folder

Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.

@bewarusman
bewarusman / one-file.js
Last active March 31, 2023 07:47
Minimal Express.js Server
/** STEP 1: Packages */
// For a minimal node.js server we need to install and import the bellow packages
const express = require("express"); // fast, open-source node.js server
const cors = require("cors"); // enables CORS (cross-origin resource sharing)
const bodyParser = require("body-parser"); // parses json body into javascript object
const morgan = require("morgan"); // log http requests
const mongoose = require("mongoose"); // mongodb orm
/** STEP 2: DATABASE */