Skip to content

Instantly share code, notes, and snippets.

@primus852
primus852 / cuda_11.7_installation_on_Ubuntu_22.04
Last active June 1, 2024 04:09 — 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
@primus852
primus852 / rpi_opencv_install.sh
Created June 21, 2018 11:22 — forked from jbienkowski311/rpi_opencv_install.sh
OpenCV 3.1 installation script for Raspberry Pi (Raspbian Jessie)
#!/bin/bash
# full update
sudo apt-get update
sudo apt-get -y upgrade
sudo rpi-update
# reboot required
read -r -p "You may need to reboot your RPi. Would you like to do that? [y/N] " response
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
then