Skip to content

Instantly share code, notes, and snippets.

View digitalformula's full-sized avatar

digitalformula digitalformula

View GitHub Profile
@digitalformula
digitalformula / qnap_emby_nvidia.md
Created November 24, 2023 05:55 — forked from miooochi/qnap_emby_nvidia.md
Some hacks around using NVIDIA GPU for Emby Container with QNAP

Hacks

Some hacks around using NVIDIA GPU for Emby Container with QNAP

Make sure you have NVIDIA driver installed already

Check NVIDIA Driver Path

find /share/ -name "NVIDIA_GPU_DRV"
@digitalformula
digitalformula / cluster.json
Created August 2, 2017 05:39
Output from Nutanix CE 2017.05.22 - "cluster" object via API 2.0
{
"id": "000552d3-5320-5e42-1830-d8cb8ac3e5bf::1743131424510436799",
"uuid": "000552d3-5320-5e42-1830-d8cb8ac3e5bf",
"cluster_incarnation_id": 1498442469760578,
"cluster_uuid": "000552d3-5320-5e42-1830-d8cb8ac3e5bf",
"name": "CE-Lab",
"cluster_external_ipaddress": null,
"cluster_external_data_services_ipaddress": null,
"timezone": "Australia/Melbourne",
"support_verbosity_type": "BASIC_COREDUMP",
@digitalformula
digitalformula / salt-nginx-webserver.sh
Created April 25, 2017 07:09
SaltStack & Nginx Webserver Bootstrap
#!/bin/bash
# download and run the SaltStack bootstrap installer
curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
sh bootstrap-salt.sh git develop
# stop the salt-minion service in preparation for reconfiguration
systemctl stop salt-minion
# create the required directory for Salt state files to live
@digitalformula
digitalformula / nutanix-cluster-info.py
Created February 15, 2016 12:28
nutanix-cluster-info.py - Updated variable substitution section for @MillenniaTom
# substitute the template variables for actual cluster data
template = source_html.safe_substitute(
day=day,
now=time,
name=name,
username=getpass.getuser(),
cluster_name=str(cluster_in["name"]),
cluster_ip=str(cluster_in["clusterExternalIPAddress"]) if cluster_in["clusterExternalIPAddress"] else "Not set",
nodes=str(cluster_in["numNodes"]),
nos=str(cluster_in["version"]),