Skip to content

Instantly share code, notes, and snippets.

@nlvw
nlvw / wsl-vpnkit.ps1
Created February 14, 2023 23:00
WSL2 VPNKit Install and auto stop/start with Cisco Anyconnect
#Requires -Version 5.1
param (
[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()][String]$WSLPath
)
# Validate Windows 11
if (!((Get-ComputerInfo | Select-Object -expand OsName) -match 11)) {
Write-Host -ForegroundColor Red "Windows 11 is Required!"
exit 11
"""
This module provides objects to control the HIDGuardiand driver.
This is achieved by modifying registry values that the driver looks for.
Classes can be used independantly or through the HidGuardian class
"""
import winreg
class AffectedDevices(object):
"""Manipulate a REG_Multi_SZ value to define HID devices
@nlvw
nlvw / StarCitizenBasic.tmc
Last active September 28, 2018 04:33
Basic Thrustmaster TARGET Script the combines 2 T16000M Joysticks for Star Citizen
//Created by: Wolfereign
//Date: 10Dec2017
//Target Version 3.0.16.615 v2
//General Notes:
//Hardware = T16000M, T16000M (w/ Left Switch Enabled)
//Every Time you run this script make sure the sticks get assigned correctly
include "target.tmh"
//create aliases