Skip to content

Instantly share code, notes, and snippets.

View debakarr's full-sized avatar
😅
I may be slow to respond.

Debakar Roy debakarr

😅
I may be slow to respond.
View GitHub Profile
@debakarr
debakarr / PDI Checklist.md
Last active April 11, 2025 11:24
PDI Checklist for Two Wheeler (planning for my Triumph Speed 400)

Triumph Speed 400 PDI Checklist


🔍 1. Exterior Condition

Check the body and parts for any damage, wear, or poor finishing.

  • Body & Paint – No scratches, dents, uneven paint, or signs of repainting.
  • Seat & Upholstery – Free of tears, stains, or visible damage.
  • Wheels & Tires – Check manufacturing date and colored lines.
@debakarr
debakarr / job-apply.md
Last active May 18, 2024 03:26
Link to some of the companies job apply portal for India
@debakarr
debakarr / final.py
Last active March 6, 2024 04:23
Windows studio access using API in Python
import asyncio
import uuid
from ctypes import c_uint32, c_uint64, c_char, Structure, sizeof
from enum import Enum
from winsdk.windows.media.devices import MediaDevice
from winsdk.windows.devices.enumeration import DeviceInformation, Panel
from winsdk.windows.media.capture import (
MediaCapture,
MediaCaptureInitializationSettings,
@debakarr
debakarr / KodeKloud_Quiz.md
Created September 28, 2023 06:14
Quiz from kodekloud.md

KodeKloud Quiz

test

1. What is the command to view the version of docker engine installed?

  • docker --version
  • docker version
  • docker engine info
@debakarr
debakarr / .bashrc
Last active December 12, 2024 09:45
My dev setup
alias ls='eza'
alias vi='nvim'
export PIP_REQUIRE_VIRTUALENV=true
# Function to get Linodes with matching labels
function get_matching_linodes() {
local regex="$1"
local show_label="$2"
@debakarr
debakarr / python_course_outline.md
Last active June 19, 2023 06:29
Python Course Outline
@debakarr
debakarr / PowerShell_Via_Python.md
Last active May 20, 2023 06:27
Calling PowerShell Command via Python

You first need to install pythonnet and pypsrp

pip install pythonnet pypsrp

Below is the code which uses pythonnet to execute the powershell command and pypsrp to deserialize it into Python object:

@debakarr
debakarr / delete_missing_upsteam_branch.md
Created April 21, 2023 04:44
Delete branch which are missing upstream

To delete all branches that are missing upstream, you can use the following Git commands. This will first list all branches that are missing upstream, and then delete them one by one.

  1. First, fetch the latest information from the remote repository:

git fetch --all --prune

  1. List all branches that are missing upstream:

git branch -vv | grep ': gone]' | awk '{print $1}'

@debakarr
debakarr / Kubernetes 101 demo commands.md
Last active April 11, 2023 09:02
Kubernetes 101 demo on KillerCoda Playground

Opening KillerCoda Kubernetes Playground

Configure KubeView

Commands:

@debakarr
debakarr / README.md
Last active March 5, 2023 15:42
Unlimited Quiz Generator

Simple streamlit application to generate unlimited quiz on any topic.

Installation

pip install streamlit openai

To run

streamlit run main.py