Skip to content

Instantly share code, notes, and snippets.

@jetsonhacks
jetsonhacks / sideBySide.sh
Last active March 27, 2023 12:11
Gstreamer two MJPG Webcams
#!/bin/sh
# Run two video webcam feeds in two different windows
# Script assumes that:
# Microsoft LifeCam Studio is video0
# Logitech c920 is video1
# Both cameras run max 1920x1080 MJPG, but two have both on a USB bus they can run @ 1280x720 max
# MS is made a little smaller
# text overlay and clockoverlay may be added to the pipeline, but render poorly
VELEM="v4l2src device=/dev/video0 do-timestamp=true"
VCAPS="image/jpeg, width=640, height=480, framerate=30/1"
@primus852
primus852 / cuda_11.7_installation_on_Ubuntu_22.04
Last active July 13, 2024 10:25 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v11.7 and cuDNN 8.5 installation on Ubuntu 22.04 for PyTorch 1.12.1
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@tanmayyb
tanmayyb / egpu_ubuntu_20.04_debug.md
Last active April 6, 2024 03:15
Debugging Ubuntu 20.04 access to Razer/Nvidia eGPU Display and Compute Capability

Enable Razer CoreX (NV-1070) eGPU on Razer Blade Stealth (NV-MX150) running Ubuntu 20.04

Hi! If you've ever faced this unholy setup, you may have run into weird issues that prevent access the egpu's display and compute capability. Here are a few instructions on how I solved this issue (~=5-8 hours total of debugging across several days).

The Process

Install ubuntu and run repository update