Skip to content

Instantly share code, notes, and snippets.

View lloydwatkin's full-sized avatar

Lloyd Watkin lloydwatkin

View GitHub Profile
@lloydwatkin
lloydwatkin / gist:c4f4c8ac1f50c262a20b
Created March 10, 2016 10:22
InnoDB: Operating system error number 13 in a file operation.
$ sudo docker run -it mysql:latest /bin/bash
Unable to find image 'mysql:latest' locally
latest: Pulling from mysql
25270607d748: Pull complete
d118ad716ef1: Pull complete
0985a1ea7675: Pull complete
15959bd10e3d: Pull complete
57c832a5f583: Pull complete
92ba15de5dba: Pull complete
0df34f74edfd: Pull complete
@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 / 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: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
{
"asi": true,
"camelcase": true,
"noempty": true,
"undef": true,
"unused": true,
"trailing": true,
"maxlen": 90,
"laxcomma": true,
"predef": [ "console", "define" ]
# 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
@lloydwatkin
lloydwatkin / gist:5619916
Created May 21, 2013 13:50
Event listener issue
127.0.0.1 - - [Tue, 21 May 2013 13:31:40 GMT] "GET /notifications/posts HTTP/1.1" 501 68 "https://buddycloud.surevine.com/lloyd16@surevine.com" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31"
127.0.0.1 - - [Tue, 21 May 2013 13:31:40 GMT] "GET /lloyd16@surevine.com/media/avatar?maxheight=50&maxwidth=50 HTTP/1.1" 503 19 "https://buddycloud.surevine.com/lloyd16@surevine.com" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31"
Listening for confirmation request of transaction 996247df52be4579160cb15a2307b7d3
IN xmpp: <iq id="3fdabd64c9a7d48164ed7b9d4a6ec7ed" type="result" to="lloyd16@surevine.com/0d2d6097-c76c-48fd-b166-6fc04697dbdc" from="channels.surevine.com" xmlns:stream="http://etherx.jabber.org/streams"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><affiliations><affiliation jid="lloyd.watkin@surevine.com" affiliation="member" node="/user/lloyd16@surevine.
@lloydwatkin
lloydwatkin / gist:5582349
Created May 15, 2013 08:03
Cardiff places to see/do
# Places to eat
Canteen on Clifton Street - http://canteenoncliftonstreet.com/
Open thurs/fri/sat
# Castle
Skip Cardiff and Castell Coch, head to Caerphilly Castle just north of Cardiff (easy to get to via train)
# Sports
@lloydwatkin
lloydwatkin / gist:5564149
Created May 12, 2013 16:38
Update from Superfeedr about a new commit on a github repository via XMPP and the message sent out by XMPP-FTW. See https://xmpp-ftw.jit.su for more information.
<message xmlns:stream="http://etherx.jabber.org/streams" from="firehoser.superfeedr.com" to="demo@superfeedr.com">
<event xmlns="http://jabber.org/protocol/pubsub#event">
<status xmlns="http://superfeedr.com/xmpp-pubsub-ext" feed="https://github.com/lloydwatkin.atom">
<http code="200">Fetched (ring) 200 and parsed 1/30 entries</http>
<next_fetch>2013-05-12T16:30:35Z</next_fetch>
<entries_count_since_last_maintenance>3</entries_count_since_last_maintenance>
<period>900</period>
<last_fetch>2013-05-12T16:15:35Z</last_fetch>
<last_parse>2013-05-12T16:15:35Z</last_parse>
<last_maintenance_at>2013-05-12T12:22:02Z</last_maintenance_at>
@lloydwatkin
lloydwatkin / gist:5335498
Created April 8, 2013 09:24
Suggested event messages from buddycloud federated server to another
<message type="headline" from="channels.server2.com" to="channels.server1.com">
<event>
<subscription node="/user/moosick@topics.server2.com/posts"
jid="khan@ceti-alpha-5.st"
subscription="subscribed" />
<actor jid="user1@server1.com" xmlns="http://buddycloud.org/v1" />
<actor jid="user46@server1.com" xmlns="http://buddycloud.org/v1" />
</event>
</message>