Skip to content

Instantly share code, notes, and snippets.

View itoleck's full-sized avatar
🏠
Working from home

Chad Schultz itoleck

🏠
Working from home
View GitHub Profile
@ShardulJunagade
ShardulJunagade / PyTorch GPU Setup.md
Created February 8, 2025 14:54
Step-by-step guide to installing PyTorch with NVIDIA GPU support using venv, Conda, or Docker.

Setting Up PyTorch with NVIDIA GPU (CUDA and cuDNN)

This guide provides three different methods to install PyTorch with GPU acceleration using CUDA and cuDNN. Choose the method that best suits your requirements and system configuration.

  1. Using Virtual Environment (venv) in Python
  2. Using Conda Environment in Anaconda
    • Using pip
    • Using conda
  3. Using Docker Container
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@redfellow
redfellow / handbrake.ps1
Last active December 17, 2023 22:38
Powershell script to batch-encode recursively, using a custom handbrake preset
$filelist = Get-ChildItem "F:\path\to\vids\" -filter *.avi -recurse
$num = $filelist | measure
$filecount = $num.count
$i = 0;
ForEach ($file in $filelist)
{
$i++;
$oldfile = $file.DirectoryName + "\" + $file.BaseName + $file.Extension;