Skip to content

Instantly share code, notes, and snippets.

View Randy420Marsh's full-sized avatar
💭
I may be slow to respond.

Randy Marsh Randy420Marsh

💭
I may be slow to respond.
View GitHub Profile
@Randy420Marsh
Randy420Marsh / ffmpeg_vmaf_cuda_build_script_hw_2.sh
Last active June 30, 2025 22:14
static build fail, however it works when you export the library paths...
#!/bin/bash
# This script converts a Dockerfile into a local build script for Ubuntu 24.04.
# It installs necessary dependencies, clones repositories, builds VMAF and FFmpeg
# with CUDA support, and performs a test conversion and VMAF analysis.
# IMPORTANT PREREQUISITES:
# 1. NVIDIA GPU: Ensure you have a compatible NVIDIA GPU.
# 2. NVIDIA Drivers: Ensure NVIDIA proprietary drivers are correctly installed on your system.
# You can typically install them using `sudo ubuntu-drivers autoinstall`.
#!/bin/bash
#----------------------
export LD_LIBRARY_PATH="/usr/local/lib:$/usr/local/cuda-12.8/lib64:/usr/local/cuda-12.8/targets/x86_64-linux/lib:${LD_LIBRARY_PATH}"
/lib64/ld-linux-x86-64.so.2 --help
echo "You can do this:"
echo "sudo nano /etc/ld.so.conf"
@Randy420Marsh
Randy420Marsh / vmaf-test.sh
Last active June 30, 2025 18:25
tests the ffmpeg cuda accelerated libvmaf_cuda build
#!/bin/bash
export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
export LIBRARY_PATH="/etc/ld.so.conf.d:/usr/local/lib:/usr/local/cuda-12.8/lib64:/usr/local/cuda-12.8/targets/x86_64-linux/lib"
export CUDA_PATH="/usr/local/cuda-12.8"
export PATH="${CUDA_PATH}/bin:${PATH}"
export LD_LIBRARY_PATH="/usr/local/lib:${CUDA_PATH}/lib64:${CUDA_PATH}/targets/x86_64-linux/lib:${LD_LIBRARY_PATH}"
sudo bash -c "echo '${CUDA_PATH}/lib64/stubs/' > /etc/ld.so.conf.d/cuda-stubs.conf"
sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/vmaf-local.conf" # Explicitly add /usr/local/lib
@Randy420Marsh
Randy420Marsh / ffmpeg_vmaf_cuda_build_script_hw.sh
Last active June 30, 2025 18:28
builds ffmpeg with cuda accelerated libvmaf_cuda
#ffmpeg_vmaf_cuda_build_script_hw.sh
#!/bin/bash
# This script converts a Dockerfile into a local build script for Ubuntu 24.04.
# It installs necessary dependencies, clones repositories, builds VMAF and FFmpeg
# with CUDA support, and performs a test conversion and VMAF analysis.
# IMPORTANT PREREQUISITES:
# 1. NVIDIA GPU: Ensure you have a compatible NVIDIA GPU.
# 2. NVIDIA Drivers: Ensure NVIDIA proprietary drivers are correctly installed on your system.
#Tomb_Raider_2013_Ubuntu_24.04.2_LTS_FIX.sh
#-----------------------------------------------------------
#This script tries to find the missing libraries and places them to game_dir/lib folder,
#then it creates a launch.sh script where this library path is defined and then it
#creates a desktop shortcut to launch the game.
#Don't forget to set "Allow Launching" for the desktop shortcut.
#Now the game should launch from the shortcut.
sudo nano /usr/share/thumbnailers/webp.thumbnailer
[Thumbnailer Entry]
Exec=/usr/bin/convert %i[0] -thumbnail %sx%s png:%o
MimeType=image/webp;
nautilus -q
rm -rf ~/.cache/thumbnails/*
@Randy420Marsh
Randy420Marsh / DoH.md
Created February 4, 2025 01:33 — forked from richeney/DoH.md
Cloudflare DNS over HTTPS

DNS over HTTPS

Settings | Network & Internet | Ethernet/WiFi | DNS server assignment | Edit

Add automatic templates:

netsh dns add encryption server=1.1.1.3 dohtemplate=https://cloudflare-dns.com/dns-query
netsh dns add encryption server=1.0.0.3 dohtemplate=https://cloudflare-dns.com/dns-query
netsh dns add encryption server=2606:4700:4700::1113 dohtemplate=https://cloudflare-dns.com/dns-query
@Randy420Marsh
Randy420Marsh / streamelements_commands.txt
Last active January 9, 2025 10:29
streamelements_commands.txt
!cmd add settitle $(settitle "$(1)") The current stream title is set to: $(title)
!cmd add title $(title "$(1)") The current stream title is: $(title)
!cmd add setgame $(setgame "$(1)") The current game is set to: $(game)
!cmd add !game The current game is: $(game)
Remember to update the access levels to supermod or mod for the settitle and setgame commands!
@Randy420Marsh
Randy420Marsh / Note To Self When Starting From Fresh Linux (Ubuntu) and Windows.txt
Last active March 15, 2024 23:18
Note To Self When Starting From Fresh Linux (Ubuntu) and Windows
Automate this stuff or find already working solution.
README PLEASE!!!
Do Not Install Custom Kernel On A Dev Environment, it is a huge waste of time debugging gcc, g++ and nvidia kernel module comflicts + secureboot and AppArmor issues!
README PLEASE!!!
On Windows install visualtudio community 2022, Cuda 11.8, git, rustc, and miniconda and add ffmpeg to path (configure to use libmamba).
@Randy420Marsh
Randy420Marsh / linux nvidia-settings permissions fix.txt
Created November 27, 2023 08:42
linux nvidia-settings permissions fix
sudo chmod +x /usr/share/screen-resolution-extra/nvidia-polkit