Skip to content

Instantly share code, notes, and snippets.

@Jaid
Jaid / taskbar-icon-size.yml
Created April 16, 2026 19:06
my Windhawk task bar
TaskbarHeight: 36
IconSize: 32
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBCPZ0ZiP841mcBLmSEU4c8zHkkYzpkBUlNPe6vJTCJz vps
@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