running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
@echo off | |
echo Uninstalling KB3075249 (telemetry for Win7/8.1) | |
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart | |
echo Uninstalling KB3080149 (telemetry for Win7/8.1) | |
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart | |
echo Uninstalling KB3021917 (telemetry for Win7) | |
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart | |
echo Uninstalling KB3022345 (telemetry) | |
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart | |
echo Uninstalling KB3068708 (telemetry) |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).
##Domain
We need some records on our domain (mydomain.com) DNS for connections. Add these records:
t1 IN NS t1ns.mydomain.com. ; note final the dot!
t1ns IN A OUR_SERVER_IP
##Server
#!/usr/bin/env bash | |
set -e | |
YOUTUBE_FORMATS=$(youtube-dl -F "$1") | |
if [[ "$YOUTUBE_FORMATS" == *"(DASH Video)"* ]]; then | |
VIDEO_NAME=$(youtube-dl --get-filename "$1") | |
VIDEO_NAME_TMP="$VIDEO_NAME.tmp" | |
echo "Filename: $VIDEO_NAME" |
#!/bin/bash | |
# Get latest OpenSSL 1.0.2 version from https://openssl.org/source/ | |
# v1.1.0 seems to have removed SSLv2/3 support | |
openssl_version=1.0.2k | |
# Build OpenSSL | |
wget https://openssl.org/source/openssl-$openssl_version.tar.gz | |
tar -xvf openssl-$openssl_version.tar.gz | |
cd openssl-$openssl_version |
#!/bin/bash | |
############################################################################### | |
# | |
# This is for when we have to update the installed version of curl, nghttp2 or | |
# openssl in Ubuntu 16 LTS. This is not a single script. | |
# | |
# https://gist.github.com/jay/d88d74b6807544387a6c | |
# |
#!/bin/bash | |
while read line ; | |
do newname=$(echo "$line" | cut -d '/' -f2 | sed 's|\ |_|g') ; | |
parentdir=$(echo "$line" | cut -d '/' -f2) ; | |
VIDEOTS=$(echo "$line" | cut -d '/' -f-3 | sed 's|\./||g') ; | |
echo "cat "$line/VTS_01_*.VOB" | ffmpeg -i - -vcodec libx264 -acodec libmp3lame -threads 12 $newname.mp4" ; | |
cat "$VIDEOTS"/VTS_01_*.VOB | ffmpeg -i - -vcodec libx264 -acodec libmp3lame -threads 12 "$newname.mp4" ; | |
done < <(find . -type d -name VIDEO_TS | grep -v "tape w SternWWOR 58 2of3 baked\|tape w SternZE 12 3of3\|tape w SternWWOR 48_49 1of3\|tape w SternWWOR 41_42 1of3\|tape w SternZE 02 1of3\|tape w SternWWOR 53_54 1of3 baked\|z_Remnants 1\|tape w SternWWOR 44 2of3 baked\|tape w SternWWOR 51_52 2of3\|z_Remnants 2\|tape w SternWWOR 55 3of3 baked\|tape w SternWWOR 59 1of2 baked") |
#!/usr/bin/env bash | |
# idea: https://novall.net/itnews/bash-skript-dlya-skachivaniya-fajlov-s-mail-ru-cherez-konsol-linux.html | |
for link in "$@" ; | |
do URL="$link" | |
FILENAME=$(curl -A "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0" -s "$URL" | grep -E '"name":' | tac | head -1 | sed -e 's|.*"name":\ "||' -e 's|",.*||') | |
URLPART0=$(wget -U "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0" --quiet -O - "$URL" | grep -o '"weblink_get":\[[^]]\+\]' | sed 's/.*"url":"\([^"]\+\)".*/\1/') | |
URLPART1=$(echo "$URL" | awk -F '/public/' '{print $2}') |