Chained XOR. To decrypt, XOR the nth byte with the key, XOR the key with that decrypted byte and repeat until the EOF mark is hit. Initial key is the integer 77.
This file contains 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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"alwaysShowTabs": true, | |
"copyOnSelect": false, | |
"copyFormatting": false, | |
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"initialCols": 120, | |
"initialRows": 40, | |
"keybindings": [ | |
{ |
This file contains 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
@echo off | |
setlocal enabledelayedexpansion | |
REM Convert mame folder ini file to CSV rom=value format | |
if "%~1" equ "" ( | |
echo Need ini filename. | |
goto :eof | |
) | |
echo "rom","value" | |
set section= |
This file contains 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
@ECHO OFF | |
SETLOCAL | |
for /f "tokens=1,2,*" %%a in ('reg.exe query "HKEY_LOCAL_MACHINE\SOFTWARE\Artifex\GPL Ghostscript\9.55.0" /ve') do set "UAC=%%c" | |
SET GSWIN64C=%UAC%\bin\gswin64c.exe | |
IF NOT EXIST "%GSWIN64C%" ( | |
ECHO Can't find %GSWIN64C% | |
ECHO Download Windows 64 bit from https://ghostscript.com/releases/gsdnld.html |
This file contains 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
@echo off | |
setlocal | |
if "%~1"=="" ( ECHO Specify DNS server to verify, e.g. %~nx0 192.168.1.17 & GOTO :EOF) | |
set DNSSERVER=%~1 | |
REM To have this script run on user login: | |
REM | |
REM taskschd.msc | |
REM Action, Create Basic Task | |
REM Name: verify_htpc_pihole |
This file contains 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
@echo off | |
setlocal | |
REM Set codepage to UTF-8 | |
chcp 65001 > NUL | |
echo. | |
REM Hidden ESC character on next line. | |
set ESC= | |
GOTO :MAIN |
This file contains 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
@ECHO OFF | |
REM Burst a PDF Document into Single Pages using qpdf - https://github.com/qpdf/qpdf | |
SETLOCAL | |
IF "%~1"=="" ( | |
ECHO PDF_filename | |
ECHO Example: %~nx0 document.pdf | |
GOTO :EOF | |
) |
This file contains 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
# Powershell: No Rules calendar (ICAL import) | |
[cmdletbinding()] # Support -Verbose | |
Param( | |
# Google Calendar URL. | |
# Calendar Settings > Calendar Details > Calendar Address > ICAL | |
# Settings for my calendars > [Calendar Name] > Integrate calendar > Public address in iCal format | |
[string]$ICalUrl = 'https://calendar.google.com/calendar/ical/FILL_THIS_IN/public/basic.ics', | |
# If False, then only events after the current day are displayed. | |
[switch]$AllEvents = $False, |
This file contains 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
@echo off | |
REM Normalize mp3 and flac files in currently directory using ffmpeg-normalize | |
REM https://github.com/slhck/ffmpeg-normalize/ | |
setlocal | |
goto :main | |
:normalize_file | |
setlocal |
This file contains 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
Function DownloadLatestPS { | |
Param([Parameter(Mandatory=$true)][string]$Folder) | |
$json = curl -s 'https://api.github.com/repos/PowerShell/PowerShell/releases/latest' | ConvertFrom-Json | |
$ps = $json.assets | Where-Object name -Like 'PowerShell-*-win-x64.msi' | |
"Downloading: {0}" -f $ps.name | |
$oldpp = $progresspreference | |
$progresspreference = 'SilentlyContinue' |
OlderNewer