Skip to content

Instantly share code, notes, and snippets.

View numbersixnz's full-sized avatar

numbersixnz numbersixnz

  • Melbourne, AU
View GitHub Profile
#!/bin/bash
# Script to setup Proxmox API tokens
# Specifically for use with Home Assistant
# add user
pveum user add hass@pve -comment "Home Assistant"
# set user password
# you will be prompted for the new user's password here
@numbersixnz
numbersixnz / qnap_emby_nvidia.md
Created November 24, 2023 05:55 — forked from piyoki/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"
@numbersixnz
numbersixnz / 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",
@numbersixnz
numbersixnz / 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
@numbersixnz
numbersixnz / 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"]),