Skip to content

Instantly share code, notes, and snippets.

/*!
* jquery oembed plugin
*
* Copyright (c) 2009 Richard Chamorro
* Licensed under the MIT license
*
* Orignal Author: Richard Chamorro
* Forked by Andrew Mee to Provide a slightly diffent kind of embedding experience
*/
(function ($) {
@martin-hewitt
martin-hewitt / gist:2e022bba0775c8ac1e39
Created January 20, 2015 10:55
Docker Stack - Ghost, piwik & ownCloud under SSL'd nginx
# Get a server, somehow. Mine runs CentOS 7
# All commands to be run as root, so either sudo su, or add sudo to each one
# Install Docker
yum install docker
# This nginx proxy listens to the main Docker socket for containers starting
# and stopping. It then reads the VIRTUAL_HOST environment variable for that
# container and creates a proxy route for each one. Containers without a
# VIRTUAL_HOST environment variable will be ignored. This fork also allows
Error: Bad Request
at Object.exports.parser [as handle] (/opt/buddycloud-http-api/src/util/auth.js:35:10)
at next (/opt/buddycloud-http-api/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.handle (/opt/buddycloud-http-api/server.js:36:9)
at next (/opt/buddycloud-http-api/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.logger (/opt/buddycloud-http-api/node_modules/express/node_modules/connect/lib/middleware/logger.js:158:5)
at next (/opt/buddycloud-http-api/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.expressInit [as handle] (/opt/buddycloud-http-api/node_modules/express/lib/middleware.js:30:5)
at next (/opt/buddycloud-http-api/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.query [as handle] (/opt/buddycloud-http-api/node_modules/express/node_modules/connect/lib/middleware/query.js:45:5)
@martin-hewitt
martin-hewitt / gist:10633094
Created April 14, 2014 09:46
node-stringprep error
> node-stringprep@0.2.3 install /www/bummer.io.fresh/node_modules/xmpp-ftw-jingle/node_modules/xmpp-ftw/node_modules/node-xmpp-core/node_modules/node-stringprep
> node-gyp rebuild
CXX(target) Debug/obj.target/node_stringprep/node-stringprep.o
../node-stringprep.cc:2:10: fatal error: 'unicode/unistr.h' file not found
#include <unicode/unistr.h>
^
1 error generated.
make: *** [Debug/obj.target/node_stringprep/node-stringprep.o] Error 1
.d$b. .d$b. .d$$$$$$b. .d$$$$$$b. .d$$$$$$b. .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$$´`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P' 'Q$P' 'Q$$$$$$P' 'Q$$$$$$P' 'Q$$$$$$$P 'Q$P''Q$$$$$$$$P'
Version: 0.4.8 (node v0.10.26, npm 1.4.3, platform: linux)
Version: 0.4.8 (node v0.10.26, npm 1.4.3, platform: linux)
Initializing...
Using remote CouchDB: http://172.17.0.6:5984
Waiting for CouchDB [-*----] SUCCESS
WWW: http://127.0.0.1:6001
Admin: http://127.0.0.1:6002
Starting Plugin: 'hoodie-plugin-appconfig'
Starting Plugin: 'hoodie-plugin-email'
Starting Plugin: 'hoodie-plugin-users'
var Spooky = require('spooky')
var app = require('../../index');
var port = 3001
var spooky = new Spooky({
child: {
transport: 'stdio',
Attempting to connect to martinh@buddycloud.org
Stanza received: <iq id="891ef:1" type="result" to="martinh@buddycloud.org/8ac0c710-3611-4db0-ac62-86eb86fbe4da" from="buddycloud.org" xmlns:stream="http://etherx.jabber.org/streams"><query xmlns="http://jabber.org/protocol/disco#items"><item jid="mediaserver.buddycloud.org"/><item jid="directory.buddycloud.org"/><item jid="channels.buddycloud.org"/><item jid="topics.buddycloud.org"/><item jid="search.buddycloud.org"/><item jid="anon.buddycloud.org"/></query></iq>
Stanza received: <iq id="891ef:3" type="error" to="martinh@buddycloud.org/8ac0c710-3611-4db0-ac62-86eb86fbe4da" from="directory.buddycloud.org" xmlns:stream="http://etherx.jabber.org/streams"><error type="wait"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Component unavailable</text></error></iq>
Stanza received: <iq id="891ef:2" type="result" to="martinh@buddycloud.org/8ac0c710-3611-4db0-ac62-86eb86fbe4da" from="mediaserver.buddycl
dyld: lazy symbol binding failed: Symbol not found: _usprep_openByType_44
Referenced from: /www/surevine/buddycloud-http-api/node_modules/node-stringprep/build/Release/node-stringprep.node
Expected in: flat namespace
dyld: Symbol not found: _usprep_openByType_44
Referenced from: /www/surevine/buddycloud-http-api/node_modules/node-stringprep/build/Release/node-stringprep.node
Expected in: flat namespace
Trace/BPT trap