Skip to content

Instantly share code, notes, and snippets.

View vietkute02's full-sized avatar
:octocat:
hard working on video streaming platform

Luu Viet Anh vietkute02

:octocat:
hard working on video streaming platform
  • Thudo jsc
  • Ha Noi, Viet Nam
View GitHub Profile
@vietkute02
vietkute02 / 2021032423master.mpd
Last active March 29, 2021 07:03
dash catchup
<?xml version="1.0" encoding="utf-8"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:mpeg:dash:schema:mpd:2011"
xmlns:cenc="urn:mpeg:cenc:2013"
xmlns:mspr="urn:microsoft:playready"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd"
profiles="urn:mpeg:dash:profile:isoff-live:2011"
type="dynamic"
minimumUpdatePeriod="PT6S"
import os
import time
import random
import argparse
def create_random_files(folder_path, num_files, min_size, max_size):
open_times, write_times, close_times = 0, 0, 0
for i in range(1, num_files + 1):
@vietkute02
vietkute02 / dropbear.sh
Last active April 27, 2025 14:58
dropbear-idx
#!/bin/bash
# Kiểm tra xem cả password và token đã được cung cấp chưa
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Lỗi: Vui lòng cung cấp mật khẩu và ngrok token làm đối số."
echo "Ví dụ: curl ... | bash <mật_khẩu> <ngrok_token>"
exit 1
fi
PASSWORD="$1"