$ ffmpeg -i <URL.m3u8>
$ ffmpeg -i URL.m3u8 -map <SOURCE_IDX>:p:<PROGRAM_NUMBER> -c copy output.ext
This process needs CentOS7 host that has internet connection for creating offline repo.
This particular example illustrates installing nginx specifically, but I think this should work for any other packages.
host-with-net:/# yum install yum-plugin-downloadonly yum-utils createrepo
host-with-net:/# mkdir -p /root/playground/nginx
host-with-net:/# mkdir -p /root/playground/nginx-installroot| #!/bin/sh | |
| # We don't need extra husky dependency for a simple task | |
| COMMIT_LINT_HOOK_PATH="$PWD/.custom_git_hooks" | |
| COMMIT_LINT_CMT_MSG_HOOK_PATH="$COMMIT_LINT_HOOK_PATH/commit-msg" | |
| ensure_hook_dir() { | |
| if [ ! -d "$COMMIT_LINT_HOOK_PATH" ]; then | |
| mkdir "$COMMIT_LINT_HOOK_PATH" |
| #!/bin/zsh | |
| line_lengths=($(git log --pretty=format:%s | awk '{ print length($0) - 9 }')) | |
| sum=0 | |
| line_count=${#line_lengths} | |
| for line_length in ${line_lengths[@]}; do | |
| sum=$((sum + line_length)) | |
| done |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const target_dir = process.argv[2]; | |
| fs.readdir(target_dir, function(err, items) { | |
| for(var i = 0; i < items.length; i++) { | |
| nfd_name = items[i]; | |
| nfc_name = items[i].normalize('NFC'); | |
| console.log(`nfd_name: ${nfd_name}\nnfc_name: ${nfc_name}`); |