Skip to content

Instantly share code, notes, and snippets.

@abhishekmishragithub
abhishekmishragithub / peter_griffin_tts.py
Last active March 26, 2026 19:02
Peter Griffin voice clone doing a code review — Smallest AI TTS
# 1 - Create the voice clone here: https://app.smallest.ai/waves/voice-cloning or via api
# 2 - Copy the voice and use in the code
import os
from smallestai.waves import WavesClient
api_key: str = os.environ.get("SMALLEST_API_KEY", "")
client: WavesClient = WavesClient(api_key=api_key) # TODO: add error handling

I see a few people sharing incorrect details in the comments so I figured I'd echo some details.

'hyprctl output create headless'

This creates a headless monitor. You can verify this with:

'hyprctl monitors'
@Ayke
Ayke / cuda-wsl2-ubuntu.md
Last active April 9, 2026 09:39
Everything About CUDA in WSL2 Ubuntu

Prerequisites, i.e. the most important things

  1. Time of writing: Jan 18, 2023, updated on Sep 22, 2024. The following assumes that you're trying to install CUDA on WSL2 Ubuntu.

  2. Check support matrix first before you install any version of CUDA, because chances are the latest CUDA does not have cuDNN support yet, then you would have to re-install older version if you found out later.

    https://docs.nvidia.com/deeplearning/cudnn/support-matrix/index.html#cudnn-cuda-hardware-versions

    At the time of writing, the latest cuDNN version is 8.7 and it supports CUDA 11.8.

  3. Windows 10 must be build 20145 or later, or you should be on Windows 11.

@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active April 22, 2026 08:05
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@karpathy
karpathy / min-char-rnn.py
Last active April 30, 2026 07:42
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)