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
setlocal enableDelayedExpansion | |
:forfiles | |
if "%~1"=="nul" ( | |
call :doit "%~2" | |
goto :EOF | |
) | |
:main | |
if "%~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
SetLocal EnableExtensions EnableDelayedExpansion | |
:forfiles | |
if "%~1"=="nul" ( | |
call :doit "%~2" | |
goto :EOF | |
) | |
:main | |
if "%~1"=="" ( | |
if not exist "%UserProfile%\SendTo\%~n0.lnk" ( |
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
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" |
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 | |
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 |
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
mklink "C:\msys64\usr\bin\magic1.dll" "C:\msys64\usr\bin\msys-magic-1.dll" |
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 | |
set T=%~1 | |
shift | |
set P=%~1 | |
if defined P goto :next | |
echo 1. Save this file to %COMMANDER_PATH%\Plugins\ | |
echo 2. DragAndDrop this file to ButtonBar of totalCMD | |
echo 3. RightClick on the new button and select Change... | |
echo 4. Set field Parameters:"%%T" "%%P" %%S | |
rem "%T" "%P" %S |
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/sh | |
# your data here | |
chatID=-123456789 | |
botToken=987654321:AABBCCDDEEFFGGHH | |
# post photo | |
photo="$1" | |
shift | |
( |
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 set variable %~n0 of global environment as path to this script without slash on the end | |
cd /d %~dp0 | |
setx %~n0 %cd% |
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
#!/opt/app/platform/python/bin/python | |
from syncloud_platform.injector import get_injector | |
injector = get_injector() | |
injector.device.sync_all() | |
user_platform_config = injector.user_platform_config | |
if 0 and user_platform_config.is_https() and user_platform_config.get_external_access(): | |
injector.tls.generate_real_certificate() |
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
DATA_DIR=/opt/data/nextcloud /opt/app/nextcloud/bin/occ-runner user:list | |
DATA_DIR=/opt/data/nextcloud /opt/app/nextcloud/bin/occ-runner user:resetpassword installer | |
DATA_DIR=/opt/data/nextcloud /opt/app/nextcloud/bin/occ-runner user:info installer |