Skip to content

Instantly share code, notes, and snippets.

@kasajian
kasajian / m3-downloader.bat
Created October 23, 2020 07:18 — forked from a-sync/m3-downloader.bat
m3 archívum URL vagy M3- ill. RADIO- azonosító alapján letölti a műsort youtube-dl segítségével
@if (@a==@b) @end /*
@echo off
setlocal
if "%~1"=="/?" goto usage
if %0 == "%~0" (
title m3-downloader.bat
set /p INPUT="ID/URL: "
) else (
set "INPUT=%~1"
@kasajian
kasajian / embedded_nodejs.bat
Created October 23, 2020 07:09 — forked from a-sync/embedded_nodejs.bat
A single batch file that downloads a nodejs binary and runs the code embedded in itself. (for windows 7 and above)
if ("0"=="1") /*
@echo off
set args=%*
setlocal ENABLEDELAYEDEXPANSION
if not exist %TEMP%\node.exe (
echo DOWNLOADING RUNTIME...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://nodejs.org/dist/latest/win-x64/node.exe', '%TEMP%\node.exe')"
echo DOWNLOAD COMPLETE!
)