Skip to content

Instantly share code, notes, and snippets.

View imaginator's full-sized avatar
🏗️
building

Simon Tennant imaginator

🏗️
building
View GitHub Profile
bash-3.2$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
bash-3.2$ gem install nokogiri -v '1.6.6.2'
@imaginator
imaginator / gist:b244bd157083a97028d0
Created March 4, 2015 12:45
Teaser tasks for Buddycloud-MUC translat-o-matic

We've arranged a few "teaser tasks". These help you understand XMPP, Buddycloud and help us understand your skill level and how well you would "fit" as a GSOC student.

We're here to support you. If you need help starting, you can ask questions in the [email protected] MUC.

Fix a bug

One of the best ways it to try and fix a bug/issue or kink in the system.

Look for "Contributor's wanted" (or if you are feeling brave, other issues) in the following projects:

Keybase proof

I hereby claim:

  • I am imaginator on github.
  • I am imaginator (https://keybase.io/imaginator) on keybase.
  • I have a public key whose fingerprint is 1194 CD7D F232 C4A4 D91A 7C15 773F 9DE1 BA0C 638A

To claim this, I am signing this object:

@imaginator
imaginator / gist:9991144
Created April 5, 2014 12:03
challenge 2 commands
Using your XMPP account from earlier...
fork the github.com/xmpp-ftw/webrtc-demo
From https://xmpp-ftw.jit.su/manual/core#presence
- Login
- Set Presence (go online)
- Request presence subscription (ask to see the online status of your friend)
==> /var/log/prosody/prosody.err <==
Jan 30 12:18:36 s2sinfb98a0 debug Incoming s2s received <stream:stream xmlns='http://etherx.jabber.org/streams' version='1.0' to='buddycloud.org' from='braintrust.dk'>
Jan 30 12:18:36 mod_s2s debug sending: <?xml version='1.0'?>
Jan 30 12:18:36 mod_s2s debug sending: <stream:stream xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='buddycloud.org' id='86625d1a-b282-4fd
b-b12c-c67b7ddd2f75' to='braintrust.dk' xml:lang='en' xmlns='jabber:server'>
==> /var/log/prosody/prosody.log <==
Jan 30 12:18:36 s2sinfb98a0 debug Incoming s2s received <stream:stream xmlns='http://etherx.jabber.org/streams' version='1.0' to='buddycloud.org' from='braintrust.dk'>
Jan 30 12:18:36 mod_s2s debug sending: <?xml version='1.0'?>
Jan 30 12:18:36 mod_s2s debug sending: <stream:stream xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='buddycloud.org' id='86625d1a-b282-4fd
Dec 15 21:49:10 buddycloud.com:tls debug jabber.org. is offering TLS, taking up the offer...
Dec 15 21:49:10 s2sout163e6f0 debug sending: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
Dec 15 21:49:10 s2sout163e6f0 debug Received[s2sout_unauthed]: <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'>
Dec 15 21:49:10 buddycloud.com:tls debug Proceeding with TLS on s2sout...
Dec 15 21:49:10 socket debug server.lua: attempting to start tls on tcp{client}: 0x14ae6b8
Dec 15 21:49:11 socket debug server.lua: ssl handshake done
Dec 15 21:49:11 s2sout163e6f0 debug Sending stream header...
Dec 15 21:49:11 s2sout163e6f0 debug sending: <?xml version='1.0'?>
Dec 15 21:49:11 s2sout163e6f0 debug sending: <stream:stream xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='buddycloud.com' id='26b925cc2eb06c0a' to='jabber.org.' xml:lang='en' xmlns='jabber:server'>
Dec 15 21:49:11 s2sout163e6f0 debug certificate chain validation resul
➜ ~ cat /var/log/prosody/prosody.log | grep b1f3e0
Dec 13 16:07:07 s2soutb1f3e0 info Beginning new connection attempt to gmail.com ([173.194.70.125]:5269)
Dec 13 16:07:07 s2soutb1f3e0 debug Connection attempt in progress...
Dec 13 16:07:07 s2soutb1f3e0 debug sending: <?xml version='1.0'?>
Dec 13 16:07:07 s2soutb1f3e0 debug sending: <stream:stream xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='buddycloud.org' to='gmail.com' xml:lang='en' xmlns='jabber:server'>
Dec 13 16:07:07 s2soutb1f3e0 debug sending: <db:result to='gmail.com' from='buddycloud.org'>
Dec 13 16:07:07 s2soutb1f3e0 info sent dialback key on outgoing s2s stream
Dec 13 16:07:08 s2soutb1f3e0 debug going to send stanza to gmail.com from buddycloud.org
Dec 13 16:07:07 mod_s2s debug Best record found, will connect to xmpp-server.l.google.com.:5269
Dec 13 16:07:07 mod_s2s debug matthewwild.co.uk has SRV records, handling...
Dec 13 16:07:07 mod_s2s debug Best record found, will connect to matthewwild.co.uk.:5269
Dec 13 16:07:07 mod_s2s debug gmail.com has SRV records, handling...
Dec 13 16:07:07 mod_s2s debug Best record found, will connect to xmpp-server.l.google.com.:5269
Dec 13 16:07:07 mod_s2s debug DNS reply for xmpp-server.l.google.com. gives us 173.194.70.125
Dec 13 16:07:07 s2soutb14810 info Beginning new connection attempt to imaginator.com ([173.194.70.125]:5269)
Dec 13 16:07:07 s2soutb14810 debug Connection attempt in progress...
Dec 13 16:07:07 mod_s2s debug DNS reply for xmpp-server.l.google.com. gives us 173.194.70.125
Dec 13 16:07:07 s2soutb1f3e0 info Beginning new connection attempt to gmail.com ([173.194.70.125]:5269)
Dec 13 16:07:09 s2sinc10ef0 debug Incoming s2s connection
Dec 13 16:07:09 s2sinc10ef0 debug Incoming s2s received <stream:stream xmlns='http://etherx.jabber.org/streams' version='1.0' to='buddycloud.org' from='proxy.eu.jabber.org'>
Dec 13 16:07:09 mod_s2s debug sending: <?xml version='1.0'?>
Dec 13 16:07:09 mod_s2s debug sending: <stream:stream xmlns:db='jabber:server:dialback' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='buddycloud.org' id='08c7924a-b6bb-446
a-8cf9-48913c2ff3be' to='proxy.eu.jabber.org' xml:lang='en' xmlns='jabber:server'>
Dec 13 16:07:09 mod_s2s debug Sending stream features: <stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required/></starttls><dialback xmlns='urn:xmpp:features:dialback'/></s
tream:features>
Dec 13 16:07:09 mod_s2s debug sending: <stream:features>
Dec 13 16:07:09 s2sinc1b140 debug Incoming s2s connection
Dec 13 16:07:09 s2sinc1b140 debug Incoming s2s received <stream:stream version='1.0' from='matthe