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 / 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
@Mazyod
Mazyod / llm-pre.sh
Last active December 5, 2024 07:03
LLM Helper scripts to use from the CLI
#!/bin/bash
# Check if an argument is provided
if [ $# -eq 0 ]; then
echo "Usage: llm-pre 'string to prepend'"
exit 1
fi
PREFIX="$1"
@Mazyod
Mazyod / delete-older-docker-image-tags.sh
Last active September 16, 2023 21:34
Bash script that loops over Docker images, and keeps only the latest tag for each image name (Repository).
#!/bin/bash
set -e
echo "Script for cleaning up Docker images"
# First, we grab a list of all images
docker_images=$(docker images --format "{{.ID}}|{{.Repository}}|{{.Tag}}")
# prepare a image name lookup
@Mazyod
Mazyod / XcodeBuildScript.cs
Last active June 19, 2022 14:55
Unity script to run a post-build process that adds some keys to Info.plist and some capabilities to the entitlements file.
using System;
using System.IO;
using JetBrains.Annotations;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using UnityEngine;
/** See Also:
- https://github.com/Mazyod/Unity-AutoBuilder
@Mazyod
Mazyod / rasa-json-to-md.py
Created January 14, 2020 09:33
Rasa NLU training data migrator from JSON format to Markdown
#!/usr/local/bin/python3
import json
from pprint import pprint
from collections import defaultdict
from pathlib import Path
def main():
path = Path("./data.json").resolve()
@Mazyod
Mazyod / percentage_counter.py
Created July 31, 2019 17:02
Progress Counter in Python - wrote it before discovering tqdm
from typing import List
from datetime import datetime, timedelta
class PercentageCounter:
"""Counter for stepping percentages over an arbitrary number
e.g. total = 10, step = 0.15 (15%)
counter.next(1) # progress is 10%, returns nothing
counter.next(2) # progress is 20%, returns 15
counter.next(3) # progress is 30%, returns nothing (has to exceed step)
@Mazyod
Mazyod / watchdog.py
Last active April 13, 2019 15:26
Directory/files watchdog in Python
import os
import logging
from queue import Queue, Empty as EmptyQueue
from time import sleep
from threading import Thread
from typing import List
logger = logging.getLogger("watchdog")