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 # 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 |
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"=="" 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") |
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 | |
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 |
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 | |
title radio1-downloader @ https://gist.github.com/a-sync | |
powershell -NoProfile -ExecutionPolicy Unrestricted -Command "[System.Net.ServicePointManager]::SecurityProtocol=[System.Net.SecurityProtocolType]::Tls12;[System.Net.WebRequest]::DefaultWebProxy.Credentials=[System.Net.CredentialCache]::DefaultCredentials;$Url=Read-Host -Prompt 'radio1.hu URL';$wc=New-Object System.Net.WebClient;$wc.Encoding=[System.Text.Encoding]::UTF8;$Links=$wc.DownloadString($Url.Trim())|Select-String -Pattern '<audio data-artist=\""(.*?)\"" data-title=\""(.*?)\"".*?>\n.*?<source src=\""(.*?)\"" type=\""audio/mp3\"">' -AllMatches;Foreach($i in $Links.Matches){$Name=\""$($i.Groups[1].Value) $($i.Groups[2].Value)\"".Split([IO.Path]::GetInvalidFileNameChars()) -join '_';Write-Host $Name;$wc.Headers.Add('Referer','https://www.radio1.hu');$wc.DownloadFile(\""https://www.radio1.hu$($i.Groups[3].Value)\"",\""$Name.mp3\"")}" |
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
@if (@a==@b) @end /* | |
@echo off & setlocal | |
title m3-downloader.bat @ https://gist.github.com/a-sync | |
if "%~1"=="/?" goto usage | |
if %0 == "%~0" ( | |
set /p INPUT="ID/URL: " | |
) else ( | |
set "INPUT=%~1" | |
) |
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
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! | |
) |
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
#!/bin/bash -e | |
CONTAINER=$1 | |
echo "" > $(docker inspect --format='{{.LogPath}}' ${CONTAINER}) |
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
#!/bin/bash | |
# https://gist.github.com/a-sync/276fbb5776ad5d5775d1bd6205e22a4a | |
OPENCV_VERSION="3.4.3" | |
read -p "Install/update dependencies? ([Yy] or skip this step) " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then |
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
alias ssh=ssh-wrapper | |
alias scp=scp-wrapper |
NewerOlder