Skip to content

Instantly share code, notes, and snippets.

@Computer-Tsu
Computer-Tsu / .UUID-GUID.md
Last active October 21, 2025 13:18
Working with UUID, GUID, MAC addresses

UUID and GUID

IT techs that use imaging/deployment and/or DHCP/PXE will often be working with a computer's GUID, UUID, or MAC address. For example, you have received a shipment of new desktops and are preloading your Windows Active Directory with the new computer names in the desired OU. You will then be ready to boot them and have the new computers network PXE and start installing your company base image. The packaging gives you the UUID but you need to provide the GUID to the computer proerties in AD.

Some tools to help convert back and forth between the different formats.

Example:
WFLGNVLAB01
UUID: 457A9480-E7BE-11E2-9C6A-8851FB69DFA3
GUID: 80947A45-BEE7-E211-9C6A-8851FB69DFA3

@Computer-Tsu
Computer-Tsu / Unblock-File.bat
Last active July 24, 2025 23:42
Unblock a downloaded file from the Internet
REM DIR /R
echo.> "MyDownloadedFile.exe":Zone.Identifier
REM echo.>"OfficeSetup (1).exe:SmartScreen:$DATA"
@Computer-Tsu
Computer-Tsu / Move to Display.md
Last active September 2, 2024 21:47
Move Windows program to different monitor screen

Make the application current focus

  • Win + Tab
  • Alt + Tab
  • click on Task Bar

Windows Hotkey

  • Win + Shift + Right arrow :window: + Shift + :arrow_right:

  • Win + Shift + Left arrow →

@Computer-Tsu
Computer-Tsu / Windows Safe Mode Install Uninstall.cmd
Created June 27, 2023 02:22
How to Run Windows Installer in Safe Mode Windows 10 with Command Prompt
REM How to Run Windows Installer in Safe Mode Windows 10 with Command Prompt
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service"
net start msiserver
@Computer-Tsu
Computer-Tsu / Prompt.txt
Last active June 27, 2023 03:09
Command prompt SET PROMPT for Microsoft Windows CMD
set prompt=$T$H$H$H$H$H$H$S%computername%\%username%$S$M$P$+$G
22:14 DESKTOP\User C:\Users\User>
set prompt=$T$H$H$H$H$H$H$S%UserName%@%ComputerName%$B$M$P$+$G
@Computer-Tsu
Computer-Tsu / #Protection
Last active August 30, 2023 11:56
Protection from Internet, malware, websites, URLs
Collection of DNS service IPs and URLs for blocking malware
@Computer-Tsu
Computer-Tsu / tattle.md
Last active October 22, 2025 19:18
Report Malware, Website
@ebelliveau
ebelliveau / WSL-Networking.ps1
Created December 21, 2022 04:49
Port forwarding to WSL2 guest on Windows host IP (PowerShell)
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@chrismooredev
chrismooredev / update_mtu.sh
Last active November 12, 2024 00:53
Script to set WSL eth0 MTU to the same as a (lower) Pulse Secure Juniper Networks adapter MTU
#!/bin/bash
# Sets the WSL eth0 adapter to the same MTU as a Juniper Networks Virtual Adapter, from the Windows side.
# This can help make certain connections (SSH/HTTPS specifically) more stable/reliable, as they can use
# larger packets when initiating connections or sending large chunks of data.
# Recommended to run in ~/.profile to persist across reboots. Remember to make this script executable.
# Add to sudoers file if running in ~/.profile
# %sudo ALL=(ALL) NOPASSWD: /usr/sbin/ip link set mtu * dev *
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active October 14, 2025 08:35
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List