GithubHelp home page GithubHelp logo

kim-nguyenkhn / southwestcheckin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pyro2927/southwestcheckin

0.0 1.0 0.0 124 KB

๐Ÿ›ซ Python script to checkin to a Southwest Flight ๐Ÿ›ฌ

License: GNU General Public License v3.0

Python 95.16% Dockerfile 1.40% Shell 0.89% Makefile 2.56%

southwestcheckin's Introduction

SW Checkin

Build Status Maintainability Test Coverage Docker Build Status Docker Image Size

This python script checks your flight reservation with Southwest and then checks you in at exactly 24 hours before your flight. Queue up the script and it will sleep until the earliest possible check-in time.

Contributors

Requirements

This script can either be ran directly on your host or within Docker.

Host

  • Python (should work with 2.x or 3.x thanks to @ratabora)
  • pip

Docker

  • Docker (tested with 1.12.6)

Setup

Host

Install Base Package Requirements

$ pip install -r requirements.txt

Usage

$ python ./checkin.py CONFIRMATION_NUMBER FIRST_NAME LAST_NAME

Docker

Usage (Kim's Notes

# SSH into 
ssh -i /path/my-key-pair.pem my-instance-user-name@my-instance-public-dns-name

# Become root
sudo su -

# Runs in detached mode
docker run -it kim-nguyenkhn/southwestcheckin:latest CONFIRMATION_NUMBER FIRST_NAME LAST_NAME

# List all docker instances
docker ps -a

# Tail logs
docker logs --tail 100 DOCKER_CONTAINER_ID

# Clean all exited containers
docker ps -qaf status=exited | xargs docker rm

# Remove all unused images
docker images -f dangling=true -q | xargs docker rmi

Changing the Timezone

# List the machine's time zones
timedatectl

# Set timezone
timedatectl set-timezone America/Los_Angeles

Kim's Notes

From the AWS docs: Link

ssh -i /path/my-key-pair.pem my-instance-user-name@my-instance-public-dns-name

# Become root
sudo su -
# Become docker
su docker

# Enter python3
python3

# Build the docker image
make docker

# Release the docker image
make release

southwestcheckin's People

Watchers

 avatar

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.