Skip to content

Instantly share code, notes, and snippets.

#On Win PC
$Dir = "$env:ProgramData\Tailcat"
$Exe = "$Dir\tailcat.exe"
$Target = Read-Host 'Destination IP:port'
if (-not (Test-Path $Exe)) {
New-Item -ItemType Directory -Path $Dir -Force | Out-Null
$Zip = "$Dir\tailcat.zip"
Invoke-WebRequest 'https://github.com/tailscale/tailcat/releases/download/v0.8.0/tailcat_0.8.0_windows_amd64.zip' -OutFile $Zip -UseBasicParsing
Expand-Archive $Zip -DestinationPath $Dir -Force
@reboot81
reboot81 / gist:a07506c5be857d89f540fd0427d768b5
Created July 27, 2025 23:19
Unraid awake if Parity-Check in progress
# Abort sleep if a parity check is in progress
if awk -F= '/mdResync(Pos|Size)/ { a[$1]=$2 } END { exit !(a["mdResyncSize"] > 0 && a["mdResyncPos"] < a["mdResyncSize"]) }' /proc/mdstat; then
logger "Parity check in progress – skipping sleep"
exit 1
fi
@reboot81
reboot81 / README.md
Last active June 14, 2024 20:50 — forked from jpluimers/README.md
datto comp: Wake-on-LAN.ps1 PowerShell script for sending Wake-on-LAN magic packets to given machine's hardware MAC address

datto comp: Wake-on-LAN.ps1: a Wake-on-LAN PowerShell script

datto comp: Wake-on-LAN.ps1 PowerShell script for sending Wake-on-LAN magic packets to given machine's hardware MAC address

Adopted to work with datto rmm.

This script originated is a modification [Wayback] WakeUp-Machines.ps1 by Matthijs ten Seldam, Microsoft that has the drawback of requiring a text file with the machines to wake up, and (before his change) the original reliance on the above mentioned [Wayback] WolCmd.exe in the current

@reboot81
reboot81 / index.html
Created September 6, 2021 21:46 — forked from Lakerfield/index.html
Print ZPL from browser
<!doctype html>
<html lang="en">
<head>
<title>Print ZPL from browser</title>
</head>
<body>
<h1>Test page for print ZPL from browser!</h1>
<script type="text/javascript">
function printZpl(zpl) {
@reboot81
reboot81 / install_wormhole.bat
Last active October 24, 2020 16:42 — forked from princebot/install_wormhole.bat
Install Python magic-wormhole on Windows.
::
:: This script installs wormhole (https://github.com/warner/magic-wormhole) and
:: its prerequisites. Run this as an administrator.
:: Will force TLS1.2 for the PS Session.
::
:: Install chocolatey.
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(([System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12)); iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"
SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"