Skip to content

Instantly share code, notes, and snippets.

View maxwellito's full-sized avatar

maxwellito maxwellito

View GitHub Profile
@maxwellito
maxwellito / m3u8-concat.sh
Created December 28, 2015 22:05
Concat / join .ts segment files into an mp4 file
#!/bin/sh
# This script must be executed in the repo where
# the *.ts files are.
# It will concatenate the segments into one temp
# file which ffmpeg will reencode the audio track.
# By default the ouptup filename is output.mp4
# but can be changed by providing the name as parameter.
#
# ffmpeg is required
@maxwellito
maxwellito / youwatch-download.js
Created March 7, 2016 23:53
Snippet of code to execute on youwatch to avoid adverts and download the content
(function () {
document
.querySelectorAll('iframe')
.forEach(function (e) {
if (e.src.indexOf('youwatch')!=-1 || e.src.indexOf('haouzy')!=-1) {
window.location = e.src;
return;
}
else
e.remove();
@maxwellito
maxwellito / color-gradient.js
Created April 24, 2018 18:45
Generate gradient of colors
/**
* Set of tools to manipulate colors
*/
var colortool = {
/**
* Create gradients
* Specify the color to start and end with plus
* the amount of intermediate steps.