Skip to content

Instantly share code, notes, and snippets.

Graphical or CLI

Identify the current target sudo systemctl get-default The result will likely display either the multi-user.target or graphical.target.

@prateekrajgautam
prateekrajgautam / AI Lab Updates.md
Last active February 24, 2024 08:49
Required AI Lab Update
@prateekrajgautam
prateekrajgautam / How to create a docker container and connect to jupyterlab.md
Last active February 6, 2024 05:36
Steps to connect to docker server using tailscale

You need a bash terminal of linu or windown users need to install git bash

after installation rightclick and select git bash here Now you have bash on windows

ssh in to server with

# define server IP
@prateekrajgautam
prateekrajgautam / How to use Jupterlab with tensorflow.md
Last active February 26, 2024 11:38
How to use jupyterlab on CAS server instead of googlecolab

First login to server

  • Linux users: Use any linux terminal
  • Windows users: install mobaterm
ssh -X -L 8888:127.0.0.1:8888 username@10.135.27.6
@prateekrajgautam
prateekrajgautam / uninstall remove nix from wsl.md
Last active February 6, 2025 07:57
Commands to uninstall nix

uninstall remove nix from wsl

 sudo mv /etc/zshrc.backup-before-nix /etc/zshrc
 sudo mv /etc/profile.d/nix.sh.backup-before-nix /etc/profile.d/nix.sh
 sudo mv /etc/bashrc.backup-before-nix /etc/barhrc
 sudo mv /etc/bash.bashrc.backup-before-nix /etc/bash.bashrc
 sudo rm -rf /nix

Understanding Binary Numbers

Before diving into signed and unsigned representations, it's essential to grasp the basics of binary numbers. Binary is a base-2 numeral system, meaning it only uses two digits: 0 and 1. Each digit in a binary number is called a bit. In a 4-bit binary number, there are four positions, each representing a power of 2, starting from the right (which is (2^0)).

Example of a 4-bit binary number:

1 0 1 1

Calculating its decimal equivalent: [

@prateekrajgautam
prateekrajgautam / Domain Cloudflared Tunnel with GithubPages, NPM and SSH over cf tunnel.md
Created May 19, 2026 11:53
GitHub Pages + Cloudflare Tunnel + Nginx Proxy Manager + SSH over Cloudflare Tunnel (NixOS)

GitHub Pages + Cloudflare Tunnel + Nginx Proxy Manager + SSH over Cloudflare Tunnel (NixOS)

Final architecture:

example.com                  -> GitHub Pages
www.example.com              -> GitHub Pages
docs.example.com             -> GitHub Pages

*.example.com -> Cloudflare Tunnel
@prateekrajgautam
prateekrajgautam / Audio Array AM-C1 USB Microphone – Linux(Ubuntu, Linuxmint, and NixOS) Compatibility Issue (USB Bandwidth Capture Failure).md
Last active June 20, 2026 05:51
Audio Array AM-C1 USB Microphone – Linux Compatibility Issue (USB Bandwidth Capture Failure) for developers

Subject: Audio Array AM-C1 USB Microphone – Linux Compatibility Issue (USB Bandwidth / Capture Failure)

Dear Audio Array Support Team,

I am seeking assistance regarding an issue with an Audio Array AM-C1 microphone on Linux systems.

Device Information

  • Product: Audio Array AM-C1
  • USB ID: 0c76:1719
@prateekrajgautam
prateekrajgautam / GitRepoStructure.md
Last active August 4, 2026 11:39
Lab Instructions to Create public github repository

GitHub Repository Setup Instructions for Backend Development Lab

Follow the steps below to create and organize your repository for the Backend Development course.

Prerequisites

  1. Install Git from:

  2. During installation, keep the default settings unless instructed otherwise.