Skip to content

Instantly share code, notes, and snippets.

@abakum
abakum / mvc2x.bat
Last active August 2, 2022 19:56
Convert mvc to yt=sbsl rl=sbsr sbs=sbs2l rlq=sbs2r tab=ab2l ba=abr baq=ab2r ab=abl frameseq=alt lines=row arcd hdmi
SetLocal EnableExtensions EnableDelayedExpansion
:main
echo Convert mvc to yt=sbsl rl=sbsr sbs=sbs2l rlq=sbs2r tab=ab2l ba=abr baq=ab2r ab=abl frameseq=alt lines=row arcd hdmi
echo Run "mvc2x.bat" without parameters to place it in "%UserProfile%\SendTo"
echo Send "c:\d\" to "mvc2x"
echo or drop it to "mvc2x.bat"
echo "c:\d\film\BD\BDMV\STREAM\00001.m2ts" and "c:\d\film\BD\BDMV\STREAM\00002.m2ts" will be used as mvc source
echo "c:\d\film\d.mkv" will be used as sound and metadata source
echo Then look at "c:\d\x\d.mkv" where x is you choose
@abakum
abakum / JPG2VR.bat
Last active June 1, 2022 12:32
Convert 2D panoramas from left and right vr360 cameras to VR.JPG files for cardboard and photos.google.com
SetLocal EnableExtensions EnableDelayedExpansion
:forfiles
if "%~1"=="nul" (
call :doit "%~2"
goto :EOF
)
:main
if "%~1"=="" (
if not exist "%UserProfile%\SendTo\%~n0.lnk" (
@abakum
abakum / VR2PL.bat
Last active April 4, 2021 17:26
Convert 3D photos or panoramas from VR.JPG to playlist of MKV or MP4 for YouTube or 3DTV
setlocal enableDelayedExpansion
:forfiles
if "%~1"=="nul" (
call :doit "%~2"
goto :EOF
)
:main
if "%~1"=="" (
@abakum
abakum / MPO2VR.bat
Last active April 27, 2021 11:15
Convert 3D photos from MPO files to VR.JPG files for cardboard and photos.google.com
SetLocal EnableExtensions EnableDelayedExpansion
:forfiles
if "%~1"=="nul" (
call :doit "%~2"
goto :EOF
)
:main
if "%~1"=="" (
if not exist "%UserProfile%\SendTo\%~n0.lnk" (
@abakum
abakum / CHANNEL UPLOADER.bat
Created June 4, 2019 08:53
Download microfilm from youtube
cd /d c:\msys64\mingw64\bin\
call :youtube %~n0
pause
goto :EOF
:youtube
youtube-dl -o "%~dp0\%%(playlist_title)s\%%(title)s.%%(ext)s" --ignore-config -f worstvideo[ext=mp4]+bestaudio[ext=m4a] https://www.youtube.com/channel/%1 --download-archive "%~dp0\%~n0.txt"
@abakum
abakum / UP GATE NS NS2.bat
Last active April 11, 2019 12:15
Via netsh set GATE and list of NS for uplink interface UP
@echo off
echo This script via netsh set GATE and list of NS for uplink interface UP
echo Rename or mklink this script with real value where:
echo UP is name of uplink interface
echo If GATE omitted then IP, GATE and NS will be received from DHCP
echo If NS omitted then GATE is NS
echo After NS2 there may be NS3 and so on
echo This script via setx set global environment values: uplink as UP and gate as GATE
cd /d %~dp0
call :ip %~n0
@abakum
abakum / libmagic.bat
Created March 4, 2019 12:53
Fix error "raise ImportError('failed to find libmagic. Check your installation')" after "pip install python-magic" then "import magic" in python of MINGW
mklink "C:\msys64\usr\bin\magic1.dll" "C:\msys64\usr\bin\msys-magic-1.dll"
@abakum
abakum / mklink.cmd
Last active February 26, 2019 05:49
mklink helper for totalCMD
@abakum
abakum / ctPhoto.sh
Last active March 20, 2018 05:16
curl+telegram
#!/bin/sh
# your data here
chatID=-123456789
botToken=987654321:AABBCCDDEEFFGGHH
# post photo
photo="$1"
shift
(
@abakum
abakum / PortableApps.bat
Last active July 20, 2024 02:57
.lnk for PortableApps
echo set variable %~n0 of global environment as path to this script without slash on the end
cd /d %~dp0
setx %~n0 %cd%