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
echo "fs.file-max=1048576" >> /etc/sysctl.conf | |
echo "net.core.rmem_max = 16777216" >> /etc/sysctl.conf | |
echo "net.core.wmem_max = 16777216" >> /etc/sysctl.conf | |
echo "net.ipv4.tcp_rmem = 4096 87380 16777216" >> /etc/sysctl.conf | |
echo "net.ipv4.tcp_wmem = 4096 65536 16777216" >> /etc/sysctl.conf | |
sysctl -p | |
echo "* soft nofile 1048576" >> /etc/security/limits.conf | |
echo "* hard nofile 1048576" >> /etc/security/limits.conf |
#!/usr/bin/env python3 | |
# | |
# Query AWS Athena using SQL | |
# Copyright (c) Alexey Baikov <sysboss[at]mail.ru> | |
# | |
# This snippet is a basic example to query Athen and load the results | |
# to a variable. | |
# | |
# Requirements: | |
# > pip3 install boto3 botocore retrying |
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:
#!/bin/sh | |
# default commands for osx to make it nicer to work with | |
########################## | |
# General UI?UX settings # | |
########################## | |
# Set hostname (hex of MVB9APPS) | |
sudo scutil --set ComputerName "0x4d56423941505053" | |
sudo scutil --set HostName "0x4d56423941505053" |
Usage: node strace_log_analyzer.js strace.log /tmp
This scripts parses input file that must contain strace log from a single thread. Then script calculates:
strace log must be collcted with -t -T -f
options.
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Instuctions available (moved) at REMOTE ORIGIN website: Extract Subtitles From mkv
import asyncio | |
from contextlib import closing | |
import aiohttp | |
async def download_file(session: aiohttp.ClientSession, url: str): | |
async with session.get(url) as response: | |
assert response.status == 200 | |
# For large files use response.content.read(chunk_size) instead. |
Picking the right architecture = Picking the right battles + Managing trade-offs