This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Roughly based on: http://code.activestate.com/recipes/576980-authenticated-encryption-with-pycrypto/ | |
""" | |
import hashlib | |
import hmac | |
from Crypto.Cipher import AES | |
from Crypto.Random import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package freely.messaging; | |
import java.io.IOException; | |
import org.jivesoftware.smack.ConnectionConfiguration; | |
import org.jivesoftware.smack.SmackException; | |
import org.jivesoftware.smack.TCPConnection; | |
import org.jivesoftware.smack.XMPPConnection; | |
import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode; | |
import org.jivesoftware.smack.XMPPException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package messaging; | |
import java.io.IOException; | |
import org.jivesoftware.smack.PacketListener; | |
import org.jivesoftware.smack.SmackConfiguration; | |
import org.jivesoftware.smack.SmackException; | |
import org.jivesoftware.smack.SmackException.NoResponseException; | |
import org.jivesoftware.smack.SmackException.NotConnectedException; | |
import org.jivesoftware.smack.XMPPConnection; | |
import org.jivesoftware.smack.XMPPException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
• Node 1, 2, … X | |
○ sudo su -l | |
○ cd | |
○ apt-get update | |
○ apt-get upgrade | |
○ apt-get install git-core | |
○ apt-get install libyaml-dev | |
○ apt-get install erlang | |
○ apt-get install unzip | |
○ apt-get build-dep ejabberd |