Skip to content

Instantly share code, notes, and snippets.

@Jaid
Jaid / index.html
Created January 17, 2026 13:22
Simple text compression
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Encoder</title>
<style>
body {
margin: 0;
padding: 0;
@Jaid
Jaid / a.wh.cpp
Created January 10, 2026 01:17
Windhawk mod: Remove Windows 11 Window Border
// ==WindhawkMod==
// @id remove-window-border
// @name Remove Windows 11 Window Border
// @description Hides the 1-pixel border from all windows without changing dimensions or layout.
// @version 0.1.0
// @author Jaid
// @github https://github.com/jaid
// @include *
// @compilerOptions -ldwmapi
// ==/WindhawkMod==
@Jaid
Jaid / litellm.schema.json
Created December 24, 2025 01:11
LiteLLM JSONSchema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "LiteLLM Proxy Configuration",
"description": "JSON Schema for the LiteLLM Proxy configuration file (config.yaml equivalent)",
"type": "object",
"properties": {
"environment_variables": {
"description": "Environment variables to set within the proxy",
"type": "object",
"additionalProperties": { "type": ["string", "number", "boolean"] }
@Jaid
Jaid / extension_manifest.schema.json
Created October 4, 2025 01:16
VSCode extension manifest JSON schema
{
"$schema": "https://json-schema.org/draft-07/schema",
"$comment": "Created with Gemini: https://aistudio.google.com/prompts/1qOHlwgopIioc0DmKrSkmMkMRDZfKVzMB",
"title": "VSCode extensions manifest",
"description": "Schema for the package.json file of a Visual Studio Code extension.",
"type": "object",
"required": [
"name",
"publisher",
"version",
@Jaid
Jaid / YamlEditor.tsx
Created September 22, 2025 04:50
YamlEditor
import type { OnMount } from "@monaco-editor/react";
import type { FileRejection } from "react-dropzone";
import Editor from "@monaco-editor/react";
import React, { useCallback, useRef, useState } from "react";
import { useDropzone } from "react-dropzone";
import { useHotkeys } from "react-hotkeys-hook";
import * as YAML from "yaml";
interface YamlEditorProps {
@Jaid
Jaid / reset-drive.bash
Last active December 8, 2024 21:52
Reset disk (for new OS installation)
deviceLetter=a
sudo parted "/dev/sd$deviceLetter" -- mklabel gpt && sudo parted "/dev/sd$deviceLetter" -- mkpart primary fat32 1MiB 513MiB && sudo parted "/dev/sd$deviceLetter" -- mkpart primary ext4 513MiB 100% && sudo mkfs.vfat -F32 "/dev/sd${deviceLetter}1" && sudo mkfs.ext4 "/dev/sd${deviceLetter}2" && lsblk
@Jaid
Jaid / localIp.ps1
Created October 4, 2024 00:42
Get best local IPv4 address in PowerShell script
(Get-NetIPAddress -AddressFamily IPv4 -InterfaceIndex (Get-NetRoute -DestinationPrefix '0.0.0.0/0' | Where-Object { (Get-NetAdapter -InterfaceIndex $_.InterfaceIndex).InterfaceType -eq 6 } | Sort-Object Metric | Select-Object -First 1).InterfaceIndex | Where-Object { $_.IPAddress -notlike '127.*' }).IPAddress
@Jaid
Jaid / comfyUiHelp.txt
Created August 27, 2024 07:51
ComfyUI --help output
usage: main.py [-h] [--listen [IP]] [--port PORT] [--tls-keyfile TLS_KEYFILE] [--tls-certfile TLS_CERTFILE]
[--enable-cors-header [ORIGIN]] [--max-upload-size MAX_UPLOAD_SIZE]
[--extra-model-paths-config PATH [PATH ...]] [--output-directory OUTPUT_DIRECTORY]
[--temp-directory TEMP_DIRECTORY] [--input-directory INPUT_DIRECTORY] [--auto-launch]
[--disable-auto-launch] [--cuda-device DEVICE_ID] [--cuda-malloc | --disable-cuda-malloc]
[--force-fp32 | --force-fp16] [--bf16-unet | --fp16-unet | --fp8_e4m3fn-unet | --fp8_e5m2-unet]
[--fp16-vae | --fp32-vae | --bf16-vae] [--cpu-vae]
[--fp8_e4m3fn-text-enc | --fp8_e5m2-text-enc | --fp16-text-enc | --fp32-text-enc]
[--force-channels-last] [--directml [DIRECTML_DEVICE]] [--disable-ipex-optimize]
[--preview-method [none,auto,latent2rgb,taesd]] [--cache-classic | --cache-lru CACHE_LRU]
@Jaid
Jaid / kohya-sd-scripts-help.txt
Last active January 18, 2026 04:35
Kohya-SS CLI help
usage: sdxl_train_network.py [-h] [--console_log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--console_log_file CONSOLE_LOG_FILE] [--console_log_simple] [--v2]
[--v_parameterization]
[--pretrained_model_name_or_path PRETRAINED_MODEL_NAME_OR_PATH]
[--tokenizer_cache_dir TOKENIZER_CACHE_DIR]
[--train_data_dir TRAIN_DATA_DIR] [--cache_info] [--shuffle_caption]
[--caption_separator CAPTION_SEPARATOR]
[--caption_extension CAPTION_EXTENSION]
[--caption_extention CAPTION_EXTENTION] [--keep_tokens KEEP_TOKENS]
[--keep_tokens_separator KEEP_TOKENS_SEPARATOR]