Skip to content

Instantly share code, notes, and snippets.

Working from home

Md. Sumon Islam sumonst21

Working from home
Block or report user

Report or block sumonst21

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sumonst21 / sane-caching.nginx.conf
Created Jul 19, 2019 — forked from philipstanislaus/sane-caching.nginx.conf
Sample Nginx config with sane caching settings for modern web development
View sane-caching.nginx.conf
# Sample Nginx config with sane caching settings for modern web development
# Motivation:
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools.
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh
# and juicy version of your assets available.
# At some point, however, you want to show your work to testers, your boss or your client.
# After you implemented and deployed their feedback, they reload the testing page – and report
# the exact same issues as before! What happened? Of course, they did not have developer tools
# open, and of course, they did not empty their caches before navigating to your site.
sumonst21 / index.html
Created Jul 18, 2019 — forked from leowebguy/index.html
Responsive iframe full screen. Display page without and hide original url address.
View index.html
<html lang="en" class="no-js">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
html body {width: 100%;height: 100%;padding: 0px;margin: 0px;overflow: hidden;font-family: arial;font-size: 10px;color: #6e6e6e;background-color: #000;} #preview-frame {width: 100%;background-color: #fff;}</style>
<script src="//"></script>
//function to fix height of iframe!
var calcHeight = function() {
sumonst21 / nginx.conf
Created Jul 16, 2019 — forked from Jack0r/nginx.conf
Nginx transcode example using ffmpeg and two applications
View nginx.conf
#user nobody;
worker_processes 1;
error_log logs/rtmp_error.log debug;
pid logs/;
events {
worker_connections 1024;
View nginx stream ffmpeg on the fly
user www-data;
worker_processes auto;
pid /run/;
events {
worker_connections 768;
# multi_accept on;
http {
sumonst21 / index.html
Created Jul 12, 2019 — forked from sbalay/index.html
Videojs hls example
View index.html
<!DOCTYPE html>
<meta charset=utf-8 />
<title>videojs-contrib-hls embed</title>
Uses the latest versions of video.js and videojs-contrib-hls.

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
View html5-video-play-file-blob.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<input type="file" name="file" id="fileItem" onchange="onChange()" >
View gist:caca9481bd92f8b8030fac9ef7308e5f
<!doctype html>
<title>Site Maintenance</title>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
View gist:2e91c232f72db9df8745f88fd9dda366

Note: This is an older post that I did back when I thought I might have time to be a blogger. Oh I was oh so wrong. However, it has proven useful for some folks on stackoverflow. Thus I'm keeping it alive here on Gist.

One of my past projects dealt heavily with an open source Apple technology called HTTP Live Streaming. It’s an HTTP based streaming protocol that at its most fundamental level provides a way to stream video and audio from just about any server with nothing but a few free software tools provided by Apple**. However, it has a few additional features that I think make it a really exciting tool. Yet, I haven’t seen HTTP Live Streaming used very much. This is probably mainly due to the combination of a lack of good/clear documentation, and Apple’s Live Streaming Developer Tools being command line based also make the barrier to entry higher than many developers want to deal with.

The hope is to share my understanding of how to use this technology to:

sumonst21 /
Created Jul 3, 2019 — forked from mrbar42/
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
You can’t perform that action at this time.