This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/usr/env bash | |
| ## Source: https://tizutech.com/plex-transcoding-with-docker-nvidia-gpu/ | |
| ## Setting up the package repository | |
| curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ | |
| && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ | |
| sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ | |
| sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import boto3 | |
| from argparse import ArgumentParser | |
| def delete_objects(bucket): | |
| bucket.objects.all().delete() | |
| def delete_bucket(bucket): | |
| try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| openssl aes-128-cbc -d \ | |
| -K babb4a9f774ab853c96c2d653dfe544a \ | |
| -iv 00000000000000000000000000000000 \ | |
| -in $1 | \ | |
| dd bs=1 skip=16 2>/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| makepkg --printsrcinfo > .SRCINFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Nvidia Container Device Interface debugging | |
| # | |
| # Test device interface | |
| docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi | |
| # Should return something like | |
| # Mon Oct 13 12:42:00 2025 | |
| # +-----------------------------------------------------------------------------------------+ | |
| # | NVIDIA-SMI 580.82.09 Driver Version: 580.82.09 CUDA Version: 13.0 | | |
| # +-----------------------------------------+------------------------+----------------------+ | |
| # | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | |
OlderNewer