Skip to content

Instantly share code, notes, and snippets.

View unitycoder's full-sized avatar
✅
‏‏‎

mika unitycoder

✅
‏‏‎
View GitHub Profile
@unitycoder
unitycoder / live-stream-url.txt
Last active May 25, 2019 22:35
HLS RTSP Live Stream URL (actually working!!!1111)
http://live.iphone.alsace20.fr/stream_multi.m3u8
from http://tvslinks.com/channel?id=204011
sample files
https://www.w6rz.net/
@unitycoder
unitycoder / Red5-pro-streaming-server.txt
Last active March 5, 2018 04:28
Install Red5 Pro (Trial) Streaming Server To Amazon Server
// Updated documentation at https://www.red5pro.com/docs/server/awsinstall.html#ec2-instance-setup
Download
- download "Red5 Pro Server" https://account.red5pro.com/download/red5 or from downloads https://account.red5pro.com/download
Server Requirements
- Requires Java JDK1.8+
Ports used by Red5 Pro
Additionally, the following ports are required to be open on your local system:
@unitycoder
unitycoder / regex.txt
Last active March 22, 2021 15:56
Regex Snippets
// REVERSE REGEX
https://github.com/pemistahl/grex
// select last numbers from string
(\d+)(?!.*\d)
https://regex101.com/r/vFbxy3/1
https://stackoverflow.com/a/5320864/5452781
@unitycoder
unitycoder / gist:3e6ce6a650f1ec8ea8758d3270a3f847
Created February 26, 2018 02:48
macos could not be installed on your computer /system/installation/packages/osinstall.mpkg
After starting Mac, error screen comes:
macos could not be installed on your computer /system/installation/packages/osinstall.mpkg
solution:
click outside the error window, menu appears, select Apple/StartupDisk.., select drive, restart.
@unitycoder
unitycoder / pcap-structure.txt
Last active October 8, 2026 06:16
pcap file structure
// http://www.kroosec.com/2012/10/a-look-at-pcap-file-format.html
// https://wiki.wireshark.org/Development/LibpcapFileFormat
// https://www.slideshare.net/ShravanKumarCEHOSCP/pcap-headers-description
// GLOBAL HEADER
typedef struct pcap_hdr_s {
guint32 magic_number; /* magic number */
guint16 version_major; /* major version number */
guint16 version_minor; /* minor version number */
gint32 thiszone; /* GMT to local correction */
@unitycoder
unitycoder / prebuild-event-fetch.txt
Last active February 23, 2018 12:13
Fetch Github Latest Release "tag_name" with PowerShell in Visual Studio Pre-Build Event
powershell.exe -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;$web = New-Object System.Net.WebClient;$web.Headers['User-Agent'] = 'DefinitelyBrowser';$results = $web.DownloadString('https://api.github.com/repos/user/repo/releases/latest');$results = $results | ConvertFrom-Json;$results = $results | select -expand tag_name;echo $results | Out-File $(ProjectDir)PreviousVersion.txt;"
@unitycoder
unitycoder / 0-win10-live-stream-server.txt
Last active April 16, 2022 11:26
Setting up Live Video Stream Server on Windows 10 (RTPM + HLS + OBS)
from http://zqdevres.qiniucdn.com/data/20170907091103/index.html
- download ngingx with RTPM module http://nginx-win.ecsds.eu/download/ *nginx 1.7.12.1 Lizard.zip
- unzip
- create start.bat script
@echo off
title Start Stream
cd /d "C:\nginx"
start nginx
exit
@unitycoder
unitycoder / video streaming server
Last active June 28, 2023 04:02
Setting up HLS Video Streaming server on Linux
from https://medium.com/@yenthanh/setup-a-rtmp-livestream-server-in-15-minutes-with-srs-1b0046c77267
- download reposity https://github.com/ossrs/srs
- compile and run:
cd ~ && git clone https://github.com/ossrs/srs && cd srs/trunk
./configure && make
./objs/srs -c conf/srs.conf
- install OBS https://obsproject.com/
- OBS: File -> Setting. In Setting window, select Stream
- In the URL section, put the rtmp link to our server: rtmp://<your_server_ip>/app (e.g. rtmp://1.2.3.4/app)
@unitycoder
unitycoder / Startup.cs
Last active January 20, 2019 12:45
Automatically switch to webgl2.0 emulation in editor start, if target platform is webgl
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
public class Startup
{
static Startup()
{
if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.WebGL)
{
Version
Miner Type 17
Hw Version G19
MAC Addr 50:6c:be:09:6f:3f
Build Date 2018-01-12 15:05:32
Platform Version 05ce00409af97f6a75ee5de76f761964a406de7f.0
Rootfs Version 4973e48bd7ab0bb58688ce4845bd7b2b532429f7