This file contains hidden or 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
let input = document.createElement('input'); | |
input.type = 'file'; | |
input.multiple = true; | |
input.onchange = e => { | |
let files = e.target.files; | |
for (var i = 0; i < files.length; i++){ | |
let read = new FileReader(); | |
read.readAsBinaryString(files[i]); | |
read.onloadend = function(){ | |
//Content of the file selected |
This file contains hidden or 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
#/bin/bash | |
mkdir "./h264" | |
for i in *.mkv; do ffmpeg -i "$i" "./h264/${i%.*}.mp4"; done |
This file contains hidden or 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
#/bin/bash | |
echo "Input the go arch to install (arm/arm64/amd64)" | |
read -p "Architecture: " arch | |
if [ "$arch" = "arm" ]; then | |
echo "Installing arm version of go" | |
wget https://golang.org/dl/go1.15.3.linux-armv6l.tar.gz | |
fi | |
if [ "$arch" = "arm64" ]; then | |
echo "Installing arm64 version of go" |
This file contains hidden or 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
package gzipmiddleware | |
import ( | |
"compress/gzip" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"strings" | |
"sync" | |
) |