Skip to content

Instantly share code, notes, and snippets.

View Ghostbird's full-sized avatar

Gijsbert ter Horst Ghostbird

View GitHub Profile
@Ghostbird
Ghostbird / build-ffmpeg-nvenc.sh
Last active December 22, 2023 02:05
Automatically compile and install FFMPEG with NVIDIA hardware acceleration on Debian 10+
#!/bin/bash
# Automatically compile and install FFMPEG with NVIDIA hardware acceleration on Debian
# Based on https://www.tal.org/tutorials/ffmpeg_nvidia_encode
# Verified working on Debian 10 and 11
# Abort on error
set -e
suite=stable
@Ghostbird
Ghostbird / git-branch-delete-merged
Last active September 9, 2022 13:59
Script to delete merged branches
#/bin/bash
branches=$(git branch --merged | grep -Ev "^\*|develop|master|main")
if [ "$branches" ]
then
git branch -d $branches
else
echo "Nothing to delete"
fi