Skip to content

Instantly share code, notes, and snippets.

View anxkhn's full-sized avatar
🚀

Anas Khan anxkhn

🚀
View GitHub Profile
@anxkhn
anxkhn / VSCode_Marketplace_Tutorial.md
Last active July 5, 2025 12:05
Enable Marketplace on non MS VSCode Forks.

Enabling VS Code Marketplace in VSCodium and Trae

Microsoft claims Visual Studio Code (VS Code) is open source, yet it restricts the use of its Marketplace extensions in non-Microsoft products like VSCodium (telemetry/tracking free open source fork), Cursor, Windsurf, Trae, and other VS Code-based IDEs, enforcing what some see as monopolistic control. This guide provides a workaround to enable the VS Code Marketplace in VSCodium and Trae (more to be added soon), allowing you to freely use extensions. Note that using the VS Code Marketplace with non-Microsoft products may violate its terms of use, which state that extensions are intended for use only with Microsoft Visual Studio products. Proceed at your discretion after reviewing the terms.


Enabling VS Code Marketplace in VSCodium

To configure VSCodium to use the VS Code Marketplace instead of the default OpenVSX Registry, you can either set environment variables or create a custom product.json file.

Cursor AI IDE Installation Guide

Cursor AI is a modern AI-driven IDE that boosts productivity for developers. This guide demonstrates how to install Cursor on your Linux system using a one-liner command. The script will handle dependencies, download the Cursor AppImage, and create a convenient desktop launcher.


Prerequisites

Ensure you have curl installed on your system. If not, the script will install it for you.

Run these.

sudo apt update -y
sudo apt upgrade -y
sudo apt install gcc make libssl-dev libreadline-dev zlib1g-dev libsqlite3-dev libyaml-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
~/.rbenv/bin/rbenv init
eval "$(~/.rbenv/bin/rbenv init - zsh)"
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

Best Practices for Python Code Formatting and Linting

In this document, we'll discuss best practices for Python code formatting and linting. We'll use popular tools like autopep8, black, flake8, isort, and pylint to ensure code consistency, readability, and maintainability.

Tools Installation

Before proceeding, ensure you have the necessary tools installed. You can install them via pip:

pip install autopep8 black flake8 isort pylint
import sys
input = sys.stdin.readline
# Function to read an int
def read_int():
return int(input().strip())
# Function to read a list of integers
def read_int_list():
return list(map(int, input().split()))

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London

const fetchOptions = {
credentials: "include",
headers: {
"X-IG-App-ID": "936619743392459",
},
method: "GET",
};
let username;
@anxkhn
anxkhn / Tcp
Last active April 26, 2023 17:40
set ns [new Simulator]
set anim [open out.nam w]
$ns namtrace-all $anim
proc finish {} {
global ns anim
$ns flush-trace
close $anim
exec nam out.nam &
@anxkhn
anxkhn / dfs.c
Last active October 10, 2022 17:12
#include <stdio.h>
#define size 9
int adj_mat[size][size];
int vis[size];
struct queue1
{
int a[size];
int front, rear;
} q1;