Skip to content

Instantly share code, notes, and snippets.

View nader-eloshaiker's full-sized avatar

Nader Eloshaiker nader-eloshaiker

View GitHub Profile
@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

@sekati
sekati / xcode-build-bump.sh
Created July 24, 2012 20:44
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
@nathanclark
nathanclark / gist:1284613
Created October 13, 2011 15:55
Box2D touch wheel rotation
//
// HelloWorldLayer.mm
//
// Created by Nathan Clark on 10/13/11.
// Copyright self 2011. All rights reserved.
//
// Import the interfaces
#import "HelloWorldLayer.h"