The maintained version now lives at Enable & Using vGPU Passthrough, part of scyto/homelab-docs.
Questions or troubleshooting? Continue the conversation here — a Q&A discussion where replies thread properly, answers can be marked, and everything is searchable. The 188 comments below stay exactly where they are as an archive.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| need_cmd() { command -v "$1" >/dev/null 2>&1 || { echo "Missing: $1" >&2; exit 1; }; } | |
| need_cmd jq | |
| OS="$(uname -s)" | |
| if [[ "$OS" != "Darwin" ]]; then | |
| echo "This script is macOS-only (Darwin). Current: $OS" >&2 | |
| exit 1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mixed-port: 7890 | |
| allow-lan: true | |
| mode: rule | |
| log-level: info | |
| ipv6: true | |
| unified-delay: false | |
| tcp-concurrent: false | |
| profile: | |
| store-selected: true |
Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.
- On the host set up OpenSSH for Windows
- Run
wsl --updateto make sure you are running the latest WSL - Open WSL and install another SSH server inside WSL with
sudo apt-get install openssh-server - Now run
sudo systemctl enable --now sshto automatically start ssh when WSL starts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Create a GPU-P Guest driver package. | |
| .DESCRIPTION | |
| Gathers the necessary files for a GPU-P enabled Windows guest to run. | |
| .EXAMPLE | |
| New-GPUPDriverPackage -DestinationPath '.' | |
| .EXAMPLE | |
| New-GPUPDriverPackage -Filter 'nvidia' -DestinationPath '.' | |
| .INPUTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| rev="12" | |
| _log(){ | |
| echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log | |
| } | |
| _log_para(){ | |
| echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /home/pi/.config/lxsession/LXDE-pi/autostart before Buster | |
| # /etc/xdg/lxsession/LXDE-pi/autostart on Buster | |
| @lxpanel --profile LXDE-pi | |
| @pcmanfm --desktop --profile LXDE-pi | |
| @xscreensaver -no-splash | |
| @point-rpi | |
| @sh /home/pi/bin/start-chromium.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #EXTINF:-1,北京卫视4K | |
| rtp://239.3.1.22:8001 | |
| #EXTINF:-1,云南卫视 | |
| rtp://239.3.1.26:8108 | |
| #EXTINF:-1,四川卫视 | |
| rtp://239.3.1.29:8288 | |
| #EXTINF:-1,广西卫视 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Bear Theme with Typora | |
| * | |
| * @version : 0.0.1 | |
| * @update : 2018/09/08 | |
| * @homepage: https://gist.github.com/Kenshin/e5adc79da3149315bdfd72a35b70d65e | |
| * @license : MIT https://github.com/kenshin/mduikit/blob/master/LICENSE | |
| * @author : Kenshin Wang <kenshin@ksria.com> | |
| * | |
| * @copyright 2018 |
NewerOlder