This file contains hidden or 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
| import logging | |
| from colorama import init, Fore, Back | |
| init(autoreset=True) | |
| class ColorFormatter(logging.Formatter): | |
| COLORS = { | |
| "WARNING": Fore.RED, | |
| "ERROR": Fore.RED + Back.WHITE, |
This file contains hidden or 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
| Get-ChildItem -Path . -Recurse -Filter "*.ts" | ForEach-Object { | |
| $tmp = $_.FullName -replace "\.ts$", ".mp4" | |
| $bitrate = ffprobe -v error -select_streams v:0 -show_entries format=bit_rate -of default=noprint_wrappers=1:nokey=1 "$_" | |
| if ([string]::IsNullOrEmpty($bitrate)) { | |
| $bitrate = "2000000" # default: 2mbps | |
| } | |
| Write-Output "変更ファイル:$($_.BaseName)" | |
| Write-Output "ビットレート:$bitrate" | |
| # 1パス目 | |
| ffmpeg -v error -stats -i "$_" -c:v hevc_nvenc -preset slow -b:v 0 -pass 1 -an -f null /dev/null |
This file contains hidden or 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
| $sourceFolder = "D:\path\from\copy" | |
| $destinationFolder = "C:\path\to\extract" | |
| $files = Get-ChildItem -Path $sourceFolder -Recurse -File | |
| Write-Output "$files" | |
| foreach ($file in $files) { | |
| $Date = $file.CreationTime |
This file contains hidden or 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
| yes | pacman-key --init && yes | pacman-key --populate archlinux && yes | pacman -Sy archlinux-keyring | sed -i -e '/Japan/{n;n;s/^#\(Server = https.*\)/\1/;n;s/^#\(Server = http.*\)/\1/;n;n;s/^#\(Server = https.*\)/\1/}' /etc/pacman.d/mirrorlist && yes | pacman -Syu && yes | pacman -S neovim git |
This file contains hidden or 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
| export PROMPT='[%K{black}%F{white}%2~%f%k] <%(?.$fg[green].$fg[red])%?%f><%F{blue}bg=%j%f> %!=%# ' | |
| export RPROMPT='%F{none}[%F{green}%n@%M%F{none}] ' |
This file contains hidden or 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 enabledelayedexpansion | |
| rem supported: Atcoder, yukicoder, CodeForces, AOJ(contest) | |
| echo Copyright (c) darallium | |
| echo page: https://github.com/darallium | |
| echo Released under the Eclipse Public v1.0 license. | |
| echo. | |
| cd /d %~dp0 |
This file contains hidden or 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 | |
| set /P URL= | |
| yt-dlp "!URL!" -f "bestaudio" --audio-format mp3 --audio-quality 0 -x ^ | |
| --parse-metadata "playlist_index:%%(track_number)s" ^ | |
| --ignore-errors ^ | |
| --embed-metadata ^ | |
| --embed-thumbnail ^ | |
| --embed-chapters ^ | |
| -o "%USERPROFILE%\Music\%%(channel)s\%%(title)s.%%(ext)s" |
NewerOlder