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 | |
case "$1" in | |
get) | |
#/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe Get-Clipboard | sed 's/\r//' | |
pwsh -Command Get-Clipboard -Raw | |
;; | |
set) | |
/mnt/c/Windows/System32/clip.exe | |
;; |
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
:: Suspend/resume BlueStacks process. | |
:: Requires Sysinternals PsTools: | |
:: https://learn.microsoft.com/en-us/sysinternals/downloads/pstools | |
@echo off | |
set processName=HD-Player | |
set idFile="%~dpn0.txt" | |
set findStr=find /c /i | |
set psCommon=-nobanner |
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
:: Windows batch script for downloading video using yt-dlp. | |
:: 1. Get yt-dlp here: https://github.com/yt-dlp/yt-dlp/releases | |
:: 2. Put links (one per line) in %this_script_name%.txt next to script. | |
@echo off | |
::set update=stable@2023.03.04 | |
set update=nightly | |
start "Downloading from YouTube..." cmd /k yt-dlp --update-to %update% ^&^& yt-dlp -R 30 -o "%%(upload_date)s - %%(title)s [%%(duration_string)s].%%(ext)s" -a "%~dpn0.txt" ^&^& title Done |