Helper scripts and code mainly.
Use at your own risk, I'm mainly using this repo as a convenient backup store for my own use. Some of these came from 3rd parties and have varying degrees of documentation available. Google is your friend.
Pressing an Amazon Dash Button now logs to a running ELK stack.
Check dash/dependencies. These are needed to get python scapy running on an OS X system.
You'll need a dash button that is registered and set up with Amazon. Check your Amazon account each time you press the button, it will place an order but you can cancel the order.
Startup dash/startup.sh, which will run the dash python script as a listening service for the button's ARP probe. By default, the startup script starts for logging to a local instance of ELK. The python script then calls a simple curl statement in a shell script, which makes a JSON call to the running instance of elasticsearch/logstash.
Alternatively you can send a tweet with another python script. You'll need to setup a twitter app at. Here's a simple python script example:
from twython import Twython
APP_KEY = 'your app key'
APP_SECRET = 'your app secret'
OATH_TOKEN = 'your oath token'
OATH_SECRET = 'your oath secret'
twitter = Twython(APP_KEY, APP_SECRET, OATH_TOKEN, OATH_SECRET)
twitter.update_status(status='Is anyone out there?')
The logstash configuration file allows for HTTP calls as input, and elasticsearch as output. The configuration file is in elk/logstash/bin/elk2.conf and you can view in kibana at http://localhost:5601. Search for the term 'dash'.
Depends on icalbuddy. Everything was written bash. Start with /ical/netQuery and follow the prompts.