Skip to content

Instantly share code, notes, and snippets.

@anomixer
anomixer / Remove_VMwareTools.ps1
Created August 28, 2024 03:23 — forked from broestls/Remove_VMwareTools.ps1
Force removal of VMware Tools, Program Files, and Windows Services
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes.
# This function pulls out the common ID used for most of the VMware registry entries along with the ID
# associated with the MSI for VMware Tools.
function Get-VMwareToolsInstallerID {
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) {
If ($item.GetValue('ProductName') -eq 'VMware Tools') {
return @{
reg_id = $item.PSChildName;

Enable & Using vGPU Passthrough

This gist is almost entirely not unlike Derek Seaman's awesome blog:

Proxmox VE 8: Windows 11 vGPU (VT-d) Passthrough with Intel Alder Lake

As such please refer to that for pictures, here i will capture the command lines I used as i sequence the commands a little differently so it makes more logic to me.

This gists assumes you are not running ZFS and are not passing any other PCIE devices (as both of these can require addtional steps - see Derek's blog for more info)

This gist assumes you are not running proxmox in UEFI Secure boot - if you are please refer entirely to dereks blog.

@anomixer
anomixer / readme.md
Created July 17, 2024 08:19 — forked from Keenuts/readme.md
GSoC 2017 | Virgl Windows Driver

GSOC 2017 | Virgl Windows Driver

Project links

The project is split into several parts:

  • The kernel driver, with simple 3D command forwarding and 3D resource allocation
  • The userland driver, in fact the OpenGL backend
  • The reference, explaining virtio-gpu commands

https://github.com/Keenuts/virtio-gpu-win-icd \

@anomixer
anomixer / testrcebug.sh
Last active July 10, 2024 07:12
Test RCE Bug (CVE-2024-29510)
#!/bin/bash
# Details: https://www.bleepingcomputer.com/news/security/rce-bug-in-widely-used-ghostscript-library-now-exploited-in-attacks/
if [ ! -f CVE-2024-29510_testkit.ps ]; then
cat > CVE-2024-29510_testkit.ps << EOF
%!PS
% Run like this:
% ghostscript -q -dBATCH -dNODISPLAY CVE-2024-29510_testkit.ps
@anomixer
anomixer / install_xrdp.sh
Last active June 27, 2024 03:45 — forked from ElRoberto538/install_xrdp.sh
Notes for installing XorgXrdp and Xrdp with GLAMOR and GFX support
#!/bin/bash
# Install Latest XRDP with XORGXRDP and GFX
BUILD_DIR=/tmp/xrdpbuild
# Prepare Build Directory
rm -f -r $BUILD_DIR
mkdir -p $BUILD_DIR
# Install Dependencies - Dev
@anomixer
anomixer / xrdp-intel-setup.sh
Created June 20, 2024 07:43 — forked from mattisz/xrdp-intel-setup.sh
Setup for Intel acceleration and XRDP
#!/usr/bin/env bash
set -e
sudo -v
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y
@anomixer
anomixer / setup-freerdp.sh
Created June 20, 2024 05:45 — forked from Nexarian/setup-freerdp.sh
Install FreeRDP
#!/usr/bin/env bash
set -e
sudo -v
sudo apt install -y make git g++ nasm
git clone https://github.com/cisco/openh264.git ~/openh264
cd ~/openh264
@anomixer
anomixer / xrdp-nvidia-setup.sh
Created June 20, 2024 05:45 — forked from Nexarian/xrdp-nvidia-setup.sh
Setup for XRDP using Nvidia Acceleration
#!/usr/bin/env bash
set -e
cd ~
sudo -v
# Make sure system is in a good, updated, clean, state.
sudo apt-get -y update
#!/usr/bin/env bash
set -e
cd ~
sudo -v
sudo apt-get -y install nvidia-prime vim git mesa-utils net-tools \
gnupg2 software-properties-common apt-transport-https gpg wget \
@anomixer
anomixer / xrdp-setup-no-hw-accel.sh
Created June 20, 2024 05:45 — forked from Nexarian/xrdp-setup-no-hw-accel.sh
XRDP setup with only CPU encoding. No hardware acceleration
#!/usr/bin/env bash
set -e
sudo -v
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get autoremove -y