Skip to content

Instantly share code, notes, and snippets.

@jcbrand
jcbrand / presence-probes.patch
Created April 21, 2020 10:08
Patch Prosody to respond to MUC presence probes
# HG changeset patch
# User JC Brand <jc@opkode.com>
# Date 1587325785 -7200
# Sun Apr 19 21:49:45 2020 +0200
# Node ID 2d0c2fd01ef2954c3f06b466ac966752d281ad61
# Parent 977c9883f625b6765b7c31addf656fcefbd9b6d7
Add support for MUC presence probes
The following patch allows Prosody to respond to `probe` presences and send out the probed occupant's current presence.
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
In file included from ../src/WebWorkerThreads.cc:12:0:
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*)’:
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
^
../../nan/nan.h:339:13: note: in expansion of macro ‘_NAN_ERROR’
return _NAN_ERROR(v8::Exception::Error, errmsg);
Feb 21 12:20:14 mind systemd[1]: Starting X11 Server...
Feb 21 12:20:14 mind systemd[1]: Started X11 Server.
Feb 21 12:20:14 mind display-manager[908]: /nix/store/0wv96nayi7h25wjji4mgl3basvz6x9al-xsession 'xterm' - xterm
Feb 21 12:20:14 mind display-manager[908]: /nix/store/0wv96nayi7h25wjji4mgl3basvz6x9al-xsession 'xterm' - xterm
Feb 21 12:20:14 mind display-manager[908]: /nix/store/f8xgfgh4x18pz6ag50yijz2dh2v28266-xauth-1.0.9/bin/xauth: file /var/run/slim.auth does not exist
Feb 21 12:20:14 mind display-manager[908]: X.Org X Server 1.18.4
Feb 21 12:20:14 mind display-manager[908]: Release Date: 2016-07-19
Feb 21 12:20:14 mind display-manager[908]: X Protocol Version 11, Revision 0
Feb 21 12:20:14 mind display-manager[908]: Build Operating System: Linux 4.4.23 x86_64
Feb 21 12:20:14 mind display-manager[908]: Current Operating System: Linux mind 4.4.50 #1-NixOS SMP Sat Feb 18 15:39:37 UTC 2017 x86_64
{ config, pkgs, ... }: {
containers.mind = {
privateNetwork = true;
hostAddress = "10.233.1.1";
localAddress = "10.233.1.4";
config =
{ config, pkgs, ... }:
{
### Keybase proof
I hereby claim:
* I am jcbrand on github.
* I am jcbrand (https://keybase.io/jcbrand) on keybase.
* I have a public key whose fingerprint is F5B0 650F F304 9B8D 0EA3 E66C A03B 84D8 866F FEA4
To claim this, I am signing this object:
@jcbrand
jcbrand / gist:d354ee7e4285bed4f190
Created October 28, 2014 12:20
Onename.io verification
Verifying that +jcbrand is my Bitcoin username. You can send me #bitcoin here: https://onename.io/jcbrand