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 hidden or 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 hidden or 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 | |
| SET CodePath= | |
| REM Visual Studio Code 64-bit user | |
| CALL :GetUninstallPath "HKEY_CURRENT_USER" "{771FD6B0-FA20-440A-A002-3B3BAC16DC50}_is1" "InstallLocation" | |
| IF "%CodePath%" EQU "" ( | |
| REM Visual Studio Code 64-bit | |
| CALL :GetUninstallPath "HKEY_LOCAL_MACHINE" "{EA457B21-F73E-494C-ACAB-524FDE069978}_is1" "InstallLocation" | |
| IF "%CodePath%" EQU "" ( |
These are the default keyboard shortcuts for Transcribe, organized by category.
| Space | Z | ; | . | , |
|---|---|---|---|---|
| Play | Play from marker (while held) | Play from current (while held) | Stop | Play/Pause |
This file contains hidden or 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 hidden or 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
| export PS1='\033[0;37m\342\224\214\342\224\200\e[0;36m$(code=${?##0};echo ${code:+\033[0;37m[\033[0;31m\342\234\227\033[0;37m]\342\224\200})\033[0;37m[\e[0;33m\u\e[0;37m@\e[0;33m\h\e[0;37m]\342\224\200[\e[0;36m\A\e[0;37m]\342\224\200[\033[0;32m\w\033[0;37m]\n\033[0;37m\342\224\224\342\224\200[\033[0;34m\!\033[0;37m]\342\224\200\342\225\274 \033[0m' |
This file contains hidden or 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 hidden or 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 hidden or 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
| $md5sum = Get-Content '.\test.md5' | Select-String -Pattern '^([0-9a-fA-F]+) ([ \*])(.+)' | ForEach-Object { $hash,$binary, $path = $_.Matches[0].Groups[1..3].Value; [PSCustomObject] @{Hash=$hash; Binary=[Bool]($binary -eq '*'); Path=$path } } | |
| $md5sum | ForEach-Object { if ($_.Hash.ToLower() -eq (Get-FileHash $_.Path -Algorithm MD5 -ErrorAction SilentlyContinue -ErrorVariable HashError).Hash) { "$($_.Path): OK" } else { if ($HashError) { "$HashError`n$($_.Path): FAILED open or read" } else { "$($_.Path): FAILED" } } } |
This file contains hidden or 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
| <# | |
| .SYNOPSIS | |
| Scoop Bootstrap Script Generator | |
| .DESCRIPTION | |
| Create a scoop bootstrap, copying config from an existing installation. | |
| .EXAMPLE | |
| PS C:\> ./scoop-bootstrap-generator.ps1 | Out-File scoop-bootstrap.ps1 |