Skip to content

Instantly share code, notes, and snippets.

@LordVeovis
LordVeovis / LaunchVMDeployment.ps1
Created January 29, 2024 18:21
Unattended Windows 11 deployment
#Requires -Modules Hyper-V
$_root = "E:\windows11"
$iso = ".\output\windows11.iso"
$vmName = 'win11'
$swName = 'Eth Switch'
$FunctionsToExport = @()
function Remove-TestVM {
@LordVeovis
LordVeovis / Clean-Bloatware.ps1
Last active May 25, 2025 10:36
Quick setup a workstation on Windows 11
#Requires -RunAsAdministrator
# launch: powershell -NoLogo -ExecutionPolicy ByPass .\Desktop\Clean-Bloatware.ps1
# crap removal
$apps = @(
'Microsoft.549981C3F5F10', # cortana
'Microsoft.BingNews',
'Microsoft.GetHelp',
'Microsoft.Getstarted',
@LordVeovis
LordVeovis / VMKeystrokes.ps1
Created October 9, 2023 12:44
VMware keystrokes fr layout
<#PSScriptInfo
.VERSION 1.0.1
.GUID 4b78ccc0-dfb5-44bb-b550-1cfb0b194585
.AUTHOR William Lam
.COMPANYNAME VMware
.COPYRIGHT Copyright 2020, William Lam
.TAGS VMware ScanCode
.LICENSEURI
.PROJECTURI https://github.com/lamw/vghetto-scripts/blob/master/powershell/VMKeystrokes.ps1
.ICONURI https://blogs.vmware.com/virtualblocks/files/2018/10/PowerCLI.png
@LordVeovis
LordVeovis / bootstrap-memtest.sh
Last active June 19, 2023 18:33
grub.cfg (pxe alpha)
#!/bin/sh
tftp_root=$1
workdir=$(mktemp -d)
url='https://www.memtest86.com/downloads/memtest86-usb.zip'
command -v apt
if [ "_$?" = "_0" ]; then
apt-get update
@LordVeovis
LordVeovis / crucial.bash
Created June 12, 2023 22:21
Fetch all MXxxx firmware for use with msecli
#!/bin/bash
# preparation
sudo apt-get install -y unzip
# Collect Crucial firmwares
t=$(mktemp -d)
mkdir "$t/output"
cd "$t"
version: '3.5'
networks:
default:
services:
nginx:
image: nginx:alpine
restart: unless-stopped
deploy:
version: '3.7'
networks:
dmz:
external: true
name: traefik2
internal:
internal: false
services:
@LordVeovis
LordVeovis / Generate-ServerCertificate.ps1
Last active June 28, 2022 18:27
Generate-ServerCertificate.ps1
# ex: New-WorkstationCertificate -ComputerName WKS-LINUX
function Get-RandomPwd {
param([int]$Length = 20)
# digits + lowercase + uppercase
$res = -join ((48..57) + (65..90) + (97..122) | Get-Random -Count $Length | % {[char]$_})
return $res
}
@LordVeovis
LordVeovis / upgrade-alpine-3.15.sh
Last active April 22, 2022 13:11
Upgrade Alpine 3.15
#!/bin/sh
# wget -O '/etc/local.d/upgrade-alpine-3.15.start' 'https://gist.github.com/LordVeovis/03da6d5e39e0cc487b2da2218d0304ee/raw/7468f5c31cd4d64094d9a2b59ef642967ba3f52c/upgrade-alpine-3.15.sh'
# chmod +x /etc/local.d/upgrade-alpine-3.15.start
CURRENT=3.14
NEXT=3.15
SCRIPT_ME=$PWD/$0
UPGRADE_LOCAL_SCRIPT=/etc/local.d/upgrade-alpine-3.15.start
<!-- Office 2021 enterprise client configuration file sample. To be used for Office 2021
enterprise volume licensed products only, including Office 2021 Professional Plus,
Visio 2021, and Project 2021.
Do not use this sample to install Office 365 products.
For detailed information regarding configuration options visit: http://aka.ms/ODT.
To use the configuration file be sure to remove the comments
The following sample allows you to download and install Office 2021 Professional Plus,