Skip to content

Instantly share code, notes, and snippets.

chaitanyabd /
Created Jun 16, 2021 — 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
chaitanyabd / wait_for_Ready_to_Send.js
Last active Sep 7, 2020
Simple Promise script that checks for Network Ready and a secondary 'readyState' (which may be set 'true' post-login or other similar situation). This is ideally used in PWA or other web applications that are offline-enabled but need to wait for network readiness before performing a one-way action (eg. game action, etc)
View wait_for_Ready_to_Send.js
// Made by Chaitanya Dhareshwar for internal use. You may use this freely in your project
window.readyToSend = false; // this is made true when the socket.connect is triggered - change it to fit your usecase.
window.waitForRTS = async function waitForRTS(maxWaitms = 10000) {
console.log("wait for RTS", maxWaitms);
// some 'service' replace this with your connection confirmation/readyState
if (!socket.connected) socket.connect(); // in my case, readyToSend changes on socket connection
View margonem - ancient warrior - dialogue answers
W czym mogę ci pomóc? "Pokaż mi, co masz na sprzedaż."
I am but I am not. <br>You may live in my but you can't<br>take me with you. I'm surrounded<br>by everything and I surround everything.<br>What am I?</center></i> "A hole."
At the top of the hour I'm a bird, but not a swallow.<br>When the wheels of internal mechanism spin around to follow,<br>I come by to tell you that it's almost time<br>to guess my name, the monster of time!<br>What am I?</center></i> "None of above."
When everyone drinks, I don't.<br>When everyone eats, I don't.<br>Everybody talks about me, but I remain silent.<br>But I leave behind those,<br>who will think, work and<br>talk about me. What am I?</center></i> "A carcass."
During the day I'm full of vermin.<br>During the night nothing moves my leaves.<br>Lots of words and a deathly hush.<br>What am I?</center></i> "A forest cover."
My face is beautiful and I live in the woods.<br>And my arrow is carried by the wind.<br>I'm a dignified and proud creature.<br>Get away, or you will be slain
chaitanyabd /
Created Mar 23, 2020 — forked from thursby/
Install Cloud9 IDE under CentOS 7 with Let's Encrypt SSL

First, get a working CentOS 7 server with your preferred stack. Next, install requirements:

yum groupinstall -y development
yum install -y git glibc-static epel-release nodejs npm

Now clone the git repo and Install the Cloud9 SDK:

git clone c9sdk
cd c9sdk/
View disposable_email_addresses
chaitanyabd / free_email_provider_domains.txt
Created Dec 3, 2017 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
View free_email_provider_domains.txt