Skip to content

Instantly share code, notes, and snippets.

@PercyPham
PercyPham / youtube-unlist-vid-downloader.sh
Last active November 10, 2026 06:15
Download Unlisted Youtube Video - which can be open with QuickTime Player (MacOS).
#!/usr/bin/env bash
# Download a single YouTube video (public or unlisted) as QuickTime-compatible MP4
# (H.264 video + AAC audio), up to a max resolution (default 1080p).
#
# Usage: yt-dl.sh <video-url> [output-dir] [max-height]
# Example: yt-dl.sh "https://www.youtube.com/watch?v=XXXX" ./videos 1080
#
# Requires: python3, ffmpeg, node (macOS: brew install ffmpeg node)
# yt-dlp is installed automatically in ~/.cache/yt-dl-venv (nothing system-wide).
@PercyPham
PercyPham / Clean_Code_Brief.md
Created October 19, 2023 09:14
Clean Code Brief
Brief Writer: Phạm Minh Hùng (Percy)
GitHub      : https://github.com/PercyPham

Clean Code Brief

Table of Contents:

BigData - Colab

Setup

Cài đặt Spark trên Google Colab

!sudo apt update
!apt-get install openjdk-8-jdk-headless -qq > /dev/null
!wget -q https://downloads.apache.org/spark/spark-3.3.0/spark-3.3.0-bin-hadoop3.tgz
@PercyPham
PercyPham / pubsub.go
Last active March 7, 2021 02:54
Implement mini PubSub
package pubsub
import (
"context"
"fmt"
"sync"
"time"
)
// Topic string
@PercyPham
PercyPham / finalImplementations.md
Last active December 9, 2025 10:33
Implementing Json Web Token (JWT) to secure your app