Code Monkey home page Code Monkey logo

defcon-workshop-checker's Introduction

DEFCON Workshop Checker

I missed out on registering for all the cool workshops at DEFCON this year so I whipped this up really quick and deployed it to an aws c2 instance. It ran continuously and checked the sold out registration pages every hour or so and sent me a text message when someone pulled out of a class and a spot was available. :)

Certainly there are better ways to do this, but pretty useful for an hour of work! (also it was fun)

After cloning, you'll need to create a file called config.py in the defcon_workshop_checker package folder with your Twilio credentials that looks like the following:

account_sid = 'your-twilio-acct-sid-goes-between-these-quotes'
auth_token = 'your-twilio-auth_token-goes-between-these-quotes'
to_number = '+1-the-number-sending-to'
from_number = '+1-the-from-number'

You'll also need to set an environment variable, which is the link of the main DefCon workshop page, like this:

export URL='https://www.defcon.org/html/defcon-25/dc-25-workshops.html'

Once config.py is saved and your env variable it set, just run the following commands to get up and running:

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python defcon_workshop_checker/defcon_checker.py

If you want to run this in the cloud you can spin up a t2.micro, ssh in, then git clone, then follow the instructions above, but before running python defcon-checker.py, run the screen command, then start the checker, then detach and disconnect from the instance with ctrl + a, d, d. Then it will continously run in the background in the cloud. Watch for charges from AWS!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.