Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| #!/bin/sh | |
| yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm | |
| yum -y install | |
| yum install ffmpeg HandBrake-cli |
| <link rel="preload" href="css/global.min.css" as="style" onload="this.rel='stylesheet'"> | |
| <noscript><link rel="stylesheet" href="css/global.min.css"></noscript> | |
| <script> | |
| /*! loadCSS. [c]2017 Filament Group, Inc. MIT License */ | |
| !function(a){"use strict";var b=function(b,c,d){function j(a){if(e.body)return a();setTimeout(function(){j(a)})}function l(){f.addEventListener&&f.removeEventListener("load",l),f.media=d||"all"}var g,e=a.document,f=e.createElement("link");if(c)g=c;else{var h=(e.body||e.getElementsByTagName("head")[0]).childNodes;g=h[h.length-1]}var i=e.styleSheets;f.rel="stylesheet",f.href=b,f.media="only x",j(function(){g.parentNode.insertBefore(f,c?g:g.nextSibling)});var k=function(a){for(var b=f.href,c=i.length;c--;)if(i[c].href===b)return a();setTimeout(function(){k(a)})};return f.addEventListener&&f.addEventListener("load",l),f.onloadcssdefined=k,k(l),f};"undefined"!=typeof exports?exports.loadCSS=b:a.loadCSS=b}("undefined"!=typeof global?global:this); | |
| /*! loadCSS rel=preload po |
| # TODO: Verify to link statically some dependencies usually not available in a default instllation of RHEL/CentOS (ex.: libxcb) | |
| ################### | |
| ## Configuration ## | |
| ################### | |
| FFMPEG_CPU_COUNT=$(nproc) | |
| FFMPEG_ENABLE="--enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-gray --enable-openssl --enable-libfreetype" | |
| FFMPEG_HOME=/usr/local/src/ffmpeg |
| #!/bin/sh | |
| timezone="Europe/Zurich" | |
| # List of valid timezones: wikipedia.org/wiki/List_of_tz_database_time_zones | |
| script="${0##*/}" | |
| rootdir=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd) | |
| logfile="$script.log" | |
| log="$rootdir/$logfile" | |
| now=$(TZ=":$timezone" date) | |
| # Uncomment 'mailto=' (remove #) to enable emailing the log upon completion | |
| #mailto="your@email.com" |
| <?php | |
| /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
| /* Change size for Yoast SEO OpenGraph image for all content | |
| * Credit: Yoast Development team | |
| * Last Tested: May 19 2020 using Yoast SEO 14.1 on WordPress 5.4.1 | |
| * Accepts WordPress reserved image size names: 'thumb', 'thumbnail', 'medium', 'large', 'post-thumbnail' | |
| * Accepts custom image size names: https://developer.wordpress.org/reference/functions/add_image_size/ | |
| */ | |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| #!/bin/sh | |
| # Usage: | |
| # wget -O- https://gist.githubusercontent.com/ifduyue/dea03b4e139c5758ca114770027cf65c/raw/install-proxychains-ng.sh | sudo bash -s | |
| set -eu | |
| version=4.14 | |
| wget https://github.com/rofl0r/proxychains-ng/archive/v$version.tar.gz | |
| tar xf v$version.tar.gz |
| for i in `curl https://www.cloudflare.com/ips-v4`; do csf -a $i; done |
| # | |
| # This group is read both both by the client and the server | |
| # use it for options that affect everything | |
| # | |
| [client-server] | |
| # | |
| # FromDual configuration file template for MySQL, Galera Cluster, MariaDB and Percona Server | |
| # Location: /etc/my.cnf or /etc/mysql/my.cnf | |
| # This template is intended to work with MySQL/MariaDB 5.5 and newer |
| // Display Tag code | |
| function ahmedkaludi_structured_data_keyword() { | |
| if ( is_single() ) { | |
| $tags = '"keywords" : [' . strip_tags(get_the_tag_list('"','", "','"')) . ']'; | |
| } else { } | |
| echo $tags; | |
| } | |
| function ahmedkaludi_structured_data_output() { |