Skip to content

Instantly share code, notes, and snippets.

@a-sync
a-sync / update-ffmpeg.bat
Last active December 19, 2023 17:39
Download the latest ffmpeg & ffprobe release from https://www.gyan.dev/ffmpeg/builds/ and replace the global binaries
@echo off
title update-ffmpeg.bat @ https://gist.github.com/a-sync
rem CONFIGURE BUILD: release-essentials / release-full / git-essentials / git-full
set BUILD=release-essentials
rem FIND FFMPEG
for /F "tokens=* USEBACKQ" %%F in (`where ffmpeg`) do (
set FFMPEGPATH=%%F
goto done1
@a-sync
a-sync / deobf.cmd
Last active May 10, 2024 07:29
batch obfuscator / deobfuscator
@echo off & setlocal
if "%~1"=="" exit /b
if /i "%~x1" neq ".bat" if /i "%~x1" neq ".cmd" exit /b
<"%~1" ((for /l %%N in (1 1 8) do pause)>nul&findstr "^">"%~n1__%~x1")
@a-sync
a-sync / ofcra-local-mod-dl.bat
Created November 26, 2021 09:06
OFCRA local mod downloader / updater: parses Arma 3 launcher preset files in the current folder and attempts to download and unpack non workshop mods from the OFCRA mod repository.
@echo off
rem # OFCRA local mod downloader / updater
rem # Parses Arma 3 launcher preset files in the current folder and attempts
rem # to download and unpack non workshop mods from the OFCRA mod repository.
rem # https://ofcrav2.org/index.php?page=repository-en
rem #
rem # Usage:
rem # 1. Create a folder for your local mods and place this script and the
rem # Arma 3 launcher preset file in there
rem # 2. Run the script and let it download and unpack the non workshop mods