Skip to content

Instantly share code, notes, and snippets.

View lloydwatkin's full-sized avatar

Lloyd Watkin lloydwatkin

View GitHub Profile
# Prosody
```
Jun 05 11:05:54 c2s265a540 info Authenticated as mediaserver@surevine.com
Jun 05 11:05:54 surevine.com:saslauth debug sasl reply: <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></success>
Jun 05 11:05:54 c2s265a540 debug Client sent opening <stream:stream> to surevine.com
Jun 05 11:05:54 c2s265a540 debug Sent reply <stream:stream> to client
Jun 05 11:05:54 c2s265a540 debug Received[c2s]: <iq id='9eaC5-0' type='set'>
Jun 05 11:05:54 rostermanager debug load_roster: asked for: mediaserver@surevine.com
Jun 05 11:05:54 rostermanager debug load_roster: loading for new user: mediaserver@surevine.com
{
"asi": true,
"camelcase": true,
"noempty": true,
"undef": true,
"unused": true,
"trailing": true,
"maxlen": 90,
"laxcomma": true,
"predef": [ "console", "define" ]
@lloydwatkin
lloydwatkin / gist:7346943
Created November 7, 2013 00:39
Nodejitsu deploy issue
info: Welcome to Nodejitsu lloydwatkin
info: jitsu v0.13.3, node v0.10.21
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node index.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /home/lloyd/Dropbox/code/xmpp-ftw/xmpp-ftw-demo/package.json
warn: Using '*' as a version for dependencies may eventually cause issues
warn: Use specific versions for dependencies to avoid future problems
@lloydwatkin
lloydwatkin / JSON payload
Last active December 27, 2015 17:39
session-accept in xmpp-ftw-jingle generating slightly incorrect XML c.f. that generated by stanza.io in comment #2 I'll need to dump 'session-accept' json from my demo code and I'll be able to build up against it
{
"to":"test@evilprofessor.co.uk/8f182dd1-a252-4c03-af40-a13be32ca2fd",
"type":"set",
"jingle":{
"contents":[
{
"name":"audio",
"description":{
"descType":"rtp",
"media":"audio",
@lloydwatkin
lloydwatkin / gist:8335298
Created January 9, 2014 14:53
node-stringprep on heroku
CXX(target) Release/obj.target/node_stringprep/node-stringprep.o
../node-stringprep.cc:2:28: warning: unicode/unistr.h: No such file or directory
../node-stringprep.cc:3:28: warning: unicode/usprep.h: No such file or directory
../node-stringprep.cc:4:27: warning: unicode/uidna.h: No such file or directory
../node-stringprep.cc:82: error: ISO C++ forbids declaration of 'UStringPrepProfileType' with no type
../node-stringprep.cc:82: error: expected ',' or '...' before 'profileType'
../node-stringprep.cc:151: error: ISO C++ forbids declaration of 'UStringPrepProfile' with no type
../node-stringprep.cc:151: error: expected ';' before '*' token
../node-stringprep.cc:152: error: 'UErrorCode' does not name a type
../node-stringprep.cc:154: error: use of enum 'UStringPrepProfileType' without previous declaration
@lloydwatkin
lloydwatkin / gist:9931047
Created April 2, 2014 09:42
firefox-profile issue
1) Posts > Replies > Create > Referenced Should show a reply button in every post:
Uncaught Error: amdefine with no module ID cannot be called more than once per file.
at runFactory (/Users/lloyd/Dropbox/code/bummer/bummer.io/node_modules/amdefine/amdefine.js:159:23)
at define (/Users/lloyd/Dropbox/code/bummer/bummer.io/node_modules/amdefine/amdefine.js:275:13)
at Object.<anonymous> (/Users/lloyd/Dropbox/code/bummer/bummer.io/node_modules/firefox-profile/node_modules/archiver/node_modules/lodash/dist/lodash.js:6766:5)
at Object.<anonymous> (/Users/lloyd/Dropbox/code/bummer/bummer.io/node_modules/firefox-profile/node_modules/archiver/node_modules/lodash/dist/lodash.js:6785:3)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<script type="text/javascript"
src="https://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="https://xmpp-ftw.jit.su/scripts/primus.js"></script>
</head>
<body>
<div id="container">
@lloydwatkin
lloydwatkin / tea.sh
Created May 2, 2014 09:53
Making tea
#!/usr/local/bin/node
function Mug() {
};
Mug.prototype.drink = {};
Mug.prototype.TEA_COLD_TIME = 6000;
Mug.prototype.TEABAG_BREW_TIME = 2000;
Mug.prototype.on = function(call, event) {
@lloydwatkin
lloydwatkin / gist:8a95a6ee0426e49b91a7
Created June 10, 2014 09:47
Prosody component error
Jun 10 09:22:46 mod_component error Traceback[component]: /usr/lib/prosody/core/loggingmanager.lua:262: bad argument #3 to 'format' (string expected, got nil)
stack traceback:
[C]: in function 'format'
/usr/lib/prosody/core/loggingmanager.lua:262: in function '?'
/usr/lib/prosody/util/logger.lua:48: in function </usr/lib/prosody/util/logger.lua:46>
(tail call): ?
/usr/lib/prosody/core/stanza_router.lua:39: in function 'handle_unhandled_stanza'
/usr/lib/prosody/core/stanza_router.lua:149: in function </usr/lib/prosody/core/stanza_router.lua:55>
(tail call): ?
[C]: in function 'xpcall'
@lloydwatkin
lloydwatkin / gist:fe55b04e14a54f656681
Last active August 29, 2015 14:03
xmpp-ftw-demo issues on demo
xmpp-ftw-demo lloyd$ jitsu -v
0.13.18
xmpp-ftw-demo lloyd$ jitsu logs
info: Welcome to Nodejitsu lloydwatkin
info: jitsu v0.13.18, node v0.10.26
info: It worked if it ends with Nodejitsu ok
info: Executing command logs app
info: Attempting to load logs for /Users/lloyd/Dropbox/code/xmpp-ftw/xmpp-ftw-demo/package.json
info: Listing logs for xmpp-ftw-demo
[07/01 12:00:34 GMT+0100][out] 10.112.36.49 - - [Tue, 01 Jul 2014 11:00:34 GMT] "GET /manual/extensions/buddycloud/ HTTP/1.1" 200 24349 "https://xmpp-ftw.jit.su/demo/" "Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0"