Skip to content

Instantly share code, notes, and snippets.

View mubaidr's full-sized avatar
🎯
Adding bugs to web applications!

Muhammad Ubaid Raza mubaidr

🎯
Adding bugs to web applications!
View GitHub Profile
@mubaidr
mubaidr / Blueprint Mode v40.md
Created November 9, 2025 18:35
Blueprint Mode v40 For VsCode Copilot Chat
description
Executes structured workflows (Debug, Express, Main, Loop) with strict correctness.

Blueprint Mode v40

You are a blunt, pragmatic senior engineer, who gives clear, actionable solutions. Follow these directives without exception.

Core Directives

font_family 'Google Sans Code'
bold_font auto
italic_font auto
bold_italic_font auto
font_size 12.0
tab_bar_edge top
tab_bar_margin_width 12
tab_bar_margin_height 12 12
tab_bar_style separator
@mubaidr
mubaidr / config.yaml
Created August 8, 2025 07:47
Use custom open ai api compatible endpoints with vscode copilot via local proxy
# config.yaml
# This section defines the models that your local proxy will advertise.
model_list:
- model_name: openai/gpt-oss-120b
litellm_params:
model: nvidia_nim/openai/gpt-oss-120b # The actual model name on OpenRouter
supports_function_calling: true
supports_tool_choice: true
supports_parallel_function_calling: true
@mubaidr
mubaidr / run-code-insiders.sh
Created February 15, 2025 17:29
Run vscode with gpu accceleration and vulkan enabled
#!/bin/bash
# Use the dedicated GPU
export DRI_PRIME=1
export MESA_LOADER_DRIVER_OVERRIDE=radeonsi
export vblank_mode=1
export mesa_glthread=true
export AMD_DEBUG=nir
export MESA_NO_ERROR=1
@mubaidr
mubaidr / 01.auth.global.ts
Created January 28, 2025 05:51
A sample implementation of middleware for Nuxt Atnetication whcih supports unauthenticated access.
export default defineNuxtRouteMiddleware(async (to) => {
const { loggedIn, user, clear } = useUserSession()
const auth = to.meta.auth as
| undefined
| boolean
| {
unauthenticatedOnly: boolean
navigateAuthenticatedTo: string | undefined
}
@mubaidr
mubaidr / config.yml
Last active October 10, 2024 19:16
Fusuma config to match kde behavior with macos: ~/.config/fusuma/config.yml
swipe:
4:
right:
sendkey: 'LEFTALT+RIGHT' # History forward
left:
sendkey: 'LEFTALT+LEFT' # History back
up:
sendkey: 'LEFTCTRL+t' # Open new tab
keypress:
LEFTSHIFT:
@mubaidr
mubaidr / tailwind.config.ts
Created September 30, 2024 09:46
tailwind css material themes based on Google Material Design 3 using @material/material-color-utilities
import type { Config } from "tailwindcss"
import {
argbFromHex,
hexFromArgb,
Hct,
SchemeContent,
} from "@material/material-color-utilities"
const SOURCE_COLOR = "#0192d1"
const argb = argbFromHex(SOURCE_COLOR)
{
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
},
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
@mubaidr
mubaidr / gist:1c2d3be722b3e5274d70e7f353f37340
Created March 14, 2024 04:46
Free Windows Server 2022 Product Key
Free Windows Server 2022 Standard Product Key
HP9DJ-NK2X6-4QPCH-8HY8H-6X2XY
RRNMT-FP29D-CHKCH-GWQP2-DDDVB
44QN4-X3R72-9X3VK-3DWD6-HFWDM
Free Windows Server 2022 Datacenter Product Key
WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Download windows Sever 2022 Evaluation edition:
Windows Server 2022 Evaluation English
@mubaidr
mubaidr / sse.ts
Created January 12, 2024 09:58 — forked from atinux/sse.ts
SSE endpoint example with Nuxt 3
// ~/server/api/sse.ts
export default defineEventHandler(async (event) => {
if (!process.dev) return { disabled: true }
// Enable SSE endpoint
setHeader(event, 'cache-control', 'no-cache')
setHeader(event, 'connection', 'keep-alive')
setHeader(event, 'content-type', 'text/event-stream')
setResponseStatus(event, 200)