ffmpeg -y -http_persistent false -i <m3u8_file_url> -c copy ./audio.mp3
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
#!/usr/bin/env bash | |
BOLD="$(tput bold)" | |
UNDERLINE="$(tput smul)" | |
STANDOUT="$(tput smso)" | |
NONE="$(tput sgr0)" | |
BLACK="$(tput setaf 0)" | |
RED="$(tput setaf 1)" | |
GREEN="$(tput setaf 2)" | |
YELLOW="$(tput setaf 3)" |
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
#!/usr/bin/env bash | |
INPUT_FILE=$1 | |
OUTPUT_FILE=$2 | |
ffmpeg -i $INPUT_FILE \ | |
-filter_complex "[0:v] fps=12,scale=w=480:h=-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" \ | |
$OUTPUT_FILE |
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
! Usage: xmodmap ~/.xmodmaprc_apple | |
! === | |
! 4 $ 4 % | |
keycode 13 = 4 dollar 4 percent | |
! 5 % 5 : | |
keycode 14 = 5 percent 5 colon | |
! 6 ^ 6 , | |
keycode 15 = 6 asciicircum 6 comma | |
! 7 & 7 . |
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
#!/usr/bin/env bash | |
if [ "${1}" == "--help" ]; then | |
echo "Usage: sudo `basename $0` [64|65]" | |
exit 0 | |
fi | |
TTL=${1:-64} | |
sysctl -w net.inet.ip.ttl=$TTL |
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
<?php | |
/** | |
* Возвращает сумму прописью | |
* @author runcore | |
* @uses morph(...) | |
*/ | |
function num2str($num) { | |
$nul='ноль'; | |
$ten=array( | |
array('','один','два','три','четыре','пять','шесть','семь', 'восемь','девять'), |