Skip to content

Instantly share code, notes, and snippets.

View Mazyod's full-sized avatar
🤖
Unlocking LLMs

Maz Mazyod

🤖
Unlocking LLMs
View GitHub Profile
@Mazyod
Mazyod / pyright-profiler.py
Last active November 28, 2025 06:50
Pyright Profiling Scripts
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "lsp-types[pyrefly]>=0.12.3",
# "rich>=14.2.0",
# ]
# ///
"""
Small end-to-end script that exercises LSP backends for diagnostics and
completion. It spins up a throwaway workspace containing a single module, opens an
@Mazyod
Mazyod / gpu-utilization.py
Created November 10, 2025 05:09
VLLM GPU Utilization Summary from docker-compose
#!/usr/bin/env -S uv run
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "pyyaml>=6.0",
# "rich>=13.0.0",
# ]
# ///
"""
@Mazyod
Mazyod / todo.hta
Last active October 19, 2025 06:22
TODO HTA App
<!DOCTYPE html>
<HTML>
<HEAD>
<HTA:APPLICATION
ID="TodoApp"
APPLICATIONNAME="Work TODO Manager"
BORDER="dialog"
BORDERSTYLE="normal"
CAPTION="yes"
ICON=""
@Mazyod
Mazyod / minio-transfer.html
Last active October 14, 2025 15:31
MinIO object transfer in a single, self-contained HTML page. Load objects from one server, pick the objects to transfer, and push them to the other side.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Transfer Console — SRC/Local ➜ DST (S3→S3 + Local→S3)</title>
<style>
:root { --fg:#0f172a; --muted:#475569; --bg:#f8fafc; --card:#ffffff; --ok:#16a34a; --warn:#f59e0b; --err:#dc2626; --accent:#2563eb; }
* { box-sizing: border-box; }
body { margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color:var(--fg); background:var(--bg); }
@Mazyod
Mazyod / README.md
Last active September 18, 2025 09:14
Ollama Models Import/Export Utility

Ollama Model Import/Export Utility

A Go utility for importing and exporting Ollama models as compressed archives.

Overview

This utility allows you to package Ollama models into portable tar.gz archives and restore them on other systems. It preserves the complete model structure including manifests, configuration blobs, and layer data.

How It Works

@Mazyod
Mazyod / qwen_chat.py
Last active April 18, 2025 12:11
Script for chatting with Qwen2.5-VL. Supports CUDA, MPS (Apple Silicon), and CPU backends. Basic vision support as well.
import os
import torch
from qwen_vl_utils import process_vision_info
from rich.console import Console
from rich.markdown import Markdown
from rich.panel import Panel
from rich.progress import Progress, SpinnerColumn, TextColumn
from rich.prompt import Confirm, Prompt
from transformers import (
@Mazyod
Mazyod / App.jsx
Created March 14, 2025 10:00
Recharts Dynamic Dashboard Example
import React, { useMemo } from 'react';
import {
LineChart,
Line,
BarChart,
Bar,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
@Mazyod
Mazyod / README.md
Created March 12, 2025 08:46
Material UI Theming Guide

I'll help you create a guide on enhancing your MUI React app with colors and theming. Let me search for the latest information to ensure I provide up-to-date advice.

Leveling Up Your MUI React App with Colors and Theming

Based on the latest information about Material UI, I'll guide you through simple yet effective ways to enhance your app with colors and theming. This guide focuses on minimal changes that will have maximum visual impact without getting into complex customizations.

1. Creating a Custom Theme

The foundation of any MUI styling is the theme. Let's start by setting up a custom theme with your brand color:

@Mazyod
Mazyod / README.md
Created March 11, 2025 11:58
TinyProxy Linux Setup

Tinyproxy Installation and Configuration Guide

Here's a comprehensive guide for installing and configuring Tinyproxy on Linux, including setting up an upstream proxy and configuring bypass rules for specific domains and IPs.

Installation

Debian/Ubuntu-based distributions:

sudo apt update
sudo apt install tinyproxy
@Mazyod
Mazyod / antigen
Created February 24, 2025 05:34
antigen
######################################################################
# This file was autogenerated by `make`. Do not edit it directly!
######################################################################
# Antigen: A simple plugin manager for zsh
# Authors: Shrikant Sharat Kandula
# and Contributors <https://github.com/zsh-users/antigen/contributors>
# Homepage: http://antigen.sharats.me
# License: MIT License <mitl.sharats.me>
zmodload zsh/parameter
autoload -U is-at-least