Skip to content

Instantly share code, notes, and snippets.

View lloydwatkin's full-sized avatar

Lloyd Watkin lloydwatkin

View GitHub Profile
2013-01-15 10:46:39 TigaseCustomAuth.saslAuth() FINEST: response: username="admin",realm="ip-10-66-2-93",nonce="zwhJnNYdNl4NAgiMf5YLzW6ZsXSV1+4yuOU3J3cz",cnonce="12691854",nc="00000001",qop="auth",digest-uri="xmpp/ip-10-66-2-93",response="61aca98e188c2ae11872703718995924",charset="utf-8",authzid="romeo"
2013-01-15 10:46:39 TigaseCustomAuth$SaslCallbackHandler.handle() FINEST: Callback: RealmCallback
2013-01-15 10:46:39 TigaseCustomAuth$SaslCallbackHandler.handle() FINEST: RealmCallback: ip-10-66-2-93
2013-01-15 10:46:39 TigaseCustomAuth$SaslCallbackHandler.handle() FINEST: Callback: NameCallback
2013-01-15 10:46:39 TigaseCustomAuth$SaslCallbackHandler.handle() FINEST: NameCallback: admin
2013-01-15 10:46:39 TigaseCustomAuth$SaslCallbackHandler.handle() FINEST: Callback: PasswordCallback
2013-01-15 10:46:39 TigaseCustomAuth$SaslCallbackHandler.handle() FINEST: PasswordCallback: admin
2013-01-15 10:46:39 TigaseCustomAuth$SaslCallbackHandler.handle() FINEST: Callback: AuthorizeCallback
2
@lloydwatkin
lloydwatkin / gist:4556860
Created January 17, 2013 15:42
Hack to backbone.js to get buddycloud webclient + http api server + tigase (+ buddycloud java server) talking.
@@ -1418,9 +1419,18 @@
// Make the request, allowing the user to override any Ajax options.
return Backbone.ajax(_.extend(params, options));
};
-
+var credentials;
// Set the default implementation of `Backbone.ajax` to proxy through to `$`.
Backbone.ajax = function() {
+ if (arguments[0].credentials) {
+ console.log("Storing credentials", arguments[0].credentials);
@lloydwatkin
lloydwatkin / init.properties
Created February 5, 2013 17:00
Tigase for buddycloud
--cluster-mode = false
config-type = --gen-config-all
--cluster-nodes = ip-10-66-2-93
--debug=server,xmpp.impl,db
--user-db = derby
--admins = admin@ip-10-66-2-93
--user-db-uri = jdbc:derby:/opt/tigase/tigasedb
--virt-hosts=ip-10-66-2-93,localhost
--comp-name-1=ext
--comp-class-1 = tigase.server.ext.ComponentProtocol
ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"
DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver"
#GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2"
JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64"
CLASSPATH=""
#JAVA_OPTIONS="${GC} ${ENC} ${DRV} -server -Xms100M -Xmx200M -XX:PermSize=32m -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=128m "
JAVA_OPTIONS="${GC} ${ENC} ${DRV} -server -Xms200M -Xmx400M -XX:PermSize=64m -XX:MaxPermSize=512m -XX:MaxDirectMemorySize=256m "
TIGASE_CONFIG="etc/tigase.xml"
TIGASE_OPTIONS=" --property-file etc/init.properties"
@lloydwatkin
lloydwatkin / gist:5233926
Created March 24, 2013 22:45
Nodejitsu deploy issue
lloyd@zenbook:~/Dropbox/code/xmpp-ftw$ jitsu deploy
info: Welcome to Nodejitsu lloydwatkin
info: jitsu v0.12.0, node v0.8.19
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node examples/index.js
info: Creating snapshot 0.3.0
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
lloyd@zenbook:~/Dropbox/code/xmpp-ftw$ jitsu deploy
info: Welcome to Nodejitsu lloydwatkin
info: jitsu v0.12.8, node v0.8.19
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node examples/index.js
info: Creating snapshot 0.3.1
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
@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>
@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: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: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.