Skip to content

Instantly share code, notes, and snippets.


Muhammad Sumon Molla Selim SumonMSelim

View GitHub Profile
mrbar42 /
Last active Jul 30, 2021
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
View gist:aa425a4d3e37665c5c6a1e812c76b5cd
// define route like this
//make a function like below in your helper file
function Replace($data) {
$data = str_replace("'", "", $data);
$data = str_replace("!", "", $data);
$data = str_replace("@", "", $data);
$data = str_replace("#", "", $data);
from jira import JIRA
import pandas as pd
import pdb
from collections import defaultdict
import datetime
import pprint
class ImportJiraAnalyticsData:
zabaala / BindDatabaseServiceProvider.php
Last active Mar 2, 2021
php artisan db:log <start> <stop>
View BindDatabaseServiceProvider.php
namespace App\Commands\Database;
use Illuminate\Support\ServiceProvider;
class BindDatabaseServiceProvider extends ServiceProvider
public function boot()
nuhil /
Last active Aug 26, 2019
Javascript Handbook
spencerhunter /
Last active Jun 18, 2021
Outlines the sequence of events that are triggered for a subset of Dwolla payment flows that are bank-to-bank via ACH


Use this doc as a reference to map out the sequence of events your app will receive based on Customer type(s) involved in the transfer as well as where the funds are coming from and going to (bank or balance). The following transfer scenarios are covered in this doc:

Transfer scenario 1 - Source: Verified Customer bank Destination: Verified Customer bank.
Transfer scenario 2 - Source: Verified Customer bank Destination: Unverified Customer bank.
Transfer scenario 3 - Source: Unverified Customer bank Destination: Verified Customer bank.

Both success and failure cases will be shown as well as what occurs in the event of a bank transfer failure.

**General recommend

leninhasda /
Created Dec 3, 2016
utility script to automatically move the specified files from downloads directory to proper directory
# import
import os
from os import path, listdir as list_dir, rename as move
from os.path import isdir as is_dir, isfile as is_file
from pprint import pprint
import shutil
# global variables
View MakeAllCommand.php
<?php namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
class MakeAll extends Command
* The name and signature of the console command.
ohid / PHP Array of Animate.css animation styles
Last active Oct 26, 2020
An array of all animation style names from animate.css
View PHP Array of Animate.css animation styles
$animations = array(
'bounce' => 'bounce',
'flash' => 'flash',
'pulse' => 'pulse',
'rubberBand' => 'rubberBand',
'shake' => 'shake',
'swing' => 'swing',
'tada' => 'tada',
'wobble' => 'wobble',
'jello' => 'jello',
View string_replace_callback_solution.php
$template =[
'@name@' => [
'User name',
'@email@' => [