Skip to content

Instantly share code, notes, and snippets.

View mayeaux's full-sized avatar

Anthony mayeaux

View GitHub Profile
mayeaux /
Created November 18, 2022 00:46 — forked from gmolveau/
Embed subtitle (soft) in mp4/mkv file with ffmpeg without re-encoding

solution from

This solution adds the subtitles to the video as a separate optional (and user-controlled) subtitle track.

So you can choose the subtitle in VLC for example, it's not hard-coded or burned-in. And it won't re-encode the entire file so it's really fast.

  • ffmpeg is required
  • movie = great_movie.mp4 (works with mkv too)
  • subtitle =
mayeaux /
Created August 16, 2021 14:25 — forked from stevecondylios/
How to Resize an Image in a Github Issue (e.g. Github flavored Markdown)

How to Resize an Image in Github (i.e. Github Flavored Markdown)


<img src="" width=50% height=50%>


<img src="" width="150" height="280">

mayeaux /
Created November 29, 2020 08:26 — forked from umidjons/
Create ssh tunnel and connect to the remote mongo database on command line

Create ssh tunnel and connect to the remote mongo database on command line

Assume followings:

/mykeys/.ssh/prodserver.pem - is a certificate file

umid - is a user name - is a remote host, that mongodb runs

# Quick start for youtube-dl
## Default usage
youtube-dl URL
## Download certain resolution
youtube-dl -f "best[height<=480]" URL
## Download certain extension
.headroom {
position: fixed;
top: 0;
-webkit-transition: top 0.15s;
transition: top 0.15s;
.headroom-hidden {
top: -60px;
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\n",
"sources" : [ "" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "" ],
mayeaux / nginx.conf
Created April 4, 2020 15:35 — forked from CSRaghunandan/nginx.conf
Nginx configuration for serving mp4 videos
#user nobody;
worker_processes 4;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/;
After searching for more than 6 hours trying to understand what is zoho's mail problem to send emails!
After i red lots lots of there answer with no helpul solution i found the issue was that you need to have the ``` sender ``` option
in your nodemailer option same like email with same sender name and sender email. like this : ``` from: '"senderNameSameLikeTheZohoOne" <>',```
my config :
const transporter = nodemailer.createTransport({
host: '',
port: 465,