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 | |
| echo [+] Restarting explorer.exe... | |
| taskkill /f /im explorer.exe >nul | |
| timeout 2 >nul | |
| start %systemroot%\explorer.exe | |
| echo [+] Starting explorer.exe... | |
| set /p _p= |
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
| // ".gallery" for Wikipedia | |
| // "#gallery-0" for Fandom | |
| Array.prototype.forEach.call(document.querySelector(".gallery").querySelectorAll("div > a"), function(elem) { | |
| console.log(decodeURI(/(File:[^\?]*)/g.exec(elem.href)[1])); | |
| }); |
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
| name: Build executable | |
| on: workflow_dispatch | |
| env: | |
| name: PLACE_REPO_NAME_HERE | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: |
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
| #include <stdio.h> | |
| #include <limits.h> | |
| int main(void) { | |
| int i = CHAR_MIN; | |
| for (; i <= CHAR_MAX; i++) | |
| putchar(i); | |
| } |
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 enableextensions | |
| set stop=:eof | |
| set powershell="%__appdir__%WindowsPowershell\v1.0\powershell.exe" | |
| >nul 2>nul dir /b /a:-d %powershell% || ( | |
| echo Unsupported OS. | |
| goto %stop% | |
| ) |
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
| Set h = WScript.CreateObject("WScript.Shell") | |
| Set oLink = h.CreateShortcut(".\Environment Variables.lnk") | |
| oLink.TargetPath = "%SystemRoot%\System32\rundll32.exe" | |
| oLink.Arguments = "sysdm.cpl,EditEnvironmentVariables" | |
| 'Alternative way | |
| 'oLink.TargetPath = "%SystemRoot%\System32\SystemPropertiesAdvanced.exe" | |
| oLink.IconLocation = "%SystemRoot%\System32\shell32.dll,104" | |
| oLink.Save |
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
| <!-- : Begin batch script | |
| @echo off | |
| setlocal enableextensions enabledelayedexpansion | |
| (set lf=^ | |
| ) | |
| ::net session would not work if the Server service is not started | |
| reg query HKEY_USERS\S-1-5-19\Environment /v TEMP >nul 2>nul || ( | |
| choice /M "Re-run the script as administrator" | |
| if errorlevel 2 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
| @echo off | |
| setlocal enableextensions enabledelayedexpansion | |
| for /f "usebackq eol= delims=" %%a in ('%*') do set sArgs=%%~a | |
| ::Split at last backslash ("\") | |
| for /f "delims==" %%a in ('set _a 2^>nul') do set "%%a=" | |
| (set lf=^ | |
| ) | |
| for %%l in ("!lf!") do set "_a=!sArgs:\=%%~l!" |
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 | |
| :: detect wrapping | |
| :: writePublic defined = jump to :writePublic | |
| :: this evades CTRL-C canceling all operations | |
| :: https://stackoverflow.com/a/27131024 | |
| if "%~1"=="" if defined writePublic (goto writePublic) else (goto noargs) | |
| set writePublic= | |
| setlocal enableextensions enabledelayedexpansion | |
| if "%~1"=="/?" goto help |
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 enableextensions enabledelayedexpansion | |
| if defined hoststreeMain goto main | |
| if "%~1"=="/?" ( | |
| for /f %%A in ('prompt $H ^&echo on ^&for %%B in ^(1^) do rem') do set bs=%%A | |
| echo Creates a HOSTS tree view with hostnames branching out of their resolving IPs. | |
| echo: | |
| echo HOSTSTREE file | |
| echo: | |
| echo !bs! file If none specified, defaults to %%SystemRoot%%\System32\drivers\etc\hosts |
OlderNewer