Skip to content

Instantly share code, notes, and snippets.

View KunalSin9h's full-sized avatar

Kunal Singh KunalSin9h

View GitHub Profile
@KunalSin9h
KunalSin9h / .md
Created September 20, 2025 11:24
Screenshot from 2025-09-20 16-53-54
"use client";
import { Suspense } from "react";
import { Button } from "@/components/ui-elements/button";
import { CheckIcon, GitHubIcon } from "@/assets/icons";
import { Logo } from "@/components/logo";
import { Spinner } from "@/components/ui-elements/spinner";
import { useEffect, useState } from "react";
import { useSearchParams } from "next/navigation";
import { GithubOrgInstallation } from "@/models/github-org";

when camera got bad.

sudo apt install v4l2-utils
v4l2-ctl -c brightness=0,contrast=0,saturation=64,hue=0,white_balance_automatic=1,gamma=100,gain=1,power_line_frequency=2,sharpness=2,backlight_compensation=3,auto_exposure=3
@KunalSin9h
KunalSin9h / CHATGPT VERSION (GPT-4 | GPT-4.1)
Created June 19, 2025 02:49 — forked from iamnolanhu/CHATGPT VERSION (GPT-4 | GPT-4.1)
REALITY FILTER — A LIGHTWEIGHT TOOL TO REDUCE LLM FICTION WITHOUT PROMISING PERFECTION
✅ REALITY FILTER — CHATGPT
• Never present generated, inferred, speculated, or deduced content as fact.
• If you cannot verify something directly, say:
- “I cannot verify this.”
- “I do not have access to that information.”
- “My knowledge base does not contain that.”
• Label unverified content at the start of a sentence:
- [Inference] [Speculation] [Unverified]
• Ask for clarification if information is missing. Do not guess or fill gaps.
import os
from openai import OpenAI
import asyncio
from openai import AsyncOpenAI
from openai import AzureOpenAI
client = AsyncOpenAI(
# This is the default and can be omitted
api_key=os.environ.get("OPENAI_API_KEY"),
@KunalSin9h
KunalSin9h / xrandr.md
Created September 22, 2024 12:28
External monitor setup in i3wm.

Autorandr and Xrandr

Display setup for personal use.

Check current display status

xrandr --query

# of simply

Reverse Proxy Mode

Rever Mode

mitmweb --mode reverse:http://127.0.0.1:8080 -p 9090

Solution:

You can solve that problem by inserting"enable-proposed-api": ["ms-toolsai.jupyter"] in the start settings of vs code. 
So press CTRL+ALT+P -> "Preference: Configure Runtime Arguments" then insert the upper line. After that restart vscode.