Skip to content

Instantly share code, notes, and snippets.

param(
[Parameter(Mandatory)][string]$vmName
)
$InformationPreference = "Continue"
$ErrorActionPreference = "Stop"
try {
$vmPartitionAdapter = Get-VMGpuPartitionAdapter -VMName $vmName
if ($vmPartitionAdapter) {
Write-Information "Removing Partition Adapter. Checkpoints work."

Keybase proof

I hereby claim:

  • I am seffyroff on github.
  • I am seffyroff (https://keybase.io/seffyroff) on keybase.
  • I have a public key ASBbmH10gdfd6cNz7mxv1FHFXd8mGoh1CRNGaK_RXbdIvwo

To claim this, I am signing this object:

@seffyroff
seffyroff / elite-focus.ahk
Created August 5, 2022 18:27 — forked from tKe/elite-focus.ahk
AutoHotkey Focus Elite: Dangerous on Joystick Movement
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
SetFormat, float, 03 ;remove decimals from joystick values
;This script will activate your game window whenever
;any joystick axis changes. Handy for when you're
;Alt-Tabbed out of the game on your second monitor.
@seffyroff
seffyroff / BuildProject.xml
Created May 2, 2024 18:37 — forked from regner/BuildProject.xml
A sample BuildGraph script for building, cooking, and packaging an Unreal project.
<?xml version='1.0' ?>
<!--
Why is this one giant script instead of a bunch of smaller scripts?
Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't
really much of a programming language there is no easy way to use an IDE and jump between
includes, find usages of variables, and just generally quickly search things. It was found to
be easier to have a single large file that a developer can quickly jump up and down in when
trying to understand what the BuildGraph script is doing.