Skip to content

Instantly share code, notes, and snippets.

07-07 11:09:55.168 8689 8746 I org.webrtc.Logging: CameraCapturer: startCapture: 1280x720@30
07-07 11:09:55.170 8689 8758 I org.webrtc.Logging: Camera2Session: Create new camera2 session on camera 1
07-07 11:09:55.171 8689 8758 I org.webrtc.Logging: Camera2Session: start
07-07 11:09:55.173 8689 8746 D com.oney.WebRTCModule.WebRTCModule: mMediaStreamId: 543fe651-7bf5-445a-9a46-27b3f31f55a4
07-07 11:09:55.176 8689 8745 I ReactNativeJS: '[modules/RTC/RTCUtils.js]', '<r>: ', 'onUserMediaSuccess'
07-07 11:09:55.179 8689 8758 I org.webrtc.Logging: Camera2Session: Available preview sizes: [3264x2448, 3200x2400, 2592x1944, 2688x1512, 2048x1536, 1920x1080, 1600x1200, 1440x1080, 1280x960, 1280x768, 1280x720, 1024x768, 800x600, 800x480, 720x480, 640x480, 640x360, 480x640, 480x360, 480x320, 352x288, 320x240, 240x320, 176x144, 160x120, 144x176]
07-07 11:09:55.179 8689 8758 I org.webrtc.Logging: Camera2Session: Available fps ranges: [[15.0:15.0], [24.0:24.0], [7.0:30.0], [30.0:30.0]]
07-07 11:09:55.181 8689
@saghul
saghul / gist:947d6dca836aeba3e2136e8e4dbb647b
Created December 14, 2016 17:29
electron signing problem
npm run build-osx
> [email protected] build-osx /Users/saghul/work/ag-projects/blink-webrtc
> build --mac --x64
Packaging for darwin x64 using electron 1.4.12 to dist-electron/mac
electron-builder Spawning /Users/saghul/work/ag-projects/blink-webrtc/node_modules/7zip-bin-mac/7za x -bd /Users/saghul/.electron/electron-v1.4.12-darwin-x64.zip -o/Users/saghul/work/ag-projects/blink-webrtc/dist-electron/mac +0ms
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)
// partially borrowed from clipboard.js
// Must call it from a click event handler
// returns true if the text was copied, false otherwise
function copyToClipboard(text) {
const isRTL = document.documentElement.getAttribute('dir') == 'rtl';
const fakeElem = document.createElement('textarea');
let success = true;
// Prevent zooming on iOS
$  traceroute6 www.facebook.com
traceroute to www.facebook.com (2a03:2880:1020:3f83:face:b00c:0:25de), 30 hops max, 80 byte packets
1 2a02:c7d:ead:b500::1 (2a02:c7d:ead:b500::1) 3.370 ms 3.652 ms 4.047 ms
2 * * *
3 * * *
4 * * *
5 po151.asw01.lhr2.tfbnw.net (2620:0:1cff:dead:beef::14d6) 30.207 ms po151.asw04.lhr2.tfbnw.net (2620:0:1cff:dead:beef::14dc) 31.166 ms 31.913 ms
6 ae25.pr02.lhr2.tfbnw.net (2620:0:1cff:dead:beef::15cd) 32.109 ms ae26.pr02.lhr2.tfbnw.net (2620:0:1cff:dead:beef::15cf) 29.775 ms ae27.pr01.lhr2.tfbnw.net (2620:0:1cff:dead:beef::15c7) 30.544 ms
7 ae6.bb01.lhr2.tfbnw.net (2620:0:1cff:dead:beef::d90) 52.206 ms ae18.bb01.lhr2.tfbnw.net (2620:0:1cff:dead:beef::71e) 40.585 ms 39.812 ms
8 ae34.bb03.iad3.tfbnw.net (2620:0:1cff:dead:beef::4c4) 144.331 ms 145.344 ms ae29.bb04.iad3.tfbnw.net (2620:0:1cff:dead:beef::35c) 118.029 ms
$  traceroute6 youtube.com
traceroute to youtube.com (2a00:1450:400b:c02::5d), 30 hops max, 80 byte packets
1 2a02:c7d:ead:b500::1 (2a02:c7d:ead:b500::1) 0.663 ms 0.941 ms 1.329 ms
2 * * *
3 2001:4860:1:1:0:15e7:0:8 (2001:4860:1:1:0:15e7:0:8) 31.147 ms 32.400 ms 32.583 ms
4 2001:4860:1:1:0:15e7:0:8 (2001:4860:1:1:0:15e7:0:8) 33.899 ms 34.687 ms 37.014 ms
5 2001:4860::1:0:9914 (2001:4860::1:0:9914) 41.109 ms 2001:4860::1:0:ab9d (2001:4860::1:0:ab9d) 60.380 ms 63.595 ms
6 2001:4860::8:0:ac54 (2001:4860::8:0:ac54) 72.634 ms 2001:4860::8:0:aba0 (2001:4860::8:0:aba0) 78.308 ms 81.672 ms
7 2001:4860::1:0:b04f (2001:4860::1:0:b04f) 87.857 ms 2001:4860::1:0:af90 (2001:4860::1:0:af90) 52.809 ms 57.102 ms
8 2001:4860::2:0:3de7 (2001:4860::2:0:3de7) 59.304 ms 2001:4860::2:0:64f8 (2001:4860::2:0:64f8) 71.851 ms 77.176 ms
struct uv_loop_s {
void * data; /* 0 8 */
unsigned int active_handles; /* 8 4 */
/* XXX 4 bytes hole, try to pack */
void * handle_queue[2]; /* 16 16 */
void * active_reqs[2]; /* 32 16 */
unsigned int stop_flag; /* 48 4 */
int uttp_worker_start(uttp_worker_t* worker, uttp_worker_config_t* config) {
int r;
int on;
int fd;
uttp_server_t* server = config->server;
memset(worker, 0, sizeof(*worker));
snprintf(worker->name, sizeof(worker->name), "Worker #%d", config->id);
worker->server = server;
'use strict';
const assert = require('assert');
const os = require('os');
const sentinel = 4242;
var pid = os.fork();
import errno
import os
import select
def test_fd(fd):
kqueue = select.kqueue()
kevent = select.kevent(fd, filter=select.KQ_FILTER_READ, flags=select.KQ_EV_ADD | select.KQ_EV_ENABLE)
events = kqueue.control([kevent], 1, 0.001)
const net = require('net');
var r = net.getaddrinfo('localhost', '', {family: net.AF_INET,
type: net.SOCK_STREAM})
var ip = r[0].address.host;
var sock = new net.Socket(net.AF_INET, net.SOCK_STREAM);
sock.connect({host: ip, port: 1234});