Skip to content

Instantly share code, notes, and snippets.

View hhankj2u's full-sized avatar

Khanh Nguyen hhankj2u

View GitHub Profile
@hhankj2u
hhankj2u / add-team-to-repos.js
Created September 24, 2023 03:35 — forked from davidrleonard/add-team-to-repos.js
Add a new team to all Github repos in an organization
/*
* Adds a team to all the repos in a Github organization. This is a tedious
* process in the UI. You'll need a newer version of node to run this (e.g 9+)
* because it uses async/await.
*
* Instructions:
*
* 1. Copy this file somewhere on your computer, e.g. ~/addteamrepos.js
* 2. Fill in the uppercase variables below with the right values
* 3. Run this file: `$ node ~/addteamrepos.js`
# from
folder1
file1.md
file2.md
# to
folder1
file1
content.md
file2
@hhankj2u
hhankj2u / howto-download-youtube-videos.md
Last active January 9, 2023 08:41 — forked from pnhoang/howto-download-youtube-videos.md
How to download ALL videos of ANY YouTube Channel for FREE
@hhankj2u
hhankj2u / README.md
Last active November 2, 2022 07:34 — forked from mrbar42/README.md
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
{
"info": {
"_postman_id": "eb2ddc09-3624-411a-a13d-eceb4954bec1",
"name": "VoDao",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "127.0.0.1:14060/item?optType=310&playerID=7675&content=vvvbnvbn&sign=EDB54B9199B801BD57CE713B12A3A83B&title=&itemList&receiveNames=hhank&id=7675&cmd=50#",
"request": {
@hhankj2u
hhankj2u / shared_folder_centos_virtualbox.txt
Last active March 30, 2017 01:55 — forked from larsar/shared_folder_centos_virtualbox.txt
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel kernel-headers make perl
reboot