Skip to content

Instantly share code, notes, and snippets.

var WebSocket = require('ws');
lastId = 1;
var ws = new WebSocket('ws://localhost:9222/devtools/page/1');
ws.on('error',function(error) {
console.log('error', error);
});
@auchenberg
auchenberg / chrome-remote-inteface-edge.js
Last active November 11, 2018 09:58
Microsoft Edge Diagnostics + chrome-remote-inteface example
var launch = require('edge-diagnostics-launch')
var chrome = require('chrome-remote-interface')
var url = 'https://github.com/'
var options = {
chooseTab: function(tabs) {
var targetTab = tabs.filter(function(tab) {
return tab.url == url
})
@auchenberg
auchenberg / index.md
Last active February 26, 2016 23:31
DevTools Camp, Vancouver edition!

DevTools Camp, Vancouver edition!

Microsoft and Mozilla are please to announce the first edition of DevTools Camp. A casual meetup themed around in-browser DevTools, such as Firefox and Edge DevTools, and this time in downtown Vancouver, Canada, hosted by Mobify.

Our aim is to create a meetup where we can discuss web tooling, and showcase some of the things, we are thinking about and working on.

Time & date

March 22nd 2016 at 6:30 PM until 22:00 PM.

Agenda

Process: Drop to GIF [66177]
Path: /Users/USER/Downloads/Drop to GIF.app/Contents/MacOS/Drop to GIF
Identifier: com.mortenjust.Drop-to-GIF
Version: 1.122 (11)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Drop to GIF [66177]
User ID: 503
Date/Time: 2015-11-04 19:05:40.762 +0100
aValue 96 352 0 16 40 10 14 2 255 0 0 44100
AppleLossless detected. Trying to decode ALAC
alacConfig { frameLength: 352,
compatibleVersion: 0,
bitDepth: 16,
pb: 40,
mb: 10,
kb: 14,
channels: 2,
maxRun: 255,
@auchenberg
auchenberg / gist:62c879ead540c36a0e32
Created March 11, 2015 14:39
Steps how to find Chrome-powred remote debug devices using ADB
adb devices
adb -s <device> shell “cat /proc/net/unix |grep devtools_remote”
adb -s <device> forward tcp:9222 local abstract:<service name>
@auchenberg
auchenberg / gist:088c235a6e25fa567f7a
Last active August 29, 2015 14:13
Hello interface
var hello = require('hello');
var options = {
txtRecord: {},
subtypes: []
};
// Announce service (callback)
hello.announce('remotedebug', 'tcp', 9222, options, function(err, response) {
if(err) {
@auchenberg
auchenberg / callstats.io
Created November 27, 2014 15:21
Callstats.js
(function(e) {
var t = function(e, t, n) {
function F(e, t, n, r, i) {
function u(u) {
var a = (new Date).getTime(),
c = {};
c.version = s, c.appID = o, c.conferenceID = encodeURIComponent(n), c.apiTS = a, r !== undefined && (c.ucID = r), f && (c.token = f.token), c.localID = encodeURIComponent(e), c.remoteID = encodeURIComponent(t), c.endpointID = l, c.browser = {
name: v.name,
ver: v.ver,
os: v.os
@auchenberg
auchenberg / index.js
Created November 5, 2014 22:09
nicercast + ffmpeg
var express = require('express');
var http = require('http');
var spawn = require("child_process").spawn;
var icecast = require('icecast-stack');
var Throttle = require('throttle');
var ip = require('ip');
var ffmpeg = require('fluent-ffmpeg');
var Server = function(inStream, opts) {
var app = express();
<a
class="add-this-event-link"
href="#"
title="Add to Calendar"
data-start="10-05-2014 11:38:46"
data-end="11-05-2014 11:38:46"
data-timezone="Copenhagen/Europe"
data-title="Summary of the event"
data-description="Description of the event"
data-location="Location of the event"