A prompt to boost your lazy "do this" prompts. Install with one of the buttons below.
| """ | |
| ▄▀█ ▀█▀ ▀█▀ █▀█ █▀▀ █▀█ ▀█▀ ⚛️ | |
| █▀█ █ █ █▄█ █▄█ █▀▀ █ | |
| And God said, "Let there be quarks," and the quarks were very small. And God said, "Let there be MicroGPT," and it was even smaller. | |
| """ | |
| import os,math,random as R | |
| if not os.path.exists("input.txt"):import urllib.request;urllib.request.urlretrieve("https://raw.githubusercontent.com/karpathy/makemore/988aa59/names.txt","input.txt") | |
| D=[s.strip()for s in open("input.txt")if s.strip()];R.shuffle(D);C=sorted(set("".join(D)));B=len(C);V=B+1 | |
| class X: | |
| def __init__(s,d,c=(),l=()):s.d,s.g,s.c,s.l=d,0,c,l |
| # Create a new worktree and branch from within current git directory. | |
| ga() { | |
| if [[ -z "$1" ]]; then | |
| echo "Usage: ga [branch name]" | |
| exit 1 | |
| fi | |
| local branch="$1" | |
| local base="$(basename "$PWD")" | |
| local path="../${base}--${branch}" |
| ARG CUDA_VERSION=12.8.1 | |
| FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu20.04 AS vllm_gpt-oss | |
| ARG CUDA_VERSION | |
| ARG PYTHON_VERSION=3.12 | |
| ### --- Stuff from default Dockerfile ---- ### | |
| # The PyPA get-pip.py script is a self contained script+zip file, that provides | |
| # both the installer script and the pip base85-encoded zip archive. This allows | |
| # bootstrapping pip in environment where a dsitribution package does not exist. |
| #!/usr/bin/python3 | |
| # Script to help migrate Pylint config to Ruff. | |
| # | |
| # It lists enabled Pylint rules, Pylint rules that are enabled but already covered by Ruff rules, | |
| # and the Ruff rules not enabled yet that match enabled Pylint rules. | |
| # | |
| # Largely based on https://github.com/astral-sh/ruff/issues/970 | |
| import re | |
| import subprocess | |
| from collections.abc import Mapping, Sequence |
| #!/bin/bash | |
| TEST_RUN_FILE="$HOME/Downloads/alo.txt" | |
| TEST_RUN= | |
| round() { | |
| printf '%.0f' "$1" | |
| } | |
| get_stats() { |
Install android-tools if you haven't already:
pkg update ; pkg upgrade
pkg install android-tools
adb pair 127.0.0.1:port
| # Save the transcripts using the "Save Page WE" Chrome Extension | |
| # This script was generated by ChatGPT | |
| import sys | |
| from bs4 import BeautifulSoup | |
| # Check if a file was provided as a command line argument | |
| if len(sys.argv) < 2: | |
| print("Please provide an HTML file as a command line argument.") | |
| sys.exit(1) |
How to break up a monorepo using git subtree:
$ NEW_REPO_PATH=
$ OLD_REPO_PATH=
This is a guide that I put together which is primarily aimed at Steam Deck enthusiasts and developers. I will be updating this over time as I think of more things to put in here.