Skip to content

Instantly share code, notes, and snippets.

@samsondav
samsondav / observer.md
Created November 30, 2017 13:11 — forked from pnc/observer.md
Using Erlang observer/appmon remotely

Using OTP's observer (appmon replacement) remotely

$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769

Note the running on port for epmd itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:

$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host
@samsondav
samsondav / anti-keygrabber.user.js
Last active August 29, 2015 14:14 — forked from rodneyrehm/anti-keygrabber.user.js
DISABLE binding of some key combinations to web apps, especially Gmail's cmd-enter to send 'feature'
// ==UserScript==
// @name anti key-grabber
// @description Prevent web apps from capturing and muting vital keyboard shortcuts
// @grant none
// @version 1.1
// ==/UserScript==
(function(){
var isMac = unsafeWindow.navigator.oscpu.toLowerCase().contains("mac os x");
unsafeWindow.document.addEventListener('keydown', function(e) {
if (e.keyCode === 116) {