sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| // For example, we have a vector of URLs we want to proccess it concurrently, but what if we have | |
| // 10000 URLs, we do not want to spawn 10000 threads one time. Instead we limit it to 2-3 | |
| // threads. Here's how I did it Rust looking at Golang code here: https://github.com/giovanni-orciuolo/cyberdrop-downloader/blob/484bf9fabb6544f4a1a7b640cef635bb37425faa/main.go#L268 | |
| const BATCH_SIZE: usize = 2; // How many URLs we want to process each step | |
| fn main() { | |
| let mut albums = vec![ | |
| "1".to_string(), | |
| "2".to_string(), |
| dfasdfasdf |
| 12312312321 |
| #This script checks if a user on twitch is currently streaming and then records the stream via streamlink | |
| import datetime | |
| import re | |
| import subprocess | |
| import sys | |
| import os | |
| import getopt | |
| from requests import exceptions as reqexc | |
| from threading import Timer | |
| from twitch import TwitchClient |
| shdhdjd |
| hbuhbbhj | |
| kjhbjhg |
| #!/bin/sh | |
| # Install needed tools: | |
| # brew install sox --with-libvorbis | |
| # brew install ffmpeg --with-libvpx --with-libvorbis --with-opus --with-faac | |
| echo "=== Простой WebM конвертер с автоматическим вычислением битрейта под размер файла ===" | |
| echo "=== Simple WebM converter with automatic bitrate settings for 6 mb output depending on the duration ===" | |
| # Example ./webm.sh 1.mp4 00:01:05 00:01:30 | |
| ############################################# | |
| ts_get_sec() | |
| { |
| #!/bin/zsh | |
| # Install needed tools: | |
| # brew install sox --with-libvorbis | |
| # brew install ffmpeg --with-libvpx --with-libvorbis --with-opus --with-faac | |
| set -e | |
| FILENAME=$1 | |
| echo "Converting $FILENAME to webm + ogg with normalized audio" | |
| ffmpeg -i ${FILENAME} -c:a libvorbis -vn ${FILENAME}_audio_orig.ogg | |
| ffmpeg -i ${FILENAME} -c:v libvpx-vp9 -crf 50 -b:v 0 -vf scale=840:-1 -g 50 -an ${FILENAME}_video_orig.webm |