Skip to content

Instantly share code, notes, and snippets.

@NotRealWelder
NotRealWelder / root-check.sh
Created December 12, 2025 12:54
root check
[[ $EUID -ne 0 ]] && { echo "GET OUT, BITCH."; exit 1; }
@NotRealWelder
NotRealWelder / restart-HASP.bat
Last active November 27, 2025 20:16
Restart HASP License Manager
@echo off
set "SERVICE_NAME=HASP Loader"
net stop "%SERVICE_NAME%" >nul 2>&1
if errorlevel 1 (
taskkill /F /FI "SERVICES eq %SERVICE_NAME%" >nul 2>&1
if errorlevel 1 (
exit /b 1
)
)
timeout /t 3 >nul
@NotRealWelder
NotRealWelder / winget-installer.ps1
Created November 23, 2025 10:24
an easy way to install winget
<#
.SYNOPSIS
Minimal winget installer
.DESCRIPTION
Downloads and installs winget with dependencies and license
#>
param(
[switch]$Force
)