Skip to content

Instantly share code, notes, and snippets.

View rlarson20's full-sized avatar

RJ Larson rlarson20

  • AI Trainer Contractor
  • NYC, New York
  • 04:05 (UTC -04:00)
View GitHub Profile
@vlaaad
vlaaad / _Defold_MCP.md
Last active January 31, 2026 05:05
Defold MCP server

Steps to try it out:

  1. Add mcp.editor_script to a Defold project
  2. Project -> Reload Editor Scripts
  3. It will print something like MCP running on http://localhost:50489/mcp — your port will be different
  4. Ensure that npx mcp-remote http://localhost:50489/mcp --transport http-only successfully runs in your terminal.
  5. Edit Claude desktop config to refer to the server (see claude_desktop_config.json for reference)
  6. Restart Claude and enjoy!
@umtksa
umtksa / Modelfile
Created June 21, 2025 14:39
ollama Modelfile for finetuned Qwen3-0.6B
FROM qwen3.gguf
TEMPLATE "<|im_start|>system
You are a helpful assistant.<|im_end|><|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"
PARAMETER stop <|im_start|>
PARAMETER stop <|im_end|>
PARAMETER temperature 0.6
PARAMETER top_k 20
@umtksa
umtksa / qwen3.py
Last active September 1, 2025 18:57
Qwen3-0.6B finetune
from datasets import load_dataset
from transformers import (
AutoTokenizer, AutoModelForCausalLM,
TrainingArguments, Trainer, DataCollatorForSeq2Seq,
set_seed
)
from peft import LoraConfig, get_peft_model, TaskType
import torch
set_seed(42)
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active March 17, 2026 07:11
Conventional Commits Cheatsheet
@prestia
prestia / installing_MTGO_on_macOS_with_Retina_support.md
Last active January 13, 2026 15:47
Instructions on how to install Magic the Gathering Online on macOS with Retina support.

Installing MTGO on macOS using Wine, and making it look pretty!

The following instructions are heavily inspired by @pauleve. I modified his instructions and then added details about how to make a shortcut and support Retina/HiDPI displays.

Installing MTGO (and Wine and Homebrew and Xquartz and ...)

  1. Install Homebrew by opening Terminal and executing the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
import sys
def get_size(obj, seen=None):
"""Recursively finds size of objects"""
size = sys.getsizeof(obj)
if seen is None:
seen = set()
obj_id = id(obj)
if obj_id in seen:
return 0