Skip to content

Instantly share code, notes, and snippets.

View christian-korneck's full-sized avatar
💭
I may be slow to respond.

Christian Korneck christian-korneck

💭
I may be slow to respond.
View GitHub Profile
@christian-korneck
christian-korneck / powershell-grep.md
Last active April 14, 2024 12:54
Unix-like destructive grep in Powershell

Powershell pure text grep (grepp)

what

A grep command (grepp) in Powershell that lets you grep for a string in the text that would usually be printed in the terminal (not some other representation of the data). Output is a string, not a pipeline anymore - thus destructive.

why

To quickly grep through shell output without having to do where-object gymnastics.

@christian-korneck
christian-korneck / win11_compat.md
Last active November 8, 2024 00:04
Win11 install - bypass compatibility checks (no TPM, no UEFI, etc)

in Windows setup: SHIFT + F10 opens a cmd shell. Then regedit.

[HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]
"BypassTPMCheck"=dword:00000001
"BypassSecureBootCheck"=dword:00000001
"BypassRAMCheck"=dword:00000001
"BypassStorageCheck"=dword:00000001
"BypassCPUCheck"=dword:00000001
"BypassDiskCheck"=dword:00000001
@christian-korneck
christian-korneck / proxmox_vmlookup.md
Last active August 24, 2024 03:02
Proxmox vmlookup - nslookup but for Proxmox VMs - Proxmox get VM IP

vmlookup - get IP(s) for Proxmox VM name

bash alias for a vmlookup command (nslookup but for Proxmox). Uses qm and jq.

install

put in .bashrc:

function vmlookup () {