Skip to content

Instantly share code, notes, and snippets.

View justinatomatic's full-sized avatar

Justin Maynard justinatomatic

View GitHub Profile
from TwitterAPI import TwitterAPI
from webpurify import *
import re
import unicodedata
import time
import datetime
import socket
import mosquitto
'''
#!/usr/bin/env python3
import socket
import time
import sys
import binascii
import logging
logging.basicConfig(format='%(asctime)s %(message)s',level=logging.INFO)
def reverseMAC(MAC):
@justinatomatic
justinatomatic / tasks.yaml
Created March 11, 2015 02:59
Ansible tasks to install Mosquito MQTT Broker
# install mqtt broker
- name: add mosquitto key
apt_key: url=http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key state=present
- name: add mosquitto repo
apt_repository: repo='deb http://repo.mosquitto.org/debian wheezy main' state=present update_cache=yes
- name: install mosquitto
apt: name=mosquitto state=present