Skip to content

Instantly share code, notes, and snippets.

View gabrielsond's full-sized avatar

Damien Gabrielson gabrielsond

View GitHub Profile
@gabrielsond
gabrielsond / w10_uhd750_gvt-d_11700k_asus_z590-a_with_3070.xml
Created February 9, 2023 23:16
Windows 10 Guest Domain XML Config for Intel 11700K UHD 750 GVT-D Passthrough on an ASUS PRIME Z590-A with NVIDIA RTX 3070 Passthrough
<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>Windows 10</name>
<uuid>05b388a6-370f-c98c-46bc-5778e44022aa</uuid>
<metadata>
<vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
</metadata>
<memory unit='KiB'>26214400</memory>
<currentMemory unit='KiB'>26214400</currentMemory>
<memoryBacking>
@gabrielsond
gabrielsond / arch_uhd750_gvt-d_11700k_asus_z590-a.xml
Created February 8, 2023 01:17
Arch Linux Guest Domain XML Config for Intel 11700K UHD 750 GVT-D Passthrough on an ASUS PRIME Z590-A
<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='6' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>Arch</name>
<uuid>18a0ce83-741e-e70b-9451-103c57a41828</uuid>
<metadata>
<vmtemplate xmlns="unraid" name="Arch" icon="arch.png" os="arch"/>
</metadata>
<memory unit='KiB'>20971520</memory>
<currentMemory unit='KiB'>20971520</currentMemory>
<memoryBacking>
@gabrielsond
gabrielsond / .p10k.zsh
Created June 7, 2022 13:33
My Powerlevel10k Configuration
# Generated by Powerlevel10k configuration wizard on 2022-06-07 at 07:05 CST.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 07197.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, darkest,
# 24h time, vertical separators, sharp heads, slanted tails, 2 lines, solid, left frame,
# sparse, many icons, fluent, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@gabrielsond
gabrielsond / .zshrc
Created June 7, 2022 13:30
My .zshrc
# ----------------------------------------------------------------------------------------------------------------------------------
# Requirements
# ----------------------------------------------------------------------------------------------------------------------------------
# install Oh My Zsh https://ohmyz.sh/
# install Powerlevel10k Fonts:
# https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
# https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
# https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
# https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
# (optional) set MesloLGS NF font in applicable application
@gabrielsond
gabrielsond / unraid_nvidia_overclock.sh
Last active April 14, 2023 15:56
Overclock nvidia at first array start user script for unraid 6.10
#!/bin/bash
##### 2022-05-25 #####
# This script works with unraid 6.10 but it is not ideal and should be properly updated for slackware 15... but has not been.
# There is a hack to temporarily install an old version of nettle. This should not be necessary and should be fixed.
######################
# This Unraid User Script is used to prepare a NVIDIA GPU (3060) for mining after the array starts for the first time.
# This script requires the Nvidia-Driver plugin https://forums.unraid.net/topic/98978-plugin-nvidia-driver/
# In order to run nvidia-settings (set core clock, memory clock, fan, etc.), X must be started temporarily.
# In this script, "/mnt/user/bin/3060/" is the cache drive directory used for dependecies and configuration files.
@gabrielsond
gabrielsond / gaming-dualgpu.cfg
Last active December 21, 2021 00:57
Dual Monitor & GPU Configuration for MultiMonitorTool (NVIDIA DP & Intel DP)
## Dual Monitor & GPU Configuration for MultiMonitorTool (http://www.nirsoft.net)
## Two BenQ EW3270U monitors:
## MonitorA (DP-Intel) (left)
## MonitorB (HDMI & DP-NVIDIA) (right)
## Two GPUs:
## Intel UHD 750 (HDMI & DP)
## NVIDIA RTX 3070 (DP)
## MonitorA is Monitor0 \DISPLAY5 (Intel UHD 750 DP; extended)
## MonitorB is Monitor1 \DISPLAY6 (Intel UHD 750 HDMI; disabled)
## MonitorB is Monitor2 \DISPLAY1 (RTX 3070 DP; primary)
@gabrielsond
gabrielsond / nbminer_ethash_3070v1oc.bat
Last active May 11, 2022 03:00
NBMiner Windows Elevated Script With Overclock Settings for NVIDIA RTX 3070 (V1/Non-LHR) @ 62.5MH/S
@echo off
goto :start
=======================================================================================
ASUS DUAL RTX 3070 OC https://www.techpowerup.com/gpu-specs/asus-dual-rtx-3070-oc.b8031
BIOS https://www.techpowerup.com/vgabios/231668/asus-rtx3070-8192-210308-1
------------------- System -------------------
OS: Windows 10 Version 2009, 10.0.22000
CPU: 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz
RAM: 19357 MB / 32524 MB
@gabrielsond
gabrielsond / 3070V1WindowsOverclock.md
Last active November 7, 2022 17:13
NVIDIA RTX 3070 (V1/Non-LHR) Overclock Settings for MSI Afterburner

NVIDIA RTX 3070 (V1/Non-LHR) Overclock Settings for MSI Afterburner

Tested on ASUS DUAL RTX 3070 OC | BIOS

Gaming (Forza Horizon 5-HDR 4K60 Near Extreme settings)

64-bit Windows 10 Version 21H2 (OS Build 19044.1387)

Attribute Value Note
Core Clock +100
Memory Clock +900
@gabrielsond
gabrielsond / nbminer-checker.sh
Last active October 4, 2021 00:03
NBMiner Checker Bash Script
#!/bin/bash
# -----------------------------------------
# NBMiner Checker Script by
# Damien Gabrielson <gabrielsond@gmail.com>
# Requirements: wget curl jq bc
# -----------------------------------------
COUNTER=0
MAXBAD=5
STARTSECONDS=15
WAITSECONDS=3
@gabrielsond
gabrielsond / xorg.conf
Created September 30, 2021 03:04
X.org Configured for NVIDIA (2x GPU) Compute Only (Virtual Display) for Unraid
# The purpose of this configuration is to use NVIDIA GPU(s) for compute applications (NOT for actual display in Xorg).
#
# The use case for this configuration is enabling an Unraid system to fully function with basic hardware acceleration while
# retaining FULL processing power from discrete GPU(s) for mining, video encoding, etc. In order to enable FULL processing
# power of NVIDIA, nvidia-settings must be used to make overclocking adjustments.
#
# This has been tested with two MSI VENTUS GeForce RTX™ 3060 2X 12G OC LHR
# (https://www.techpowerup.com/gpu-specs/msi-rtx-3060-ventus-2x-oc-lhr.b9132)
#
# Useful resources