Skip to content

Instantly share code, notes, and snippets.

@weshofmann
weshofmann / README.md
Last active August 28, 2023 10:27
QNAP NAS: Nvidia Hardware Transcoding in Plex and Emby Docker Containers

QNAP NAS: Nvidia Hardware Transcoding in Plex and Emby Docker Containers

Background

Last week I added an Nvidia Quadro P620 to my QNAP TVS-872XT NAS. For the last few days, I've been trying to get both Plex and Emby docker containers to actually use the Nvidia card for encoding and decoding media streams.

The instructions included in the linuxserver/plex DockerHub container indicate that to use Nvidia hardware decoding, you must first install the docker-nvidia2 runtime from Nvidia. Since QNap

anonymous
anonymous / night-before-opsmas.txt
Created December 24, 2013 07:19
Twas the night before Opsmas..
'Twas the night before Christmas, when all through the racks
Not a server was alerting, not even Compaqs.
The backups were written to tapes with care
In hopes that later the data would be there.
The machines were nestled all snug in their sleds
Whilst visions of vengeance danced in their heads;
And oncall in his three-wolf and I in my rack.
Had just settled down for some syn and some ack.
;; A small self applicable scheme->llvm compiler.
;; , Tobias Nurmiranta
;;
;; -- To Use It --
;; Reads scheme-code from standard input.
;; cat code.ss|mzscheme --script compile.ss|llvm-as -f -o=test.bc;lli test.bc
;;
;; The compiler is painfully slow since it for testing purposes
;; compiles all help functions as well (see variable bootstrap).
;; It extends standard scheme with a subset of available
@zellio
zellio / fbterm-hacks.md
Last active November 30, 2023 06:45
fbterm, installation and configuration hacks

fbterm setup and config hacks

Installation and setup

Install fbterm via your favorite package manager

pacman -S fbterm
@djaiss
djaiss / gist:2938259
Created June 15, 2012 19:13
PHP List of countries
<?php
$countries =
array(
"AF" => "Afghanistan",
"AL" => "Albania",
"DZ" => "Algeria",
"AS" => "American Samoa",
"AD" => "Andorra",
"AO" => "Angola",