Skip to content

Instantly share code, notes, and snippets.

View green-s's full-sized avatar

Sam Green green-s

View GitHub Profile
@Pytness
Pytness / copilot_proxy.py
Created February 2, 2023 09:33
A proxy for copilot labs. pip install rich
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
import json
from http.server import BaseHTTPRequestHandler, HTTPServer
import requests
@AmericanPresidentJimmyCarter
AmericanPresidentJimmyCarter / README.md
Last active August 19, 2024 07:06
Putting your waifu into Flux with LoRA: welcome to losercity

Putting your waifu into Flux with LoRA: welcome to losercity

First, here is my SimpleTuner LoRA config, so you can get started with it. I used an 80GB A100 (thanks @bghira!).

LoRA repository:

@jamiephan
jamiephan / README.md
Last active September 8, 2026 15:09
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@jack3898
jack3898 / GUIDE.md
Last active June 3, 2026 08:27
Framework Desktop mainboard small & compact homelab/NAS parts

Framework Desktop mainboard homelab / NAS component list

This is a little Gist I made to help others looking into buying a Framework mainboard for a homelab / NAS purpose. It's a mix of research I have undertaken to look for parts to work around the limited expansion capabilities of the Framework Desktop mainboard.

Bear in mind, this guide does not cheap out! It ensures that you get the best performance and reliability for your homelab or NAS setup for personal use only and maximises the potential of the Framework Desktop mainboard given its limitations. You may need to expand on my research to find the best components for your specific use case if your budget is more limiting.

Framework Desktop mainboard overview

While the Framework desktop mainboard is a beast in terms of its compute performance, and up to 128GB of unified memory, it only has two M.2 slots for storage expansion. This can be a limiting factor for users looking to build a high-capacity NAS or homelab environment.

@buzz
buzz / convert.py
Last active July 25, 2026 14:33
Transplant MTP block from one GGUF file into another
#!/usr/bin/env python3
"""
Transplant extra tensors (e.g. MTP layers) from one GGUF file into another,
producing a mixed-quantization GGUF.
Note: Tested with ik_llama.cpp GGUF Python module.
Usage:
python convert.py <target.gguf> <source.gguf> <output.gguf>