Skip to content

Instantly share code, notes, and snippets.

View mpvasilis's full-sized avatar

Vasilis Balafas mpvasilis

View GitHub Profile
@Ruffo324
Ruffo324 / Hyper-V PCI-Passthroug.ps1
Last active May 2, 2024 16:56
Hyper-V PCIe passthrough CheatSheet
# Change to name of TARGET-VM.
$vm='CHANGE_ME'
# Change to PCI device location (💡 Location).
$Location = 'CHANGE_ME'
# Enable CPU features.
Set-VM -GuestControlledCacheTypes $true -VMName $vm
# Host-Shutdown rule must be changed for the VM.
Set-VM -Name $vm -AutomaticStopAction TurnOff
@petersellars
petersellars / autokey-github.sh
Last active March 4, 2024 21:23
Automate SSH Key generation on a machine for use with GitHub
#!/bin/bash
# Requirements
# You will need to have created a GitHub Access Token with admin:public_key permissions
# Usage
# chmod +x autokey-github.sh
# ./autokey-github.sh <YOUR-GITHUB-ACCESS-TOKEN>
# Reference