This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -Modules Hyper-V | |
| $_root = "E:\windows11" | |
| $iso = ".\output\windows11.iso" | |
| $vmName = 'win11' | |
| $swName = 'Eth Switch' | |
| $FunctionsToExport = @() | |
| function Remove-TestVM { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -RunAsAdministrator | |
| # launch: powershell -NoLogo -ExecutionPolicy ByPass .\Desktop\Clean-Bloatware.ps1 | |
| # crap removal | |
| $apps = @( | |
| 'Microsoft.549981C3F5F10', # cortana | |
| 'Microsoft.BingNews', | |
| 'Microsoft.GetHelp', | |
| 'Microsoft.Getstarted', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # preparation | |
| sudo apt-get install -y unzip | |
| # Collect Crucial firmwares | |
| t=$(mktemp -d) | |
| mkdir "$t/output" | |
| cd "$t" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.5' | |
| networks: | |
| default: | |
| services: | |
| nginx: | |
| image: nginx:alpine | |
| restart: unless-stopped | |
| deploy: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.7' | |
| networks: | |
| dmz: | |
| external: true | |
| name: traefik2 | |
| internal: | |
| internal: false | |
| services: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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, |