Skip to content

Instantly share code, notes, and snippets.

View rsrini7's full-sized avatar
๐Ÿ˜ƒ
Happy

Srinivasan Ragothaman rsrini7

๐Ÿ˜ƒ
Happy
View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active February 15, 2026 09:34
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
@rsrini7
rsrini7 / md2html.ps1
Last active February 1, 2026 02:15
md2html using pandoc
#Requires -Version 5.1
<#
.SYNOPSIS
Converts a directory of Markdown files into a styled HTML documentation site with a navigation menu.
.DESCRIPTION
This script automates the process of generating a simple, clean HTML documentation website from a collection of Markdown (.md) files.
It uses Pandoc to perform the conversion and supports Mermaid.js for diagrams.
Features:
@jlia0
jlia0 / agent loop
Last active February 14, 2026 22:22
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
git clone https://github.com/OpenDevin/OpenDevin.git
cd OpenDevin
conda create -n od python=3.10
conda activate od
docker ps
(optional) install docker if not already installed
docker pull ghcr.io/opendevin/sandbox
export OPENAI_API_KEY={your key}
(optional I had to install rust) curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs](https://sh.rustup.rs/) | sh
(optional) restart terminal
# Source: https://gist.github.com/f744313878391196ae9aea5b9dc17071
##########################################################################
# Container (Docker) Images Without Dockerfile With Buildpacks and kpack #
# https://youtu.be/fbSoKu8NGSU #
##########################################################################
# Additional Info:
# - Cloud Native Buildpacks: https://buildpacks.io
# - Paketo Buildpacks: https://paketo.io
@gustavohenrique
gustavohenrique / lxd-snippets.md
Last active July 18, 2024 14:05
Basic commands to run LXD containers

install

sudo snap install lxd && lxd init

Init

lxd init --preseed <<EOF
@gustavohenrique
gustavohenrique / archlinux.md
Last active April 14, 2023 23:23
Arch Linux installation and setup

Installation

loadkeys us-acentos

Network

Wireless connection

@ShawnHymel
ShawnHymel / tflite_sinewave_training.ipynb
Created March 18, 2020 17:42
TensorFlow Lite Sinewave Regression Training and Conversion
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bantya
bantya / setup-mysql-8.md
Created October 16, 2019 11:56
Setup MySQL 8
  1. Install MySQL-8.0 from [here].

  2. Open Terminal and go to /MySQL-8.0/bin directory.

  3. Run mysqld --initialize.

    This will initialize the mysql data directory at location specified in /MySQL-8.0/my.ini file; if not, it will initialize the data directory inside /MySQL-8.0/data.

  4. Run mysqld --console command.

@thomasdarimont
thomasdarimont / jlink-jdk11-with-jcmd-tools.md
Last active May 4, 2024 07:08
PoC for building a custom OpenJDK 12 JDK (47MB) with JLink that can run Keycloak 6.0.1