Skip to content

Instantly share code, notes, and snippets.

@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 / 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>
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,
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
@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

@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
})
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);
});
{
"version": "0.1.0",
"configurations": [
{
"name": "Node",
"type": "node",
"request": "attach",
"protocol": "inspector",
"port": 9229
},
@auchenberg
auchenberg / launch.json
Last active January 29, 2019 15:10
VSCode + React debug config
{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceRoot}/src"
}
@auchenberg
auchenberg / launch.json
Created March 10, 2017 18:20
VS Code Node inspector launch
{
"configurations": [
{
"name": "Node",
"type": "node",
"request": "launch",
"protocol": "inspector",
"program": "${workspaceRoot}/server.js"
},
]