Skip to content

Instantly share code, notes, and snippets.

View notedit's full-sized avatar
🎯
Focusing

leeoxiang notedit

🎯
Focusing
View GitHub Profile
@notedit
notedit / gevent-multiprocess.py
Created August 25, 2011 03:45
gevent-multiprocess
import sys
from gevent import server
from gevent.monkey import patch_all; patch_all()
from multiprocessing import Process, current_process, cpu_count
def note(format, *args):
sys.stderr.write('[%s]\t%s\n' % (current_process().name, format%args))
def echo(socket, address):
@notedit
notedit / gist:7955449fa9f55dd92ad47e40b1cba9b0
Created August 30, 2018 05:58
iOS SDK talks to aiortc offer from iOS SDK
v=0
o=- 8814075859745900444 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
@notedit
notedit / gist:bef0a6e805d3d1aa9fa7e9e5e224fcf8
Created August 30, 2018 06:00
iOS SDK talks to aiortc , answer from aiortc
v=0
o=- 3744595191 3744595191 IN IP4 0.0.0.0
s=-
t=0 0
a=group:BUNDLE audio video
@notedit
notedit / gist:ca37fda811fb835f69413db99d23688e
Created August 30, 2018 06:01
iOS SDK talks to media-server-node , offer from iOS SDK
v=0
o=- 7356394689785613825 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
@notedit
notedit / gist:6844b7a042c6720f275051ce3e7b5a7c
Created August 30, 2018 06:02
iOS SDK talks to media-server-node ,answer from media-server-node
v=0
o=- 1535606918863 1 IN IP4 127.0.0.1
s=semantic-sdp
c=IN IP4 0.0.0.0
t=0 0
@notedit
notedit / transcode.go
Created February 8, 2020 16:19
transcode.go
package main
import (
"flag"
"fmt"
"io"
"log"
"strings"
"github.com/3d0c/gmf"