Skip to content

Instantly share code, notes, and snippets.

[Interface]
Address = 10.0.0.1/24
ListenPort = 55107
PrivateKey =
MTU = 1380
PostUp = ip neigh replace proxy 116.203.3.x dev eth0
PostDown = ip neigh delete proxy 116.203.3.x dev eth0
@RobinBeismann
RobinBeismann / Commands
Last active July 17, 2023 21:54
Proxmox iGPU Passthrough (11th Gen)
update-grub && update-initramfs -u -k all
# If using Proxmox Dist:
proxmox-boot-tool refresh
<#
You running this script/function means you will not blame the author(s) if this breaks your stuff.
This script/function is provided AS IS without warranty of any kind. Author(s) disclaim all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose.
The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall author(s) be held liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the script or documentation.
Neither this script/function, nor any part of it other than those parts that are explicitly copied from others, may be republished without author(s) express written permission. Author(s) retain the right to alter this disclaimer at any time.
#>
#region Static Definitions
[array]$Clusters
#
# This tool reads the Attributes ATTRPREFIX-Autologon-Domain, ATTRPREFIX-Autologon-Enabled, ATTRPREFIX-Autologon-Password, ATTRPREFIX-Autologon-Username and uses Sysinternals Autologin to configure it on the client
# Logging is done to the Application Event Log
#
#region Static Variables
# Logging Settings
$script:LoggingOptions = "EventLog", "Host"
$script:LogSource = "Invoke-AutoLogonConfig"
@RobinBeismann
RobinBeismann / .env
Created September 27, 2022 20:22
Pterodactyl via docker-compose
# Docker compose container prefix
COMPOSE_PROJECT_NAME=pterodactyl
# Data directory
DATA_DIR=./data
# Full path to wings volumes data
# NOTE: This path has to match the "Daemon Server File Directory" path you apply when creating a node in the panel!
# The default setting is "/var/lib/pterodactyl/", however this can be changed to something like:
# "/srv/docker/docker-pterodactyl/data/wings/lib/volumes" in order to store everything in one place, just make sure the paths in panel and here match!
[array]$AppName = "Microsoft Visual C++ 2015-2019", "Microsoft Visual C++ 2015-2022"
[version]$RequiredVersion = "14.27.29112.0"
[string]$Architecture = "x64"
[array]$Hives = "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\",
"Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
$Hives | ForEach-Object {
Get-ChildItem -Path $_ | ForEach-Object {
$Properties = $_ | Get-ItemProperty
# General Settings
$exportDir = "$env:workspace\uploadArtifacts\"
$exportFile = "AbsenceExport.csv"
$exportPath = "$exportDir\$exportFile"
# AAD Credentials
$ClientSecret = $env:aadSecret
$ClientId = $env:aadId
$TenantId = $env:tenantId
$groupName = $env:aadGroup
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="swaggerwcf" type="SwaggerWcf.Configuration.SwaggerWcfSection, SwaggerWcf" />
<section name="lithnetResourceManagementClient" type="Lithnet.ResourceManagement.Client.ClientConfigurationSection, Lithnet.ResourceManagement.Client" />
</configSections>
<appSettings>
<add key="pageCacheIntervalSeconds" value="60" />
</appSettings>
<swaggerwcf>
if($membersToAdd.Count -gt 0){
Write-Host("Writing membersToAdd")
$chunkArr = $membersToAdd
$chunks = [System.Collections.ArrayList]::new()
for ($i = 0; $i -lt $chunkArr.Count; $i += 20) {
if(($chunkArr.Count - $i) -gt 19) {
$null = $chunks.add($chunkArr[$i..($i + 19)])
}else{
$null = $chunks.add($chunkArr[$i..($chunkArr.Count - 1)])
$installParams = @(
"--jc-name `"$($env:computername)`"",
"--install-dir `"$AgentInstallPath`"",
"--jc-jump-group `"jumpgroup:$BomgarJumpGroup`"",
"--jc-session-policy-present `"$BomgarSessionPolicy_Customer_present`"",
"--jc-session-policy-not-present `"$BomgarSessionPolicy_Customer_not_present`"",
"--silent"
)
Write-Log -Message "Installing Bomgar to $AgentInstallPath"
Write-Log -Message "Executing: $binary $($installParams -join " ")"