ffmpeg -i in.m3u8 -acodec copy -bsf:a aac_adtstoasc -vcodec copy out.mp4
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
version: '3.7' | |
services: | |
wireguard: | |
image: ghcr.io/linuxserver/wireguard | |
container_name: wireguard | |
cap_add: | |
- NET_ADMIN | |
- SYS_MODULE | |
environment: |
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
ffmpeg -ss 00:00:10 -i "input.mp4" -vframes 1 -q:v 2 -s 960:540 "output.jpg" |
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
ffmpeg -i "input.mp4" -vcodec libwebp -filter:v fps=fps=23.976 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 320:180 -ss 00:00:15 -t 00:00:10 "output.webp" |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Nov 22 16:16:46 2020 | |
@author: ToshY | |
One of the more "reliable" ways to check for fonts on the current system with the help of MatPlotLib (and FontTools). | |
Returns list of dictonaries, where each dictonary denotes a single font, with a Path object, the name, the font family | |
and the style. |
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
<?php | |
class MailJetAPI{ | |
/* | |
* Simpel MailJet mailer with the v3 API | |
*/ | |
private const BASE_URL = 'https://api.mailjet.com/v3.1/send'; | |
private $key; | |
private $secret; |
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
<?php | |
class SimpleHasher{ | |
/* | |
/* Simple hash | |
*/ | |
private $hash_algo; | |
function __construct( $algo = 'sha256' ){ |
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
<?php | |
class OneWayEncryption{ | |
/* | |
* One way encryption; hash + salt | |
*/ | |
private const COST = '14'; | |
private function uniqueSalt() { |
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
[CmdletBinding()] | |
<# | |
.SYNOPSIS | |
Create a random string of alphanumeric characters | |
.DESCRIPTION | |
This function creates a random string of alphanumeric characters. | |
Alphanumeric characters are put into an array, joined, randomly picked and shuffled once more. | |
.PARAMETER length | |
The length of the random string to be returned. |
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
<?php | |
/* | |
VOD HLS streaming for BunnyCDN with Token authentication V2 | |
NOTES: | |
> Credits to Dejan from BunnyCDN Support for the function for token authentication V2 | |
> I've created this snippet to show how to use HLS streaming with the directory tokens. | |
This is a workaround which works by appending the token query string for every request to the TS segments (see JS below) |