Skip to content

Instantly share code, notes, and snippets.

@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 / 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

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 / 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
@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 / 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 / AI Lab Updates.md
Last active February 24, 2024 08:49
Required AI Lab Update

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 / Guide: Cloudflare Tunnel with Nginx Proxy Manager.md
Last active June 24, 2026 22:44
Guide: Cloudflare Tunnel with Nginx Proxy Manager

Thought I should post my guide on how to do this, as I've struggled with this for quite some time now. I wanted something to bypass the NAT/router as I did not have the option of port-forwarding. I will also be moving quite some in the upcoming year, so dynamic IP was almost a given. And obviously I wanted it to be cheap. This does it all.

This is free, no port-forwarding required and no static IP required. Wildcard domain and SSL certificate supported. It works with Cloudflare tunnels, Cloudflare DNS, Nginx Proxy Manager and obviously TrueNAS SCALE.

I am not a professional, if you see a flaw in this design, please let me know!

Requirements:

  • Domain name at Cloudflare
@prateekrajgautam
prateekrajgautam / cloudflared zerotrust tunnel and ssh main.md
Last active June 23, 2026 18:25
cloudflared zerotrust tunnel and ssh

Cloudflare Zero Trust Tunnel for SSH Access

ssh over cloudflared in 3 steps

This guide uses a Cloudflare Dashboard-managed tunnel to securely access an SSH server without opening port 22 on your router.

Step 1: Configure Cloudflare Tunnel (Dashboard)

  1. Log in to your Cloudflare account.

  2. Navigate to: